org.eclipse.ui.application.IWorkbenchWindowConfigurer#setShowProgressIndicator ( )源码实例Demo

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

/**
 * Diese Methode wird jeweils unmittelbar vor dem öffnen des Anwendungsfensters ausgeführt.
 */
public void preWindowOpen(){
	IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
	// configurer.setInitialSize(new Point(900, 700));
	configurer.setShowCoolBar(true);
	configurer.setShowStatusLine(true);
	configurer.setShowProgressIndicator(true);
	configurer.setTitle(Hub.APPLICATION_NAME + " " + Elexis.VERSION);
	configurer.setShowFastViewBars(true);
	if (CoreHub.localCfg.get(Preferences.SHOWPERSPECTIVESELECTOR, Boolean.toString(false))
		.equals(Boolean.toString(true))) {
		configurer.setShowPerspectiveBar(true);
	} else {
		configurer.setShowPerspectiveBar(false);
	}
	// Wir wollen die schicken runden Tabs von Eclipse 3.x
	PlatformUI.getPreferenceStore().setValue(
		IWorkbenchPreferenceConstants.SHOW_TRADITIONAL_STYLE_TABS, false);
	// Aber die Animationen sind eher nervend, nicht?
	PlatformUI.getPreferenceStore().setValue(IWorkbenchPreferenceConstants.ENABLE_ANIMATIONS,
		false);
	
}
 
@Override
public void preWindowOpen() {
	super.preWindowOpen();
	final IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
	configurer.setInitialSize(new Point(1024, 768));
	configurer.setShowCoolBar(true);
	configurer.setShowStatusLine(true);
	configurer.setShowProgressIndicator(true);
	configurer.setShowPerspectiveBar(true);
	initN4Context();
	updateDefaultEditorMappingIfAbsent();
	reviewDisabledCategoriesFromAppModel();

}
 
@Override
public void preWindowOpen ()
{
    final IWorkbenchWindowConfigurer configurer = getWindowConfigurer ();
    configurer.setInitialSize ( new Point ( 400 * 3, 300 * 3 ) );
    configurer.setShowFastViewBars ( false );
    configurer.setShowProgressIndicator ( true );
    configurer.setShowMenuBar ( true );
    configurer.setShowCoolBar ( true );
    configurer.setShowStatusLine ( true );
}
 
@Override
public void preWindowOpen ()
{
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer ();
    configurer.setInitialSize ( new Point ( 400 * 3, 300 * 3 ) );
    configurer.setShowFastViewBars ( false );
    configurer.setShowPerspectiveBar ( true );
    configurer.setShowProgressIndicator ( true );
    configurer.setShowMenuBar ( true );
    configurer.setShowCoolBar ( true );
    configurer.setShowStatusLine ( true );
    configurer.setTitle ( "Eclipse SCADA Admin Client" );
}
 
public void preWindowOpen() {
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
    configurer.setInitialSize ( new Point ( 1200, 1024 ) );
    configurer.setShowCoolBar ( false );
    configurer.setShowStatusLine ( true );
    configurer.setShowProgressIndicator ( true );
    configurer.setShowMenuBar ( true );
    configurer.setTitle("Eclipse NeoSCADA Client"); //$$NON-NLS-1$$
}
 
public void preWindowOpen()
{
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
    configurer.setInitialSize(new Point(800, 600));
    configurer.setShowFastViewBars(true);
    configurer.setShowStatusLine(true);
    configurer.setShowProgressIndicator(true);
    configurer.setShowCoolBar(false);
    
    // A DropTargetAdapter is need for editor DND support
    final DropTargetListener dtl = new EditorAreaDropAdapter(
            configurer.getWindow());
    configurer.configureEditorAreaDropListener(dtl);
}
 
@Override
public void preWindowOpen() {
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
    configurer.setShowCoolBar(false);
    configurer.setShowStatusLine(true);
    configurer.setShowProgressIndicator(true);
}
 
源代码8 项目: depan   文件: ApplicationWorkbenchWindowAdvisor.java
@Override
public void preWindowOpen() {
  IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
  configurer.setInitialSize(new Point(750, 550));
  configurer.setShowMenuBar(true);
  configurer.setShowCoolBar(true);
  configurer.setShowStatusLine(true);
  configurer.setShowProgressIndicator(true);
  configurer.setTitle("DepAn");
}
 
public void preWindowOpen() {
	IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
	configurer.setShowCoolBar(true);
	configurer.setShowProgressIndicator(true);
	configurer.setShowStatusLine(false);
	Rectangle clientArea = Display.getDefault().getClientArea();
	configurer.setInitialSize(new Point(clientArea.width, clientArea.height));
}
 
源代码10 项目: olca-app   文件: RcpWindowAdvisor.java
@Override
public void preWindowOpen() {
	IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
	configurer.setInitialSize(new Point(800, 600));
	configurer.setShowCoolBar(true);
	configurer.setShowStatusLine(true);
	configurer.setShowProgressIndicator(true);
	configurer.setShowMenuBar(true);
	configurer.setTitle(Config.APPLICATION_NAME + " " + App.getVersion());
}
 
/**
 * (non-Javadoc)
 * @see org.eclipse.ui.application.WorkbenchWindowAdvisor#preWindowOpen()
 */
public void preWindowOpen() {
	IWorkbenchWindowConfigurer configurer = getWindowConfigurer();

	// show the shortcut bar and progress indicator, which are hidden by default
	configurer.setShowCoolBar(true);

	// 检查是否显示装态栏 robert 2011-11-04 true为显示,false为隐藏,默认显示.
	IPreferenceStore prefs = Activator.getDefault().getPreferenceStore();
	boolean visibleStatus = prefs.getBoolean(TsPreferencesConstant.TS_statusBar_status);
	configurer.setShowStatusLine(visibleStatus);
	configurer.setShowProgressIndicator(true);
	// 添加“编辑区域”的传递者(org.eclipse.swt.dnd.Transfer)
	configurer.addEditorAreaTransfer(LocalSelectionTransfer.getTransfer());
	configurer.addEditorAreaTransfer(FileTransfer.getInstance());
	// 添加“编辑区域”的释放拖拽监听
	configurer.configureEditorAreaDropListener(new EditorAreaDropAdapter(configurer.getWindow()));

	// 注释整理
	// TODO 根据注册的转换器插件,动态添加 XLIFF Editor 映射的文件后缀名。
	// abw,html,htm,inx,properties,js,mif,doc,xls,ppt,docx,xlsx,pptx,ppsx,sxw,sxc,sxi,sxd,odt,ods,odp,odg,txt,ttx,po,pot,rc,resx,rtf,svg,xml
	// String[] extensions = FileFormatUtils.getExtensions();
	// for (String extension : extensions) {
	// PlatformUI
	// .getWorkbench()
	// .getEditorRegistry()
	// .setDefaultEditor(extension,
	// "net.heartsome.cat.ts.ui.xliffeditor.nattable.editor");
	// }

	// begin屏蔽掉向导中的General部分
	// AbstractExtensionWizardRegistry wizardRegistry = (AbstractExtensionWizardRegistry) WorkbenchPlugin
	// .getDefault().getNewWizardRegistry();
	// IWizardCategory[] categories = WorkbenchPlugin.getDefault()
	// .getNewWizardRegistry().getRootCategory().getCategories();
	// for (IWizardDescriptor wizard : getAllWizards(categories)) {
	// WorkbenchWizardElement wizardElement = (WorkbenchWizardElement) wizard;
	// if (!allowedWizard(wizardElement.getId())) {
	// wizardRegistry.removeExtension(wizardElement
	// .getConfigurationElement().getDeclaringExtension(),
	// new Object[] { wizardElement });
	// }
	// }
	// end
	
}
 
/**
 * (non-Javadoc)
 * @see org.eclipse.ui.application.WorkbenchWindowAdvisor#preWindowOpen()
 */
public void preWindowOpen() {
	IWorkbenchWindowConfigurer configurer = getWindowConfigurer();

	// show the shortcut bar and progress indicator, which are hidden by default
	configurer.setShowCoolBar(true);

	// 检查是否显示装态栏 robert 2011-11-04 true为显示,false为隐藏,默认显示.
	IPreferenceStore prefs = Activator.getDefault().getPreferenceStore();
	boolean visibleStatus = prefs.getBoolean(TsPreferencesConstant.TS_statusBar_status);
	configurer.setShowStatusLine(visibleStatus);
	configurer.setShowProgressIndicator(true);
	// 添加“编辑区域”的传递者(org.eclipse.swt.dnd.Transfer)
	configurer.addEditorAreaTransfer(LocalSelectionTransfer.getTransfer());
	configurer.addEditorAreaTransfer(FileTransfer.getInstance());
	// 添加“编辑区域”的释放拖拽监听
	configurer.configureEditorAreaDropListener(new EditorAreaDropAdapter(configurer.getWindow()));

	// 注释整理
	// TODO 根据注册的转换器插件,动态添加 XLIFF Editor 映射的文件后缀名。
	// abw,html,htm,inx,properties,js,mif,doc,xls,ppt,docx,xlsx,pptx,ppsx,sxw,sxc,sxi,sxd,odt,ods,odp,odg,txt,ttx,po,pot,rc,resx,rtf,svg,xml
	// String[] extensions = FileFormatUtils.getExtensions();
	// for (String extension : extensions) {
	// PlatformUI
	// .getWorkbench()
	// .getEditorRegistry()
	// .setDefaultEditor(extension,
	// "net.heartsome.cat.ts.ui.xliffeditor.nattable.editor");
	// }

	// begin屏蔽掉向导中的General部分
	// AbstractExtensionWizardRegistry wizardRegistry = (AbstractExtensionWizardRegistry) WorkbenchPlugin
	// .getDefault().getNewWizardRegistry();
	// IWizardCategory[] categories = WorkbenchPlugin.getDefault()
	// .getNewWizardRegistry().getRootCategory().getCategories();
	// for (IWizardDescriptor wizard : getAllWizards(categories)) {
	// WorkbenchWizardElement wizardElement = (WorkbenchWizardElement) wizard;
	// if (!allowedWizard(wizardElement.getId())) {
	// wizardRegistry.removeExtension(wizardElement
	// .getConfigurationElement().getDeclaringExtension(),
	// new Object[] { wizardElement });
	// }
	// }
	// end
	configurer.setShowPerspectiveBar(true);
}
 
public BonitaStudioWorkbenchWindowAdvisor(final IWorkbenchWindowConfigurer configurer) {
    super(configurer);
    configurer.setShowProgressIndicator(true);
    window = configurer.getWindow();
}