Java Code Examples for org.eclipse.swt.widgets.Shell#setImages()

The following examples show how to use org.eclipse.swt.widgets.Shell#setImages() . 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: EmbeddedBrowser.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
private static void initializeShell( Shell s )
{
	// need not set title for viewer content will set window title.
	// s.setText( initialTitle );

	Image[] shellImages = createImages( );

	if ( shellImages != null )
	{
		s.setImages( shellImages );
	}

	s.setLayout( new FillLayout( ) );
}
 
Example 2
Source File: DialogComboDoubleSelection.java    From arx with Apache License 2.0 5 votes vote down vote up
@Override
protected void configureShell(Shell shell) {
    super.configureShell(shell);
    if (title != null) {
        shell.setText(title);
    }
    shell.setImages(Resources.getIconSet(shell.getDisplay()));
}
 
Example 3
Source File: DialogComboSelection.java    From arx with Apache License 2.0 5 votes vote down vote up
@Override
protected void configureShell(Shell shell) {
    super.configureShell(shell);
    if (title != null) {
        shell.setText(title);
    }
    shell.setImages(Resources.getIconSet(shell.getDisplay()));
}
 
Example 4
Source File: DialogGeneralizationSelection.java    From arx with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
Example 5
Source File: N4JSApplication.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public Object start(final IApplicationContext appContext) throws Exception {
	final Display display = createDisplay();

	try {

		// look and see if there's a splash shell we can parent off of
		final Shell shell = WorkbenchPlugin.getSplashShell(display);
		if (shell != null) {
			// should should set the icon and message for this shell to be the
			// same as the chooser dialog - this will be the guy that lives in
			// the task bar and without these calls you'd have the default icon
			// with no message.
			shell.setText(ChooseWorkspaceDialog.getWindowTitle());
			shell.setImages(Window.getDefaultImages());
		}

		final Object instanceLocationCheck = checkInstanceLocation(shell, appContext.getArguments());
		if (instanceLocationCheck != null) {
			WorkbenchPlugin.unsetSplashShell(display);
			appContext.applicationRunning();
			return instanceLocationCheck;
		}

		// create the workbench with this advisor and run it until it exits
		// N.B. createWorkbench remembers the advisor, and also registers
		// the workbench globally so that all UI plug-ins can find it using
		// PlatformUI.getWorkbench() or AbstractUIPlugin.getWorkbench()
		final int returnCode = createAndRunWorkbench(display, new N4JSApplicationWorkbenchAdvisor());

		// the workbench doesn't support relaunch yet (bug 61809) so
		// for now restart is used, and exit data properties are checked
		// here to substitute in the relaunch return code if needed
		if (returnCode != PlatformUI.RETURN_RESTART) {
			return EXIT_OK;
		}

		// if the exit code property has been set to the relaunch code, then
		// return that code now, otherwise this is a normal restart
		return EXIT_RELAUNCH.equals(Integer.getInteger(PROP_EXIT_CODE)) ? EXIT_RELAUNCH
				: EXIT_RESTART;
	} finally {
		if (display != null) {
			display.dispose();
		}
		final Location instanceLoc = Platform.getInstanceLocation();
		if (instanceLoc != null)
			instanceLoc.release();
	}
}
 
Example 6
Source File: DialogCriterionSelection.java    From arx with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
Example 7
Source File: DialogError.java    From arx with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
Example 8
Source File: DialogHelp.java    From arx with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
Example 9
Source File: DialogFindReplace.java    From arx with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
Example 10
Source File: DialogProject.java    From arx with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
Example 11
Source File: DialogDefaultParameters.java    From arx with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
Example 12
Source File: DialogAbout.java    From arx with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
Example 13
Source File: DialogDebug.java    From arx with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
Example 14
Source File: DialogCriterionUpdate.java    From arx with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
Example 15
Source File: DialogOpenHierarchy.java    From arx with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
Example 16
Source File: DialogTopBottomCoding.java    From arx with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
Example 17
Source File: DialogOrderSelection.java    From arx with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
Example 18
Source File: DialogQuery.java    From arx with Apache License 2.0 4 votes vote down vote up
@Override                                                    
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
Example 19
Source File: DialogAnonymization.java    From arx with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
Example 20
Source File: DialogAuditTrail.java    From arx with Apache License 2.0 4 votes vote down vote up
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}