Java Code Examples for org.eclipse.e4.ui.workbench.IWorkbench#close()

The following examples show how to use org.eclipse.e4.ui.workbench.IWorkbench#close() . 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 offspring with MIT License 5 votes vote down vote up
@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 2
Source File: QuitHandler.java    From codeexamples-eclipse with Eclipse Public License 1.0 5 votes vote down vote up
@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 vote down vote up
@Execute
public void execute(IWorkbench workbench, Shell shell){
	if (MessageDialog.openConfirm(shell, "Confirmation",
			"Do you want to exit?")) {
		workbench.close();
	}
}
 
Example 4
Source File: QuitHandler.java    From codeexamples-eclipse with Eclipse Public License 1.0 5 votes vote down vote up
@Execute
public void execute(IWorkbench workbench, Shell shell){
	if (MessageDialog.openConfirm(shell, "Confirmation",
			"Do you want to exit?")) {
		workbench.close();
	}
}
 
Example 5
Source File: QuitHandler.java    From codeexamples-eclipse with Eclipse Public License 1.0 5 votes vote down vote up
@Execute
public void execute(IWorkbench workbench, Shell shell){
	if (MessageDialog.openConfirm(shell, "Confirmation",
			"Do you want to exit?")) {
		workbench.close();
	}
}
 
Example 6
Source File: QuitHandler.java    From codeexamples-eclipse with Eclipse Public License 1.0 5 votes vote down vote up
@Execute
public void execute(IWorkbench workbench, Shell shell){
	if (MessageDialog.openConfirm(shell, "Confirmation",
			"Do you want to exit?")) {
		workbench.close();
	}
}
 
Example 7
Source File: QuitHandler.java    From codeexamples-eclipse with Eclipse Public License 1.0 5 votes vote down vote up
@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 vote down vote up
@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 vote down vote up
@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 vote down vote up
@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 e4Preferences with Eclipse Public License 1.0 5 votes vote down vote up
@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 nebula with Eclipse Public License 2.0 4 votes vote down vote up
@Execute
public void execute(final IWorkbench workbench, final Shell shell) {
	if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) {
		workbench.close();
	}
}
 
Example 13
Source File: QuitHandler.java    From nebula with Eclipse Public License 2.0 4 votes vote down vote up
@Execute
public void execute(final IWorkbench workbench, final Shell shell) {
	if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) {
		workbench.close();
	}
}
 
Example 14
Source File: QuitHandler.java    From nebula with Eclipse Public License 2.0 4 votes vote down vote up
@Execute
public void execute(final IWorkbench workbench, final Shell shell) {
	if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) {
		workbench.close();
	}
}
 
Example 15
Source File: QuitHandler.java    From nebula with Eclipse Public License 2.0 4 votes vote down vote up
@Execute
public void execute(final IWorkbench workbench, final Shell shell) {
	if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) {
		workbench.close();
	}
}