org.eclipse.swt.widgets.Shell#setImages ( )源码实例Demo

下面列出了org.eclipse.swt.widgets.Shell#setImages ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: birt   文件: EmbeddedBrowser.java
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( ) );
}
 
源代码2 项目: arx   文件: DialogComboSelection.java
@Override
protected void configureShell(Shell shell) {
    super.configureShell(shell);
    if (title != null) {
        shell.setText(title);
    }
    shell.setImages(Resources.getIconSet(shell.getDisplay()));
}
 
源代码3 项目: arx   文件: DialogComboDoubleSelection.java
@Override
protected void configureShell(Shell shell) {
    super.configureShell(shell);
    if (title != null) {
        shell.setText(title);
    }
    shell.setImages(Resources.getIconSet(shell.getDisplay()));
}
 
源代码4 项目: n4js   文件: N4JSApplication.java
@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();
	}
}
 
源代码5 项目: arx   文件: DialogAuditTrail.java
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
源代码6 项目: arx   文件: DialogAnonymization.java
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
源代码7 项目: arx   文件: DialogQuery.java
@Override                                                    
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
源代码8 项目: arx   文件: DialogOrderSelection.java
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
源代码9 项目: arx   文件: DialogTopBottomCoding.java
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
源代码10 项目: arx   文件: DialogOpenHierarchy.java
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
源代码11 项目: arx   文件: DialogCriterionUpdate.java
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
源代码12 项目: arx   文件: DialogDebug.java
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
源代码13 项目: arx   文件: DialogAbout.java
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
源代码14 项目: arx   文件: DialogDefaultParameters.java
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
源代码15 项目: arx   文件: DialogProject.java
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
源代码16 项目: arx   文件: DialogFindReplace.java
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
源代码17 项目: arx   文件: DialogHelp.java
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
源代码18 项目: arx   文件: DialogError.java
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
源代码19 项目: arx   文件: DialogCriterionSelection.java
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}
 
源代码20 项目: arx   文件: DialogGeneralizationSelection.java
@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    newShell.setImages(Resources.getIconSet(newShell.getDisplay()));
}