org.eclipse.ui.intro.IIntroSite Java Examples
The following examples show how to use
org.eclipse.ui.intro.IIntroSite.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: KickStartNewProjectAction.java From solidity-ide with Eclipse Public License 1.0 | 6 votes |
@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(); } }
Example #2
Source File: OpenWSDLEditorAction.java From tesb-studio-se with Apache License 2.0 | 6 votes |
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(); } }
Example #3
Source File: OpenURLWithExternalBrowserAction.java From solidity-ide with Eclipse Public License 1.0 | 5 votes |
@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(); } }
Example #4
Source File: CreateCamelProcess.java From tesb-studio-se with Apache License 2.0 | 5 votes |
@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(); } }
Example #5
Source File: EditCamelBean.java From tesb-studio-se with Apache License 2.0 | 5 votes |
@Override public void run(IIntroSite site, Properties params) { // this.params = params; PlatformUI.getWorkbench().getIntroManager().closeIntro(PlatformUI.getWorkbench().getIntroManager().getIntro()); doRun(); }
Example #6
Source File: CreateESBAction.java From tesb-studio-se with Apache License 2.0 | 5 votes |
@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(); } }
Example #7
Source File: ExecuteCommandAction.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
@Override public void run(IIntroSite introSite, Properties param) { Map<String, Object> parameters = asMap(param); if(commandExecutor.canExecute(param.getProperty("id"), parameters)) { commandExecutor.executeCommand(param.getProperty("id"), parameters); } }
Example #8
Source File: OpenExampleIntroAction.java From statecharts with Eclipse Public License 1.0 | 4 votes |
@Override public void run(IIntroSite site, Properties params) { openWizard(TRAFFICLIGHT_EXAMPLE_WIZARD); }
Example #9
Source File: CreateCamelBean.java From tesb-studio-se with Apache License 2.0 | 4 votes |
public void run(IIntroSite site, Properties params) { PlatformUI.getWorkbench().getIntroManager().closeIntro(PlatformUI.getWorkbench().getIntroManager().getIntro()); selectRootObject(params); doRun(); }
Example #10
Source File: OpenInExternalBrowserIntroAction.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
@Override public void run(final IIntroSite site, final Properties params) { final String urlToOpen = retrieveURLToOpen(params); openInExternalBrowser(urlToOpen); }