RCP-显示流线型标签页

//在Application.java中的start方法下修改
public Object start(IApplicationContext context) {
		Display display = PlatformUI.createDisplay();//显示和eclipse一样的标签页
		PlatformUI.getPreferenceStore().setDefault(IWorkbenchPreferenceConstants.ENABLE_ANIMATIONS, true); //不显示传统的窗口.不现实传统的标签样式
		PlatformUI.getPreferenceStore().setDefault(IWorkbenchPreferenceConstants.SHOW_TRADITIONAL_STYLE_TABS,false);
		try {
			int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor());
			if (returnCode == PlatformUI.RETURN_RESTART) {
				return IApplication.EXIT_RESTART;
			}
			return IApplication.EXIT_OK;
		} finally {
			display.dispose();
		}
	}

 

你可能感兴趣的:(java,eclipse)