Java Code Examples for org.eclipse.swt.widgets.ToolItem#setToolTipText()

The following examples show how to use org.eclipse.swt.widgets.ToolItem#setToolTipText() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FindBarDecorator.java    From APICloud-Studio with GNU General Public License v3.0 6 votes vote down vote up
private ToolItem createHistoryToolItem(ToolBar toolbar, final String preferenceName)
{
	ToolItem historyToolItem = new ToolItem(toolbar, SWT.DROP_DOWN);
	historyToolItem.setImage(FindBarPlugin.getImage(FindBarPlugin.ICON_SEARCH_HISTORY));
	historyToolItem.setToolTipText(Messages.FindBarDecorator_TOOLTIP_History);

	historyToolItem.addSelectionListener(new SelectionAdapter()
	{
		Menu menu = null;

		/*
		 * (non-Javadoc)
		 * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
		 */
		@Override
		public void widgetSelected(SelectionEvent e)
		{
			ToolItem toolItem = (ToolItem) e.widget;
			menu = createHistoryMenu(toolItem, preferenceName, menu);
		}

	});

	return historyToolItem;
}
 
Example 2
Source File: QueryEditionControl.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
private void createToolbar(Composite parent) {
    ToolBar toolBar = new ToolBar(parent, SWT.HORIZONTAL | SWT.LEFT | SWT.NO_FOCUS | SWT.FLAT);
    formPage.getToolkit().adapt(toolBar);

    ToolItem addQueryItem = new ToolItem(toolBar, SWT.PUSH);
    addQueryItem.setData(SWTBotConstants.SWTBOT_WIDGET_ID_KEY, ADD_QUERY_BUTTON_ID);
    addQueryItem.setImage(BusinessObjectPlugin.getImage("/icons/add.png"));
    addQueryItem.setToolTipText(Messages.addQueryTooltip);
    addQueryItem.addListener(SWT.Selection, e -> addQuery());

    deleteQueryItem = new ToolItem(toolBar, SWT.PUSH);
    deleteQueryItem.setImage(BusinessObjectPlugin.getImage("/icons/delete_icon.png"));
    deleteQueryItem.setToolTipText(Messages.deleteQueryTooltip);
    deleteQueryItem.addListener(SWT.Selection, e -> removeQuery());

    ToolItem expandItem = new ToolItem(toolBar, SWT.PUSH);
    expandItem.setImage(Pics.getImage(PicsConstants.expandAll));
    expandItem.setToolTipText(Messages.expandAll);
    expandItem.addListener(SWT.Selection, e -> viewer.expandAll());

    ToolItem collapseItem = new ToolItem(toolBar, SWT.PUSH);
    collapseItem.setImage(Pics.getImage(PicsConstants.collapseAll));
    collapseItem.setToolTipText(Messages.collapseAll);
    collapseItem.addListener(SWT.Selection, e -> viewer.collapseAll());
}
 
Example 3
Source File: JavaPropertiesViewerDialog.java    From translationstudio8 with GNU General Public License v2.0 6 votes vote down vote up
private void createToolBar(Composite tparent) {
	Composite toolBarCmp = new Composite(tparent, SWT.NONE);
	GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).applyTo(toolBarCmp);
	GridLayoutFactory.fillDefaults().numColumns(1).applyTo(toolBarCmp);

	ToolBar toolBar = new ToolBar(toolBarCmp, SWT.NO_FOCUS | SWT.FLAT);
	ToolItem openItem = new ToolItem(toolBar, SWT.PUSH);
	openItem.setToolTipText(Messages.getString("dialog.JavaPropertiesViewerDialog.toolBar"));
	openItem.setImage(new Image(Display.getDefault(), openFilePath));

	openItem.addSelectionListener(new SelectionAdapter() {
		@Override
		public void widgetSelected(SelectionEvent e) {
			openFile();
		}
	});

}
 
Example 4
Source File: IterationPropertySection.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
protected ComboViewer createComboViewer(final TabbedPropertySheetWidgetFactory widgetFactory,
        final Composite composite, final ObservableListContentProviderWithProposalListeners contentProvider) {
    final ComboViewer comboViewer = new ComboViewer(composite, SWT.BORDER | SWT.READ_ONLY);

    comboViewer.setContentProvider(contentProvider);
    final IObservableSet knownElements = contentProvider.getKnownElements();
    final IObservableMap[] labelMaps = EMFObservables.observeMaps(knownElements,
            new EStructuralFeature[] { ProcessPackage.Literals.ELEMENT__NAME,
                    ProcessPackage.Literals.DATA__DATA_TYPE, ProcessPackage.Literals.DATA__MULTIPLE });
    comboViewer.setLabelProvider(new DataLabelProvider(labelMaps));

    final ToolBar toolBar = new ToolBar(composite, SWT.FLAT);
    widgetFactory.adapt(toolBar);
    final ToolItem toolItem = new ToolItem(toolBar, SWT.FLAT);
    toolItem.setImage(Pics.getImage(PicsConstants.clear));
    toolItem.setToolTipText(Messages.clearSelection);
    toolItem.addSelectionListener(new SelectionAdapter() {

        @Override
        public void widgetSelected(final SelectionEvent e) {
            comboViewer.setSelection(new StructuredSelection());
        }
    });

    return comboViewer;
}
 
Example 5
Source File: HelpCoolbarItem.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
@Override
public void fill(final ToolBar toolbar, final int index, final int iconSize) {
    final ToolItem item = new ToolItem(toolbar, SWT.PUSH | SWT.RIGHT);
    item.setToolTipText(Messages.HelpButtonLabel);
    if (iconSize < 0) {
        item.setImage(Pics.getImage(PicsConstants.coolbar_help_48));
        item.setDisabledImage(Pics.getImage(PicsConstants.coolbar_help_disabled_48));
    } else {
        item.setImage(Pics.getImage(PicsConstants.coolbar_help_16));
        item.setDisabledImage(Pics.getImage(PicsConstants.coolbar_help_disabled_16));
    }
    item.addSelectionListener(new SelectionAdapter() {

        @Override
        public void widgetSelected(final SelectionEvent e) {
            final Command cmd = getCommand();
            try {
                cmd.executeWithChecks(new ExecutionEvent());
            } catch (final Exception ex) {
                BonitaStudioLog.error(ex);
            }
        }
    });
}
 
Example 6
Source File: OpenUIDesignerCoolBarItem.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
@Override
public void fill(final ToolBar toolbar, final int index, final int iconSize) {
    final ToolItem item = new ToolItem(toolbar, SWT.PUSH);
    item.setToolTipText(Messages.openUIDesigner);
    configureItemImage(item, iconSize < 0 ? "ui_designer_48x48.png" : "ui_designer_24x24.png");
    item.addSelectionListener(new SelectionAdapter() {

        @Override
        public void widgetSelected(final SelectionEvent e) {
            openInformationDialogOnUiDesigner();
            try {
                getHandler().execute();
            } catch (final ExecutionException ex) {
                BonitaStudioLog.error("Failed to open ui designer", ex);
            }
        }

    });
}
 
Example 7
Source File: GamaToolbarSimple.java    From gama with GNU General Public License v3.0 5 votes vote down vote up
private ToolItem create(final String i, final String text, final String tip, final SelectionListener listener,
		final int style) {
	final ToolItem button = new ToolItem(this, style, getItems().length);
	if (tip != null) {
		button.setToolTipText(tip);
	}
	if (i != null) {
		final Image image = GamaIcons.create(i).image();
		button.setImage(image);
	}
	if (listener != null) {
		button.addSelectionListener(listener);
	}
	return button;
}
 
Example 8
Source File: DeployContributionItem.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void fill(ToolBar parent, int index) {
    item = new ToolItem(parent, SWT.PUSH);
    item.setData(SWTBotConstants.SWTBOT_WIDGET_ID_KEY, ID);
    item.setText(Messages.deploy);
    item.setToolTipText(Messages.deploy);
    item.setImage(BusinessObjectPlugin.getImage("icons/deploy16.png"));
    item.addListener(SWT.Selection, event -> deploy(false));
    item.setEnabled(isEnabled());
}
 
Example 9
Source File: SelectArtifactToDeployPage.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
private void createToolbarComposite(DataBindingContext ctx, Composite parent) {
    Composite composite = new Composite(parent, SWT.INHERIT_FORCE);
    composite.setLayout(GridLayoutFactory.fillDefaults().numColumns(2).extendedMargins(0, 0, 8, 0).create());
    composite.setLayoutData(
            GridDataFactory.fillDefaults().align(SWT.END, SWT.FILL).grab(true, false).create());

    Button onlyLatestProcessVersionButton = new Button(composite, SWT.CHECK);
    onlyLatestProcessVersionButton.setText(Messages.selectLatestVersion);

    ctx.bindValue(WidgetProperties.selection().observe(onlyLatestProcessVersionButton),
            PojoProperties.value("latestVersionOnly").observe(this));

    ToolBar toolBar = new ToolBar(composite, SWT.HORIZONTAL | SWT.RIGHT | SWT.NO_FOCUS | SWT.FLAT);

    new ToolItem(toolBar, SWT.SEPARATOR | SWT.VERTICAL);

    ToolItem expandAll = new ToolItem(toolBar, SWT.PUSH);
    expandAll.setImage(Pics.getImage(PicsConstants.expandAll));
    expandAll.setToolTipText(Messages.expandAll);
    expandAll.addListener(SWT.Selection, e -> fileStoreViewer.expandAll());

    ToolItem collapseAll = new ToolItem(toolBar, SWT.PUSH);
    collapseAll.setImage(Pics.getImage(PicsConstants.collapseAll));
    collapseAll.setToolTipText(Messages.collapseAll);
    collapseAll.addListener(SWT.Selection, e -> fileStoreViewer.collapseAll());
}
 
Example 10
Source File: LaborOrderPulldownMenuCreator.java    From elexis-3-core with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Pulldown menu wird anhand selection angepasst
 * 
 * @param parent
 * @param action
 * @param image
 */
private void select(final Control parent, final IAction action, final Image image){
	if (parent instanceof ToolBar) {
		ToolBar toolBar = (ToolBar) parent;
		if (toolBar.getItemCount() > 0) {
			ToolItem toolItem = toolBar.getItem(0);
			toolItem.setImage(image);
			toolItem.setHotImage(image);
			toolItem.setToolTipText(action.getToolTipText());
			
			this.selectedAction = action;
			CoreHub.localCfg.set(LAB_ORDER_SELECTED_ACTION_ID, this.selectedAction.getId());
		}
	}
}
 
Example 11
Source File: XFindPanel.java    From xds-ide with Eclipse Public License 1.0 5 votes vote down vote up
protected ToolItem createSettingsMenu(final ToolBar bar) {
    bSettings = new ToolItem(bar, SWT.PUSH);
    bSettings.setImage(JFaceResources.getImage(PopupDialog.POPUP_IMG_MENU));
    bSettings.setDisabledImage(JFaceResources.getImage(PopupDialog.POPUP_IMG_MENU_DISABLED));
    bSettings.setToolTipText(Messages.XFindPanel_ShowSettings_tooltip); //$NON-NLS-1$
    bSettings.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(final SelectionEvent e) {
            showSettings();
        }
    });
    return bSettings;
}
 
Example 12
Source File: XFindPanel.java    From xds-ide with Eclipse Public License 1.0 5 votes vote down vote up
protected ToolItem createSearchHistoryMenu(final ToolBar bar) {
    bHistory = new ToolItem(bar, SWT.PUSH);
    bHistory.setImage(ImageUtils.getImage(ImageUtils.FIND_HISTORY));
    bHistory.setToolTipText(Messages.XFindPanel_ShowHistory_tooltip);
    bHistory.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(final SelectionEvent e) {
            showHistoryMenu();
        }
    });
    bHistory.setEnabled(!history.isEmpty());
    return bHistory;
}
 
Example 13
Source File: TextWidget.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
protected void createEditItem(final ToolBar toolBar) {
    final ToolItem editButton = new ToolItem(toolBar, SWT.FLAT);
    editButton.setData(SWTBotConstants.SWTBOT_WIDGET_ID_KEY,
            SWTBotConstants.SWTBOT_ID_TRANSACTIONAL_TEXT_EDIT_BUTTON);
    editButton.setImage(ImageDescriptor.createFromFile(TextWidget.class, "edit.png").createImage());
    editButton.addListener(SWT.Dispose, event -> editButton.getImage().dispose());
    editButton.setToolTipText(Messages.edit);
    editButton.addListener(SWT.Selection, editListener(toolBar));
}
 
Example 14
Source File: ExploreBDMContributionItem.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void fill(ToolBar parent, int index) {
    item = new ToolItem(parent, SWT.PUSH);
    item.setData(SWTBotConstants.SWTBOT_WIDGET_ID_KEY, ID);
    item.setText(Messages.explore);
    item.setToolTipText(Messages.exploreTooltip);
    item.setImage(BusinessObjectPlugin.getImage("icons/wen.png"));
    item.addListener(SWT.Selection, event -> commandExecutor.executeCommand(EXPLORE_BDM_COMMAND, null));
    item.setEnabled(isEnabled());
}
 
Example 15
Source File: FileViewerWindow.java    From AppleCommander with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create the copy tool item (button).
 */
protected ToolItem createCopyToolItem() {
	ToolItem toolItem = new ToolItem(toolBar, SWT.PUSH);
	toolItem.setImage(imageManager.get(ImageManager.ICON_COPY));
	toolItem.setText(textBundle.get("FileViewerWindow.CopyButton")); //$NON-NLS-1$
	toolItem.setToolTipText(textBundle.get("FileViewerWindow.CopyTooltip")); //$NON-NLS-1$
	toolItem.setEnabled(true);
	toolItem.addSelectionListener(new SelectionAdapter() {
		public void widgetSelected(SelectionEvent e) {
			getContentTypeAdapter().copy();
		}
	});
	return toolItem;
}
 
Example 16
Source File: BusinessObjectList.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
private void createExpandCollapseItems(ToolBar toolBar) {
    ToolItem expandItem = new ToolItem(toolBar, SWT.PUSH);
    expandItem.setImage(Pics.getImage(PicsConstants.expandAll));
    expandItem.setToolTipText(Messages.expandAll);
    expandItem.addListener(SWT.Selection, e -> viewer.expandAll());

    ToolItem collapseItem = new ToolItem(toolBar, SWT.PUSH);
    collapseItem.setImage(Pics.getImage(PicsConstants.collapseAll));
    collapseItem.setToolTipText(Messages.collapseAll);
    collapseItem.addListener(SWT.Selection, e -> viewer.collapseAll());
}
 
Example 17
Source File: WizardBaseDialog.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
protected void createTabToolButtons( CTabFolder tabFolder )
{
	List<IButtonHandler> buttons = wizardBase.getTabToolButtons( );
	if ( buttons.size( ) == 0 )
	{
		return;
	}
	ToolBar toolbar = new ToolBar( tabFolder, SWT.FLAT | SWT.WRAP );
	tabFolder.setTopRight( toolbar );
	for ( IButtonHandler btnHandler : buttons )
	{
		ToolItem btn = new ToolItem( toolbar, SWT.NONE );
		btn.addSelectionListener( this );
		btn.setData( btnHandler );
		if ( btnHandler.getLabel( ) != null )
		{
			btn.setText( btnHandler.getLabel( ) );
		}
		if ( btnHandler.getTooltip( ) != null )
		{
			btn.setToolTipText( btnHandler.getTooltip( ) );
		}
		if ( btnHandler.getIcon( ) != null )
		{
			btn.setImage( btnHandler.getIcon( ) );
		}
	}
}
 
Example 18
Source File: ShowHelpDialog.java    From pentaho-kettle with Apache License 2.0 4 votes vote down vote up
public void open() {
  Shell parent = getParent();
  display = parent.getDisplay();

  shell = createShell( parent );
  shell.setImage( GUIResource.getInstance().getImageSpoon() );
  props.setLook( shell );

  FormLayout formLayout = new FormLayout();

  shell.setLayout( formLayout );
  shell.setText( dialogTitle );

  //Set Images
  setImages();

  // Canvas
  wBrowser = new Browser( shell, SWT.NONE );
  props.setLook( wBrowser );

  // Browser canvas
  FormData fdBrowser = new FormData();
  fdBrowser.top = new FormAttachment( 0, TOOLBAR_HEIGHT );
  fdBrowser.bottom = new FormAttachment( 100, 0 );
  fdBrowser.right = new FormAttachment( 100, 0 );
  fdBrowser.left = new FormAttachment( 0, 0 );
  wBrowser.setLayoutData( fdBrowser );
  wBrowser.setUrl( url );

  // Left toolbar (back, forward, refresh, home)
  toolbarLeft = new ToolBar( shell, SWT.WRAP );
  FormData fdToolbarLeft = new FormData();
  fdToolbarLeft.top = new FormAttachment( 0, MARGIN );
  toolbarLeft.setLayoutData( fdToolbarLeft );
  toolbarLeft.setCursor( cursorEnabled );
  toolbarLeft.setBackground( toolbarLeft.getParent().getBackground() );

  tltmBack = new ToolItem( toolbarLeft, SWT.PUSH );
  tltmBack.setImage( imageBackEnabled );
  tltmBack.setDisabledImage( imageBackDisabled );
  tltmBack.setToolTipText( BaseMessages.getString( PKG, "Spoon.Documentation.Tooltip.Back" ) );
  tltmBack.setEnabled( false );

  tltmForward = new ToolItem( toolbarLeft, SWT.PUSH );
  tltmForward.setImage( imageForwardEnabled );
  tltmForward.setDisabledImage( imageForwardDisabled );
  tltmForward.setToolTipText( BaseMessages.getString( PKG, "Spoon.Documentation.Tooltip.Forward" ) );
  tltmForward.setEnabled( false );

  tltmRefresh = new ToolItem( toolbarLeft, SWT.PUSH );
  tltmRefresh.setImage( imageRefreshEnabled );
  tltmRefresh.setDisabledImage( imageRefreshDisabled );
  tltmRefresh.setToolTipText( BaseMessages.getString( PKG, "Spoon.Documentation.Tooltip.Refresh" ) );
  tltmRefresh.setEnabled( true );

  tltmHome = new ToolItem( toolbarLeft, SWT.PUSH );
  tltmHome.setImage( imageHomeEnabled );
  tltmHome.setDisabledImage( imageHomeDisabled );
  tltmHome.setToolTipText( BaseMessages.getString( PKG, "Spoon.Documentation.Tooltip.Home" ) );
  tltmHome.setEnabled( true );

  // Right toolbar (print)
  toolbarRight = new ToolBar( shell, SWT.WRAP );
  FormData fdToolbarRight = new FormData();
  fdToolbarRight.top = new FormAttachment( 0, MARGIN );
  fdToolbarRight.right = new FormAttachment( 100, -1 * TOOL_ITEM_SPACING );
  toolbarRight.setLayoutData( fdToolbarRight );
  toolbarRight.setCursor( cursorEnabled );
  toolbarRight.setBackground( toolbarRight.getParent().getBackground() );

  // URL toolbar element
  textURL = new Text( shell, SWT.BORDER );
  FormData fdText = new FormData();
  fdText.top = new FormAttachment( 0, MARGIN );
  fdText.right = new FormAttachment( toolbarRight, -1 * TOOL_ITEM_SPACING );
  fdText.left = new FormAttachment( toolbarLeft, TOOL_ITEM_SPACING );
  textURL.setLayoutData( fdText );
  textURL.setForeground( new Color( display, 101, 101, 101 ) );

  tltmPrint = new ToolItem( toolbarRight, SWT.PUSH );
  tltmPrint.setImage( imagePrintEnabled );
  tltmPrint.setDisabledImage( imagePrintDisabled );
  tltmPrint.setToolTipText( BaseMessages.getString( PKG, "Spoon.Documentation.Tooltip.Print" ) );
  tltmPrint.setEnabled( true );

  setUpListeners();

  // Specs are 760/530, but due to rendering differences, we need to adjust the actual hgt/wdt used
  BaseStepDialog.setSize( shell, 755, 538, true );
  shell.setMinimumSize( 515, 408 );

  shell.open();
  while ( !shell.isDisposed() ) {
    if ( !display.readAndDispatch() ) {
      display.sleep();
    }
  }
}
 
Example 19
Source File: NewCoolbarItem.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void fill(final ToolBar toolbar, final int index, final int iconSize) {
    final ToolItem item = new ToolItem(toolbar, SWT.DROP_DOWN);
    item.setToolTipText(Messages.NewButtonTooltip);
    if (iconSize < 0) {
        item.setImage(Pics.getImage(PicsConstants.coolbar_new_48));
        item.setDisabledImage(Pics.getImage(PicsConstants.coolbar_new_disabled_48));
    } else {
        item.setImage(Pics.getImage(PicsConstants.coolbar_new_16));
        item.setDisabledImage(Pics.getImage(PicsConstants.coolbar_new_disabled_16));
    }
    item.addSelectionListener(new SelectionAdapter() {

        @Override
        public void widgetSelected(final SelectionEvent e) {
            if (isEnabled()) {
                final DropdownSelectionListener listener = new DropdownSelectionListener(item);
                listener.add("org.bonitasoft.studio.organization.manage", Messages.organization);
                listener.addSeparator();

                boolean hasNewBDM = RepositoryManager.getInstance()
                        .getRepositoryStore(BusinessObjectModelRepositoryStore.class)
                        .getChild(BusinessObjectModelFileStore.BOM_FILENAME, true) == null;
                if (hasNewBDM) {
                    hasNewBDM = listener.add("org.bonitasoft.studio.businessobject.define",
                            Messages.businessDataModel);
                }
                boolean hasNewBDMAccess = RepositoryManager.getInstance()
                        .getRepositoryStore(BusinessObjectModelRepositoryStore.class)
                        .getChild("bdm_access_control.xml", true) == null;
                if (hasNewBDMAccess) {
                    hasNewBDMAccess = listener.add(
                            "org.bonitasoft.studio.bdm.access.control.command.definebdmaccesscontrol",
                            Messages.bdmAccessControl);
                }
                if (hasNewBDM || hasNewBDMAccess) {
                    listener.addSeparator();
                }
                if (listener.add("org.bonitasoft.studio.customProfile.newFile.command", Messages.profile)) {
                    listener.addSeparator();
                }
                listener.add("org.bonitasoft.studio.la.new.command", Messages.applicationDescriptor);
                listener.addSeparator();
                listener.add(NEW_DIAGRAM_CMD_ID, null);
                listener.addSeparator();
                listener.add("org.bonitasoft.studio.designer.command.create.page", Messages.applicationPage);
                listener.add("org.bonitasoft.studio.designer.command.create.layout", Messages.layout);
                listener.add("org.bonitasoft.studio.designer.command.create.widget", Messages.customWidget);
                listener.add("org.bonitasoft.studio.application.ex.command.createFragment", Messages.fragment);
                listener.addSeparator();
                if (listener.add("org.bonitasoft.studio.rest.api.extension.newCommand", Messages.restAPIExtension)) {
                    listener.addSeparator();
                }
                if (listener.add("org.bonitasoft.studio.theme.newCommand", Messages.theme)) {
                    listener.addSeparator();
                }
                listener.add("org.bonitasoft.studio.connectors.newDefinition", Messages.connectorDef);
                listener.add("org.bonitasoft.studio.connectors.newImplementation", Messages.connectorImpl);
                listener.addSeparator();
                listener.add("org.bonitasoft.studio.actors.newFilterDef", Messages.actorFilterDef);
                listener.add("org.bonitasoft.studio.actors.newFilterImpl", Messages.actorFilterImpl);
                listener.addSeparator();
                listener.add("org.bonitasoft.studio.groovy.ui.newScript", Messages.newGroovy);
                listener.widgetSelected(e);
            }
        }

    });

}
 
Example 20
Source File: FrequencyController.java    From gama with GNU General Public License v3.0 4 votes vote down vote up
void togglePause(final ToolItem item, final IOutput out) {
	if (out != null) {
		item.setToolTipText((out.isPaused() ? "Resume " : "Pause ") + out.getName());
	}
	view.pauseChanged();
}