當前位置: 首頁>>代碼示例>>Java>>正文


Java IWorkbenchWindowConfigurer.setShowPerspectiveBar方法代碼示例

本文整理匯總了Java中org.eclipse.ui.application.IWorkbenchWindowConfigurer.setShowPerspectiveBar方法的典型用法代碼示例。如果您正苦於以下問題:Java IWorkbenchWindowConfigurer.setShowPerspectiveBar方法的具體用法?Java IWorkbenchWindowConfigurer.setShowPerspectiveBar怎麽用?Java IWorkbenchWindowConfigurer.setShowPerspectiveBar使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.eclipse.ui.application.IWorkbenchWindowConfigurer的用法示例。


在下文中一共展示了IWorkbenchWindowConfigurer.setShowPerspectiveBar方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: preWindowOpen

import org.eclipse.ui.application.IWorkbenchWindowConfigurer; //導入方法依賴的package包/類
public void preWindowOpen() {

		IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
		//configurer.setInitialSize(new Point(100, 100));
		//configurer.getWindow().getShell().setMaximized( true ); 
		configurer.setShowCoolBar(false);
		configurer.setShowStatusLine(false);
		configurer.setShowPerspectiveBar(false);
		configurer.setShowProgressIndicator(false);
		//configurer.setShowPerspectiveBar(true);
		configurer.setTitle("IDRT Import and Mapping Tool V"
				+ Activator.getDefault().getBundle().getVersion());
		
		//TODO
		 configurer.setShowStatusLine(true);
	        configurer.setShowProgressIndicator(true);
//		IPreferenceStore apiStore = PlatformUI.getPreferenceStore();
//		apiStore.setValue(IWorkbenchPreferenceConstants.DOCK_PERSPECTIVE_BAR,
//				"TOP_RIGHT");

	}
 
開發者ID:tmfev,項目名稱:IDRT-Import-and-Mapping-Tool,代碼行數:22,代碼來源:ApplicationWorkbenchWindowAdvisor.java

示例2: preWindowOpen

import org.eclipse.ui.application.IWorkbenchWindowConfigurer; //導入方法依賴的package包/類
public void preWindowOpen()
{
  IWorkbenchWindowConfigurer configurer = getWindowConfigurer();

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

  // add the drag and drop support for the editor area
  configurer.addEditorAreaTransfer(EditorInputTransfer.getInstance());
  configurer.addEditorAreaTransfer(ResourceTransfer.getInstance());
  configurer.addEditorAreaTransfer(FileTransfer.getInstance());
  configurer.addEditorAreaTransfer(MarkerTransfer.getInstance());
  configurer.configureEditorAreaDropListener(new EditorAreaDropAdapter(
      configurer.getWindow()));

  hookTitleUpdateListeners(configurer);
}
 
開發者ID:debrief,項目名稱:limpet,代碼行數:21,代碼來源:ApplicationWorkbenchWindowAdvisor.java

示例3: EnsembleWorkbenchWindowAdvisor

import org.eclipse.ui.application.IWorkbenchWindowConfigurer; //導入方法依賴的package包/類
public EnsembleWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
		super(configurer);
		
		// set the initialize app window size
		Rectangle monitorSize = PlatformUI.getWorkbench().getDisplay().getPrimaryMonitor().getClientArea();
		configurer.setInitialSize(getInitialWindowSize(monitorSize.width, monitorSize.height));
		
		configurer.setShowCoolBar(true);
		configurer.setShowStatusLine(true);
		configurer.setShowProgressIndicator(true);
		configurer.setShowPerspectiveBar(true);
		
		// add the drag and drop support for the editor area
		// TODO investigate how much of the following commented code would be useful to us
//		configurer.addEditorAreaTransfer(EditorInputTransfer.getInstance());
//		configurer.addEditorAreaTransfer(ResourceTransfer.getInstance());
//		configurer.addEditorAreaTransfer(FileTransfer.getInstance());
//		configurer.addEditorAreaTransfer(MarkerTransfer.getInstance());
		configurer.configureEditorAreaDropListener(new EditorAreaDropAdapter(configurer.getWindow()));
		
		removeActionSets(getUndesirableActionSets());
		removePopupMenus(getUndesirablePopupMenus());
	}
 
開發者ID:nasa,項目名稱:OpenSPIFe,代碼行數:24,代碼來源:EnsembleWorkbenchWindowAdvisor.java

示例4: preWindowOpen

import org.eclipse.ui.application.IWorkbenchWindowConfigurer; //導入方法依賴的package包/類
/**
 * 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 + " " + CoreHub.readElexisBuildVersion());
	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);
	
}
 
開發者ID:elexis,項目名稱:elexis-3-core,代碼行數:26,代碼來源:ApplicationWorkbenchWindowAdvisor.java

示例5: preWindowOpen

import org.eclipse.ui.application.IWorkbenchWindowConfigurer; //導入方法依賴的package包/類
@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();

}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:15,代碼來源:N4JSApplicationWorkbenchWindowAdvisor.java

示例6: preWindowOpen

import org.eclipse.ui.application.IWorkbenchWindowConfigurer; //導入方法依賴的package包/類
@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" );
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:14,代碼來源:ApplicationWorkbenchWindowAdvisor.java

示例7: preWindowOpen

import org.eclipse.ui.application.IWorkbenchWindowConfigurer; //導入方法依賴的package包/類
@Override
public void preWindowOpen() {
	IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
	configurer.setInitialSize(new Point(800, 800));
	configurer.setShowCoolBar(true);
	configurer.setShowStatusLine(true);
	configurer.setTitle("XStreamer");
	configurer.setShowPerspectiveBar(true);
}
 
開發者ID:NineWorlds,項目名稱:xstreamer,代碼行數:10,代碼來源:ApplicationWorkbenchWindowAdvisor.java

示例8: preWindowOpen

import org.eclipse.ui.application.IWorkbenchWindowConfigurer; //導入方法依賴的package包/類
@Override
public void preWindowOpen() {
    super.preWindowOpen();
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer();

    configurer.setInitialSize(new Point(1920, 1200));
    configurer.setShowMenuBar(true);
    configurer.setShowCoolBar(true);
    configurer.setShowFastViewBars(true);
    configurer.setShowProgressIndicator(true);
    configurer.setShowPerspectiveBar(true);
    configurer.setShowStatusLine(true);
    configurer.setTitle(getDefaultTitle());
}
 
開發者ID:yamcs,項目名稱:yamcs-studio,代碼行數:15,代碼來源:YamcsStudioWorkbenchWindowAdvisor.java

示例9: preWindowOpen

import org.eclipse.ui.application.IWorkbenchWindowConfigurer; //導入方法依賴的package包/類
@Override
	public void preWindowOpen() {

		final IWorkbenchWindowConfigurer configurer = getWindowConfigurer();

		configurer.setInitialSize(new Point(950, 700));

		configurer.setShowPerspectiveBar(true);
		configurer.setShowCoolBar(true);
		configurer.setShowProgressIndicator(true);

// status line shows photo selection and loading state
//		configurer.setShowStatusLine(false);

		configurer.setTitle(_appTitle);

		final IPreferenceStore uiPrefStore = PlatformUI.getPreferenceStore();

		uiPrefStore.setValue(IWorkbenchPreferenceConstants.SHOW_TRADITIONAL_STYLE_TABS, true);
		uiPrefStore.setValue(IWorkbenchPreferenceConstants.SHOW_PROGRESS_ON_STARTUP, true);

		// show memory monitor
		final boolean isMemoryMonitorVisible = _prefStore
				.getBoolean(ITourbookPreferences.APPEARANCE_SHOW_MEMORY_MONITOR);
		uiPrefStore.setValue(IWorkbenchPreferenceConstants.SHOW_MEMORY_MONITOR, isMemoryMonitorVisible);

		hookTitleUpdateListeners(configurer);

		/*
		 * display the progress dialog for UI jobs, when pressing the hide button there is no other
		 * way to display the dialog again
		 */
		WorkbenchPlugin.getDefault().getPreferenceStore().setValue(IPreferenceConstants.RUN_IN_BACKGROUND, false);

		// must be initialized early to set photoServiceProvider in the Photo
		TourPhotoManager.restoreState();

		FormatManager.updateDisplayFormats();
	}
 
開發者ID:wolfgang-ch,項目名稱:mytourbook,代碼行數:40,代碼來源:ApplicationWorkbenchWindowAdvisor.java

示例10: preWindowOpen

import org.eclipse.ui.application.IWorkbenchWindowConfigurer; //導入方法依賴的package包/類
@Override
public void preWindowOpen() {
	//
	IWorkbenchWindowConfigurer configurer = this.getWindowConfigurer();

	configurer.setShowStatusLine(Boolean.TRUE);
	configurer.setShowCoolBar(Boolean.TRUE);
	configurer.setShowPerspectiveBar(Boolean.TRUE);
	configurer.setShowProgressIndicator(Boolean.FALSE);	// Bottom Right section in the status line 
	configurer.setShowFastViewBars(Boolean.TRUE);
	configurer.setShowMenuBar(Boolean.FALSE);
	
	configurer.setShellStyle(SWT.NONE);	// For removing resize top options
}
 
開發者ID:jaloncad,項目名稱:redmine.rap,代碼行數:15,代碼來源:ApplicationWorkbenchWindowAdvisor.java

示例11: preWindowOpen

import org.eclipse.ui.application.IWorkbenchWindowConfigurer; //導入方法依賴的package包/類
@Override
public void preWindowOpen()
{
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
    configurer.setInitialSize(new Point(1024, 768));
    configurer.setShowCoolBar(true);
    configurer.setShowPerspectiveBar(false);
    configurer.setShowStatusLine(false);
    configurer.setShowProgressIndicator(false);

    IPreferenceStore preferenceStore = MaruPlugin.getDefault().getPreferenceStore();
    setWindowTitle(preferenceStore.getString(PreferenceConstants.P_APP_WINDOW_TITLE));
}
 
開發者ID:vobject,項目名稱:maru,代碼行數:14,代碼來源:ApplicationWorkbenchWindowAdvisor.java

示例12: preWindowOpen

import org.eclipse.ui.application.IWorkbenchWindowConfigurer; //導入方法依賴的package包/類
public void preWindowOpen() {
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
    configurer.setInitialSize(new Point(400, 300));
    configurer.setShowCoolBar(true);
    configurer.setShowStatusLine(true);
    configurer.setShowPerspectiveBar(true);
    configurer.setTitle("VisualCenter"); //$NON-NLS-1$
    PlatformUI.getPreferenceStore().setValue(IWorkbenchPreferenceConstants.DOCK_PERSPECTIVE_BAR, IWorkbenchPreferenceConstants.TOP_RIGHT);
}
 
開發者ID:MToLinux,項目名稱:VisualCenter,代碼行數:10,代碼來源:ApplicationWorkbenchWindowAdvisor.java

示例13: preWindowOpen

import org.eclipse.ui.application.IWorkbenchWindowConfigurer; //導入方法依賴的package包/類
/**
 * (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);
}
 
開發者ID:heartsome,項目名稱:tmxeditor8,代碼行數:50,代碼來源:ApplicationWorkbenchWindowAdvisor.java


注:本文中的org.eclipse.ui.application.IWorkbenchWindowConfigurer.setShowPerspectiveBar方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。