org.eclipse.e4.ui.workbench.IWorkbench Java Examples
The following examples show how to use
org.eclipse.e4.ui.workbench.IWorkbench.
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: QuitHandler.java From e4Preferences with Eclipse Public License 1.0 | 5 votes |
@Execute public void execute(IWorkbench workbench, Shell shell){ if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) { workbench.close(); } }
Example #2
Source File: QuitHandler.java From codeexamples-eclipse with Eclipse Public License 1.0 | 5 votes |
@Execute public void execute(IWorkbench workbench, Shell shell){ if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) { workbench.close(); } }
Example #3
Source File: QuitHandler.java From codeexamples-eclipse with Eclipse Public License 1.0 | 5 votes |
@Execute public void execute(IWorkbench workbench, Shell shell){ if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) { workbench.close(); } }
Example #4
Source File: UpdateDialog.java From offspring with MIT License | 5 votes |
public UpdateDialog(Display display, Shell shell, UISynchronize sync, IProvisioningAgent agent, IDataProviderPool pool, IWorkbench workbench) { super(shell); this.monitor = new UpdateProgressMonitor(this, sync); this.sync = sync; this.agent = agent; this.display = display; this.pool = pool; this.workbench = workbench; }
Example #5
Source File: QuitHandler.java From offspring with MIT License | 5 votes |
@Execute public void execute(Display display, IEventBroker broker, INxtService nxt, IDataProviderPool pool, IWorkbench workbench, UISynchronize sync) { if (Shutdown.execute(display.getActiveShell(), broker, sync, nxt, pool)) { workbench.close(); } }
Example #6
Source File: UpdateHandler.java From offspring with MIT License | 5 votes |
@Execute public void execute(Display display, Shell shell, UISynchronize sync, IProvisioningAgent agent, INxtService nxt, IDataProviderPool pool, IWorkbench workbench) { UpdateDialog dialog = new UpdateDialog(display, shell, sync, agent, pool, workbench); dialog.create(); dialog.open(); }
Example #7
Source File: QuitHandler.java From codeexamples-eclipse with Eclipse Public License 1.0 | 5 votes |
@Execute public void execute(IWorkbench workbench, Shell shell){ if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) { workbench.close(); } }
Example #8
Source File: QuitHandler.java From codeexamples-eclipse with Eclipse Public License 1.0 | 5 votes |
@Execute public void execute(IWorkbench workbench, Shell shell){ if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) { workbench.close(); } }
Example #9
Source File: QuitHandler.java From codeexamples-eclipse with Eclipse Public License 1.0 | 5 votes |
@Execute public void execute(IWorkbench workbench, Shell shell){ if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) { workbench.close(); } }
Example #10
Source File: QuitHandler.java From codeexamples-eclipse with Eclipse Public License 1.0 | 5 votes |
@Execute public void execute(IWorkbench workbench, Shell shell){ if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) { workbench.close(); } }
Example #11
Source File: QuitHandler.java From codeexamples-eclipse with Eclipse Public License 1.0 | 5 votes |
@Execute public void execute(IWorkbench workbench, Shell shell){ if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) { workbench.close(); } }
Example #12
Source File: QuitHandler.java From codeexamples-eclipse with Eclipse Public License 1.0 | 5 votes |
@Execute public void execute(IWorkbench workbench, Shell shell){ if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) { workbench.close(); } }
Example #13
Source File: QuitHandler.java From codeexamples-eclipse with Eclipse Public License 1.0 | 5 votes |
@Execute public void execute(IWorkbench workbench, Shell shell){ if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) { workbench.close(); } }
Example #14
Source File: LifeCycleManager.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
@PostContextCreate public void disablePersistState(IEclipseContext context) { System.setProperty(IWorkbench.CLEAR_PERSISTED_STATE, String.valueOf(shouldClearPersistedState())); }
Example #15
Source File: E4CompatibilityUtil.java From MergeProcessor with Apache License 2.0 | 4 votes |
/** * @return the application context */ public static IEclipseContext getApplicationContext() { return ((IWorkbench) PlatformUI.getWorkbench()).getApplication().getContext(); }
Example #16
Source File: QuitHandler.java From nebula with Eclipse Public License 2.0 | 4 votes |
@Execute public void execute(final IWorkbench workbench, final Shell shell) { if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) { workbench.close(); } }
Example #17
Source File: QuitHandler.java From nebula with Eclipse Public License 2.0 | 4 votes |
@Execute public void execute(final IWorkbench workbench, final Shell shell) { if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) { workbench.close(); } }
Example #18
Source File: QuitHandler.java From nebula with Eclipse Public License 2.0 | 4 votes |
@Execute public void execute(final IWorkbench workbench, final Shell shell) { if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) { workbench.close(); } }
Example #19
Source File: QuitHandler.java From nebula with Eclipse Public License 2.0 | 4 votes |
@Execute public void execute(final IWorkbench workbench, final Shell shell) { if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) { workbench.close(); } }