Java Code Examples for org.eclipse.jface.action.IAction#AS_CHECK_BOX
The following examples show how to use
org.eclipse.jface.action.IAction#AS_CHECK_BOX .
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: ShowOnContentChangeAction.java From codewind-eclipse with Eclipse Public License 2.0 | 5 votes |
public ShowOnContentChangeAction(SocketConsole console) { super(Messages.ShowOnContentChangeAction, IAction.AS_CHECK_BOX); setToolTipText(Messages.ShowOnContentChangeAction); setId(CodewindUIPlugin.PLUGIN_ID + ".ShowOnContentChangeAction"); //$NON-NLS-1$ setImageDescriptor(DebugUITools.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_STANDARD_OUT)); this.console = console; }
Example 2
Source File: Exercise1.java From dawnsci with Eclipse Public License 1.0 | 5 votes |
@Override public void createPartControl(Composite parent) { try { // We create toggle for running the thread which changes the image // There are many other ways of adding a button to do something in eclipse // Use your favourite. IAction runReorder = new Action("Run Reordering", IAction.AS_CHECK_BOX) { public void run() { boolean updating = isChecked(); if (updating) { startReorderThread(); } else { stopReorderThread(); } } }; getViewSite().getActionBars().getToolBarManager().add(runReorder); getViewSite().getActionBars().getToolBarManager().add(new Separator()); // We create a basic plot system.createPlotPart(parent, "Exercise1", getViewSite().getActionBars(), PlotType.IMAGE, this); // We read an image final File loc = new File(BundleUtils.getBundleLocation(Activator.PLUGIN_ID), "pow_M99S5_1_0001.cbf"); final IDataset image = service.getDataset(loc.getAbsolutePath(), new IMonitor.Stub()); image.setName("Image"); // NOTE IMonitor is an alternative to IProgressMonitor which cannot be seen in the data layer. // We plot the initial image system.createPlot2D(image, null, new NullProgressMonitor()); } catch (Throwable ne) { ne.printStackTrace(); // Or your favourite logging. } }
Example 3
Source File: JavaOutlineInformationControl.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
private ShowOnlyMainTypeAction(TreeViewer outlineViewer) { super(TextMessages.JavaOutlineInformationControl_GoIntoTopLevelType_label, IAction.AS_CHECK_BOX); setToolTipText(TextMessages.JavaOutlineInformationControl_GoIntoTopLevelType_tooltip); setDescription(TextMessages.JavaOutlineInformationControl_GoIntoTopLevelType_description); JavaPluginImages.setLocalImageDescriptors(this, "gointo_toplevel_type.gif"); //$NON-NLS-1$ PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.GO_INTO_TOP_LEVEL_TYPE_ACTION); fOutlineViewer= outlineViewer; boolean showclass= getDialogSettings().getBoolean(STORE_GO_INTO_TOP_LEVEL_TYPE_CHECKED); setTopLevelTypeOnly(showclass); }
Example 4
Source File: ToggleBreadcrumbAction.java From birt with Eclipse Public License 1.0 | 5 votes |
/** * Constructs and updates the action. * * @param page the workbench page */ public ToggleBreadcrumbAction(IWorkbenchPage page) { super(null, IAction.AS_CHECK_BOX); setToolTipText( Messages.getString("ToggleBreadcrumbAction.tooltip.switch.breadcrumb") ); //$NON-NLS-1$ setImageDescriptor( ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_TOGGLE_BREADCRUMB ) ); setDisabledImageDescriptor( ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_TOGGLE_BREADCRUMB_DISABLE ) ); //PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.TOGGLE_BREADCRUMB_ACTION); fPage= page; fPage.getWorkbenchWindow().addPerspectiveListener(this); update(); }
Example 5
Source File: AdvancePropertyDescriptorProvider.java From birt with Eclipse Public License 1.0 | 5 votes |
GroupSortingAction( AdvancePropertyDescriptor control ) { super( null, IAction.AS_CHECK_BOX ); this.control = control; setImageDescriptor( ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_GROUP_SORT ) ); setToolTipText( AdvancePropertyDescriptorProvider.this.getToolTipText( AdvancePropertyDescriptorProvider.MODE_GROUPED ) ); }
Example 6
Source File: JavaOutlineInformationControl.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
private LexicalSortingAction(TreeViewer outlineViewer) { super(TextMessages.JavaOutlineInformationControl_LexicalSortingAction_label, IAction.AS_CHECK_BOX); setToolTipText(TextMessages.JavaOutlineInformationControl_LexicalSortingAction_tooltip); setDescription(TextMessages.JavaOutlineInformationControl_LexicalSortingAction_description); JavaPluginImages.setLocalImageDescriptors(this, "alphab_sort_co.gif"); //$NON-NLS-1$ fOutlineViewer= outlineViewer; boolean checked=getDialogSettings().getBoolean(STORE_LEXICAL_SORTING_CHECKED); setChecked(checked); PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.LEXICAL_SORTING_BROWSING_ACTION); }
Example 7
Source File: ToggleMarkOccurrencesAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
/** * Constructs and updates the action. */ public ToggleMarkOccurrencesAction() { super(JavaEditorMessages.getBundleForConstructedKeys(), "ToggleMarkOccurrencesAction.", null, IAction.AS_CHECK_BOX); //$NON-NLS-1$ JavaPluginImages.setToolImageDescriptors(this, "mark_occurrences.gif"); //$NON-NLS-1$ PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.TOGGLE_MARK_OCCURRENCES_ACTION); update(); }
Example 8
Source File: ChangeStampAction.java From ermaster-b with Apache License 2.0 | 4 votes |
public ChangeStampAction(ERDiagramEditor editor) { super(ID, null, IAction.AS_CHECK_BOX, editor); this.setText(ResourceString .getResourceString("action.title.display.stamp")); }
Example 9
Source File: TypeSelectionComponent.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
public ToggleStatusLineAction() { super(JavaUIMessages.TypeSelectionComponent_show_status_line_label, IAction.AS_CHECK_BOX); }
Example 10
Source File: ChangeFreeLayoutAction.java From ermasterr with Apache License 2.0 | 4 votes |
public ChangeFreeLayoutAction(final ERDiagramEditor editor) { super(ID, null, IAction.AS_CHECK_BOX, editor); setText(ResourceString.getResourceString("action.title.category.free.layout")); }
Example 11
Source File: ChangeShowReferredTablesAction.java From ermasterr with Apache License 2.0 | 4 votes |
public ChangeShowReferredTablesAction(final ERDiagramEditor editor) { super(ID, null, IAction.AS_CHECK_BOX, editor); setText(ResourceString.getResourceString("action.title.category.show.referred.tables")); }
Example 12
Source File: LockEditAction.java From ermasterr with Apache License 2.0 | 4 votes |
public LockEditAction(final ERDiagramEditor editor) { super(ID, null, IAction.AS_CHECK_BOX, editor); setText(ResourceString.getResourceString("action.title.lock.edit")); }
Example 13
Source File: ChangeNotationExpandGroupAction.java From ermasterr with Apache License 2.0 | 4 votes |
public ChangeNotationExpandGroupAction(final ERDiagramEditor editor) { super(ID, null, IAction.AS_CHECK_BOX, editor); setText(ResourceString.getResourceString("action.title.notation.expand.group")); }
Example 14
Source File: CopyOfTooltipAction.java From erflute with Apache License 2.0 | 4 votes |
public CopyOfTooltipAction(MainDiagramEditor editor) { super(ID, null, IAction.AS_CHECK_BOX, editor); setText(DisplayMessages.getMessage("action.title.display.tooltip")); }
Example 15
Source File: ReportPropertySheetPage.java From birt with Eclipse Public License 1.0 | 4 votes |
LocalModelAction( ) { super( null, IAction.AS_CHECK_BOX ); setImageDescriptor( ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_LOCAL_PROPERTIES ) ); setToolTipText( Messages.getString( "ReportPropertySheetPage.Tooltip.Local" ) ); //$NON-NLS-1$ }
Example 16
Source File: ReportPropertySheetPage.java From birt with Eclipse Public License 1.0 | 4 votes |
GroupSortingAction( ) { super( null, IAction.AS_CHECK_BOX ); setImageDescriptor( ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_GROUP_SORT ) ); setToolTipText( Messages.getString( "ReportPropertySheetPage.Tooltip.Group" ) ); //$NON-NLS-1$ }
Example 17
Source File: ToggleTerminateBeforeRelaunchAction.java From eclipse-extras with Eclipse Public License 1.0 | 4 votes |
public ToggleTerminateBeforeRelaunchAction( DebugUIPreferences preferences ) { super( "Terminate before Relaunch", IAction.AS_CHECK_BOX ); this.preferences = preferences; setId( ID ); setChecked( preferences.isTerminateBeforeRelaunch() ); }
Example 18
Source File: EditViewPage.java From uima-uimaj with Apache License 2.0 | 4 votes |
/** * Instantiates a new pin action. */ PinAction() { super("PinAction", IAction.AS_CHECK_BOX); }
Example 19
Source File: FilteredTypesSelectionDialog.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
/** * Creates a new instance of the class */ public ShowContainerForDuplicatesAction() { super(JavaUIMessages.FilteredTypeSelectionDialog_showContainerForDuplicatesAction, IAction.AS_CHECK_BOX); }
Example 20
Source File: ToggleMainColumnAction.java From erflute with Apache License 2.0 | 4 votes |
public ToggleMainColumnAction(MainDiagramEditor editor) { super(ID, null, IAction.AS_CHECK_BOX, editor); setText(DisplayMessages.getMessage("action.title.display.mainColumn")); }