• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java IIntroSite类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: run

import org.eclipse.ui.intro.IIntroSite; //导入依赖的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: run

import org.eclipse.ui.intro.IIntroSite; //导入依赖的package包/类
public void run(final IIntroSite site, Properties params) {
	String prj = (String) params.get("prj");
	String file = (String) params.get("file");

	IWorkspace ws = ResourcesPlugin.getWorkspace();
	IProject project = ws.getRoot().getProject(prj);

	final IFile f = project.getFile(file);
	Display.getDefault().asyncExec(new Runnable() {

		public void run() {
			try {
				IEditorPart ep = IDE.openEditor(site.getPage(), f, true);
				ep.setFocus();

			} catch (PartInitException e) {
				UIUtils.showError(e);
			}
		}
	});

}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:23,代码来源:OpenFileAction.java


示例3: run

import org.eclipse.ui.intro.IIntroSite; //导入依赖的package包/类
public void run(IIntroSite site, Properties params) {
    PlatformUI.getWorkbench().getIntroManager().closeIntro(PlatformUI.getWorkbench().getIntroManager().getIntro());

    IPerspectiveDescriptor currentPerspective = site.getPage().getPerspective();
    if (!PERSPECTIVE_ID.equals(currentPerspective.getId())) {
        // show required perspective
        IWorkbenchWindow workbenchWindow = site.getWorkbenchWindow();
        try {
            workbenchWindow.getWorkbench().showPerspective(PERSPECTIVE_ID, workbenchWindow);
        } catch (WorkbenchException e) {
            ExceptionHandler.process(e);
            return;
        }
    }

    // find repository node
    repositoryNode = (RepositoryNode) RepositorySeekerManager.getInstance().searchRepoViewNode(params.getProperty("nodeId"),
            false);
    if (null != repositoryNode) {
        // expand/select node item
        RepositoryManagerHelper.getRepositoryView().getViewer().setSelection(new StructuredSelection(repositoryNode));
        init(repositoryNode);
        doRun();
    }
}
 
开发者ID:Talend,项目名称:tesb-studio-se,代码行数:26,代码来源:OpenWSDLEditorAction.java


示例4: run

import org.eclipse.ui.intro.IIntroSite; //导入依赖的package包/类
@Override
public void run(IIntroSite arg0, Properties arg1) {
	IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
	IWorkbenchPage page = window.getActivePage();
	try {
		IPreferenceStore preferenceStore = WorkbenchToolkit.getPreferenceStore();
		if (preferenceStore.getString(AppearancePreperance.DASHBOARD_PREFERNCES)
				.equals(AppearancePreperance.SWT_VIEW)) {
			OpenDashboardAction.DASHBOARD_VIEW_ID="org.wso2.developerstudio.eclipse.dashboard";
		}
		hideIntroView();
		hideDashboards();
		PlatformUI.getWorkbench().showPerspective(J2EE_PERSPECTIVE_ID, window);
		
		page.openEditor(new NullEditorInput(), DASHBOARD_VIEW_ID);
	} catch (Exception e) {
		log.error("Cannot open dashboard", e);
	}
}
 
开发者ID:wso2,项目名称:developer-studio,代码行数:20,代码来源:OpenDashboardAction.java


示例5: run

import org.eclipse.ui.intro.IIntroSite; //导入依赖的package包/类
@Override
public void run(IIntroSite site, Properties params) {

	try {
		PlatformUI.getWorkbench().getBrowserSupport().getExternalBrowser()
				.openURL(new URL(params.getProperty("url")));
	} catch (PartInitException | MalformedURLException e) {
		e.printStackTrace();
	}
}
 
开发者ID:Yakindu,项目名称:solidity-ide,代码行数:11,代码来源:OpenURLWithExternalBrowserAction.java


示例6: run

import org.eclipse.ui.intro.IIntroSite; //导入依赖的package包/类
public void run(IIntroSite site, Properties params) {
	Runnable r = new Runnable() {
		public void run() {
			if (!executeUpdateCommand(COMMAND_P2))
				executeUpdateCommand(COMMAND_UPDATE_MANAGER);
		}
	};
	Shell currentShell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
	currentShell.getDisplay().asyncExec(r);
}
 
开发者ID:insweat,项目名称:hssd,代码行数:11,代码来源:LaunchUpdateIntroAction.java


示例7: run

import org.eclipse.ui.intro.IIntroSite; //导入依赖的package包/类
@Override
public void run(IIntroSite site, Properties params) {
    IProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();
    if (factory.isUserReadOnlyOnCurrentProject()) {
        MessageDialog.openWarning(null, "User Authority", "Can't create Route! Current user is read-only on this project!");
    } else {
        PlatformUI.getWorkbench().getIntroManager().closeIntro(PlatformUI.getWorkbench().getIntroManager().getIntro());
        selectRootObject(params);
        doRun();
    }
}
 
开发者ID:Talend,项目名称:tesb-studio-se,代码行数:12,代码来源:CreateCamelProcess.java


示例8: run

import org.eclipse.ui.intro.IIntroSite; //导入依赖的package包/类
@Override
public void run(IIntroSite site, Properties params) {
    // this.params = params;
    PlatformUI.getWorkbench().getIntroManager().closeIntro(PlatformUI.getWorkbench().getIntroManager().getIntro());
    doRun();

}
 
开发者ID:Talend,项目名称:tesb-studio-se,代码行数:8,代码来源:EditCamelBean.java


示例9: run

import org.eclipse.ui.intro.IIntroSite; //导入依赖的package包/类
@Override
public void run(IIntroSite site, Properties params) {
    IProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();
    if (factory.isUserReadOnlyOnCurrentProject()) {
        MessageDialog.openWarning(null, "User Authority", "Can't create Service! Current user is read-only on this project!");
    } else {
        PlatformUI.getWorkbench().getIntroManager().closeIntro(PlatformUI.getWorkbench().getIntroManager().getIntro());
        selectRootObject(params);
        doRun();
    }
}
 
开发者ID:Talend,项目名称:tesb-studio-se,代码行数:12,代码来源:CreateESBAction.java


示例10: run

import org.eclipse.ui.intro.IIntroSite; //导入依赖的package包/类
@Override
public void run(IIntroSite site, Properties params) {
	openWizard(TRAFFICLIGHT_EXAMPLE_WIZARD);
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:5,代码来源:OpenExampleIntroAction.java


示例11: run

import org.eclipse.ui.intro.IIntroSite; //导入依赖的package包/类
public void run(IIntroSite site, Properties params) {
	String file = (String) params.get("csid");
	new org.eclipse.ui.cheatsheets.OpenCheatSheetAction(file).run();

}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:6,代码来源:OpenCheatSheetAction.java


示例12: run

import org.eclipse.ui.intro.IIntroSite; //导入依赖的package包/类
public void run(IIntroSite site, Properties params) {
    PlatformUI.getWorkbench().getIntroManager().closeIntro(PlatformUI.getWorkbench().getIntroManager().getIntro());
    selectRootObject(params);
    doRun();
}
 
开发者ID:Talend,项目名称:tesb-studio-se,代码行数:6,代码来源:CreateCamelBean.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java BinaryExpression类代码示例发布时间:2022-05-22
下一篇:
Java IRecipeHandler类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap