本文整理汇总了Java中org.eclipse.ui.intro.IIntroPart类的典型用法代码示例。如果您正苦于以下问题:Java IIntroPart类的具体用法?Java IIntroPart怎么用?Java IIntroPart使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IIntroPart类属于org.eclipse.ui.intro包,在下文中一共展示了IIntroPart类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: run
import org.eclipse.ui.intro.IIntroPart; //导入依赖的package包/类
@Override
public void run(IIntroSite site, Properties params) {
WorkspaceModifyOperation op = new WorkspaceModifyOperation() {
@Override
protected void execute(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
IProject project = createProject(monitor);
createExample(project);
}
};
try {
PlatformUI.getWorkbench().getProgressService().run(true, true, op);
final IIntroManager introManager = PlatformUI.getWorkbench().getIntroManager();
IIntroPart part = introManager.getIntro();
introManager.closeIntro(part);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
IDE.openEditor(page, ResourcesPlugin.getWorkspace().getRoot().getFile(new Path("hello-world/greeter.sol")));
} catch (Exception e) {
e.printStackTrace();
}
}
开发者ID:Yakindu,项目名称:solidity-ide,代码行数:21,代码来源:KickStartNewProjectAction.java
示例2: createInitialLayout
import org.eclipse.ui.intro.IIntroPart; //导入依赖的package包/类
@Override
public void createInitialLayout(IPageLayout layout) {
if (Platform.getOS().equals(Platform.OS_WIN32)){
final IIntroPart introPart = PlatformUI.getWorkbench().getIntroManager().getIntro();
PlatformUI.getWorkbench().getIntroManager().closeIntro(introPart);
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
IWorkbenchPage page = window.getActivePage();
try {
hideDashboards();
PlatformUI.getWorkbench().showPerspective(J2EE_PERSPECTIVE_ID, window);
page.openEditor(new NullEditorInput(), CLASSIC_DASHBOARD_ID);
} catch (Exception e) {
}
}
else{
String editorArea = layout.getEditorArea();
IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 1f, editorArea);
topLeft.addView(ANIMATED_DASHBOARD_ID);
}
}
开发者ID:wso2,项目名称:developer-studio,代码行数:21,代码来源:DeveloperStudioPerspective.java
示例3: closeWelcomePage
import org.eclipse.ui.intro.IIntroPart; //导入依赖的package包/类
/**
* Closes the welcome page if it is open.
*/
protected void closeWelcomePage() {
UiThreadDispatcher.dispatchAndWait(new Runnable() {
@Override
public void run() {
IIntroPart intro = PlatformUI.getWorkbench().getIntroManager().getIntro();
if (intro != null) {
PlatformUI.getWorkbench().getIntroManager().closeIntro(intro);
}
}
});
}
开发者ID:dsldevkit,项目名称:dsl-devkit,代码行数:15,代码来源:AbstractXtextTestUtil.java
示例4: closeWelcome
import org.eclipse.ui.intro.IIntroPart; //导入依赖的package包/类
@BeforeClass
public static void closeWelcome() {
final IIntroManager introManager = PlatformUI.getWorkbench()
.getIntroManager();
IIntroPart part = introManager.getIntro();
introManager.closeIntro(part);
}
开发者ID:eclipse,项目名称:xsemantics,代码行数:8,代码来源:LambdaIntegrationTest.java
注:本文中的org.eclipse.ui.intro.IIntroPart类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论