当前位置: 首页>>代码示例>>Java>>正文


Java IWorkbenchWindowConfigurer类代码示例

本文整理汇总了Java中org.eclipse.ui.application.IWorkbenchWindowConfigurer的典型用法代码示例。如果您正苦于以下问题:Java IWorkbenchWindowConfigurer类的具体用法?Java IWorkbenchWindowConfigurer怎么用?Java IWorkbenchWindowConfigurer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


IWorkbenchWindowConfigurer类属于org.eclipse.ui.application包,在下文中一共展示了IWorkbenchWindowConfigurer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: postWindowCreate

import org.eclipse.ui.application.IWorkbenchWindowConfigurer; //导入依赖的package包/类
public void postWindowCreate() {
	super.postWindowCreate();
	boolean isrcp = false;
	if (Platform.getProduct() != null) {
		if (Activator.PRODUCT_ID.equals(Platform.getProduct().getId())
				&& Activator.APPLICATION_ID.equals(Platform.getProduct()
						.getApplication())) {
			isrcp = true;
		}
	} else {
		if (Activator.APPLICATION_ID.equals(System
				.getProperty("eclipse.application"))) {
			isrcp = true;
		}
	}

	if (isrcp) {
		IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
		configurer.getWindow().getShell().setMaximized(true);
		startBackgroundJob();
	}
}
 
开发者ID:scouter-project,项目名称:scouter,代码行数:23,代码来源:ApplicationWorkbenchWindowAdvisor.java

示例2: 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

示例3: 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

示例4: postWindowCreate

import org.eclipse.ui.application.IWorkbenchWindowConfigurer; //导入依赖的package包/类
@Override
	public void postWindowCreate() {

//		System.out.println("postWindowCreate()\t");
//		// TODO remove SYSTEM.OUT.PRINTLN

		// show editor area
//		IWorkbenchPage activePage = getWindowConfigurer().getWindow().getActivePage();
//		activePage.setEditorAreaVisible(true);

		final IWorkbenchWindowConfigurer configurer = getWindowConfigurer();

		configurer.setTitle(_appTitle);

		/**
		 * THIS IS VERY CRITICAL TO BE SET BEFORE THE ASYNC RUNNABLE STARTS, OTHERWISE THE VIEWS
		 * DISPLAY THE WRONG DATA. E.G. COLLATED TOURS SHOWS ALL TOURS AND NOT FOR THE SELECTED
		 * TOURTYPE.
		 */
		TourTypeManager.restoreState();
		TourTypeFilterManager.restoreState();
		TourFilterManager.restoreState();
	}
 
开发者ID:wolfgang-ch,项目名称:mytourbook,代码行数:24,代码来源:ApplicationWorkbenchWindowAdvisor.java

示例5: 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

示例6: preWindowOpen

import org.eclipse.ui.application.IWorkbenchWindowConfigurer; //导入依赖的package包/类
public void preWindowOpen( )
{
	IWorkbenchWindowConfigurer configurer = getWindowConfigurer( );
	configurer.setShowCoolBar( true );
	configurer.setShowStatusLine( true );

	String title = null;
	IProduct product = Platform.getProduct( );
	if ( product != null )
	{
		title = product.getName( );
	}

	if ( title == null )
	{
		title = DesignerWorkbenchMessages.Workbench_title;
	}
	configurer.setTitle( title );
}
 
开发者ID:eclipse,项目名称:birt,代码行数:20,代码来源:DesignerWorkbenchWindowAdvisor.java

示例7: 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

示例8: 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

示例9: preWindowOpen

import org.eclipse.ui.application.IWorkbenchWindowConfigurer; //导入依赖的package包/类
@Override
public void preWindowOpen() {
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
    configurer.setShowCoolBar(true);
    configurer.setShowStatusLine(true);
    configurer.setShowProgressIndicator(true);
    configurer.setTitle(Application.getGlobalInfo().getApplicationTitle());
}
 
开发者ID:EnFlexIT,项目名称:AgentWorkbench,代码行数:9,代码来源:ApplicationWorkbenchWindowAdvisor.java

示例10: preWindowOpen

import org.eclipse.ui.application.IWorkbenchWindowConfigurer; //导入依赖的package包/类
@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 );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:12,代码来源:ApplicationWorkbenchWindowAdvisor.java

示例11: 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

示例12: preWindowOpen

import org.eclipse.ui.application.IWorkbenchWindowConfigurer; //导入依赖的package包/类
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$$
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:10,代码来源:ApplicationWorkbenchWindowAdvisor.java

示例13: createWorkbenchWindowAdvisor

import org.eclipse.ui.application.IWorkbenchWindowConfigurer; //导入依赖的package包/类
public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
	IDE.registerAdapters();
	 PlatformUI.getPreferenceStore().setValue(IWorkbenchPreferenceConstants.ENABLE_DETACHED_VIEWS, false);
	 configurer.setShowProgressIndicator(true);
	 configurer.setShowFastViewBars(true);
	 configurer.setShowStatusLine(true);
	 configurer.getWindow().getPartService().addPartListener(new TitleBarPartListener());
    return new ApplicationWorkbenchWindowAdvisor(configurer);
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:10,代码来源:ApplicationWorkbenchAdvisor.java

示例14: preWindowOpen

import org.eclipse.ui.application.IWorkbenchWindowConfigurer; //导入依赖的package包/类
public void preWindowOpen() {
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
    ELTPerspectiveConfig eltPerspectiveConfig = new ELTPerspectiveConfig(configurer);
    
    eltPerspectiveConfig.setDefaultELTPrespectiveConfigurations();
    //PlatformUI.getWorkbench().getThemeManager().setCurrentTheme(CURRENT_THEME_ID);
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:8,代码来源:ApplicationWorkbenchWindowAdvisor.java

示例15: 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


注:本文中的org.eclipse.ui.application.IWorkbenchWindowConfigurer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。