eclipse-rcp

How to make RCP application really standalone?

戏子无情 提交于 2019-12-11 09:16:14
问题 If I create Headless Hello RCP application I can run it under Eclipse debugger as any normal java application. It runs and prints "Hello world" into Eclipse console. Now how to make it really standalone, i.e. running without MY CURRENT Eclipse? Exporting to runnable JAR does not work with such a project. Exporting to Eclipse product also does not work for it. UPDATE If I create product file for the project, then exporting to product starts to work, but the application itself starting to crash

How to reset perspective programmatically in Eclipse RCP E4 not E3

寵の児 提交于 2019-12-11 09:03:22
问题 I just added 2 perspectives in my RCP App. I can switch from one to another without problems. But I didn't find a way to reset perspective, for example if I close a Part excidently I need to reset my perspective. PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().resetPerspective(); this didn't work because I use E4. -clearPersistedState -persistState false is not a solution cause I need to reset without restart my App. 回答1: Use the resetPerspective method of EModelService :

Building a searchbar into an Eclipse View Plugin

一个人想着一个人 提交于 2019-12-11 08:43:56
问题 I'm looking for some ideas/resources on how to approach building a search bar on top of an existing view eclipse plugin. I want something similar to what the Task List view in eclipse has: http://help.targetprocess.com/images/integration_api/eclipse3.png?1337868355 The view I want to build this on is just a simple list of objects, basically exactly like the simple view tutorials eclipse PDE provides. Nothing complicated. I've searched around and there doesn't seem to be much information on

Tycho | How to build multiple version of same plugin using tycho

半城伤御伤魂 提交于 2019-12-11 08:23:58
问题 I have a plugin which contains other plugins and feature projects. I am able to build plugin using tycho and I am getting deliverable in eclipsepluginupdateSite\target in zip format which is working fine for single version of eclipse. Now I am facing error how to configure tycho for to build multiple version of same plugin? In manual process I am following below steps: For example I want to create a plugin with version 4.8.800 along with(4.6.612,4.7.711) versions Delete

Stop Parts from being detachable

你说的曾经没有我的故事 提交于 2019-12-11 07:53:58
问题 I would like to stop Parts from being detachable in Eclipse RCP 4. Currently if I right click on a Part I can select detach. From this I can then close the tab even if the Part isn't Closeable . In RCP 3 when a detached View is closed it would then return back to its original location but now it closes completely. Structure Part Config How can I remove the option to detach a Part ? Also how can I stop a detached Part from being closed or make it return to its original location? 回答1: To stop

Workspace is closed error

大憨熊 提交于 2019-12-11 07:44:02
问题 I have created a EMF model and generated a model code for that. I have created one plugin project and i have created one class named as 'CommandTest' which is having "public static void main()" method which reads mymodel resource file. Its working fine in eclipse 3.5.2. There is no issues am able to read the contents. But same thing am running through command prompt, am getting error "Workspace is closed". I have included my plugin folder in my classpath. I have used one statement resource

Eclipse RCP: How to add my view to a context

。_饼干妹妹 提交于 2019-12-11 07:40:42
问题 My question: How do I add my View to an Eclipse Context. I have created a View for Eclipse and I would like to add the keybinding M1+F to it, since my view will have its own search-mechanism. In the Manifest I added the command and the keybinding with the help of: org.eclipse.ui.commands org.eclipse.ui.bindings However, I'm having trouble with the eclipse Context. I would like to bind this key only to my view so that it won't clash with Eclipse's default Search mechanism for the editor. To do

How to remove a previously added decorator on a resource?

旧时模样 提交于 2019-12-11 07:28:35
问题 Does anyone here knows how to remove a particular decorator on a resource? I extended org.eclipse.ui.decorators to my project and created a class that implements ILightweightLabelDecorator . In the decorator class I tested if the entry was a project and other test before calling decorator.addOverlay() . I did not implemented the other functions such as removeListener , isLabelProperty , dispose , addListener since I currently do not see the use. Any idea, resources, comment on how to proceed

Eclipse RCP: clonePerspective returns null

点点圈 提交于 2019-12-11 07:16:02
问题 I want to clone a perspective and save that cloned one. However, the call to the PerspectiveRegistry.clonePerspective(...) returns null, and I'm running out of ideas what could possibly be wrong with my parameter values. public void savePerspectiveAs(String label) { IWorkbenchPage page = PlatformUI.getWorkbench() .getActiveWorkbenchWindow().getActivePage(); IPerspectiveDescriptor perspectiveDescriptor = perspectiveRegistry .findPerspectiveWithLabel(label); // if the perspective doesn't exist,

Eclipse Plugin: Implement Quick Fix proposals on hovering over errors

徘徊边缘 提交于 2019-12-11 06:08:55
问题 What i have : I display errors in the editor as a red underline and als in the problems view. I use markers for that, but also create annotations by this code: @TextEditorScoped public class ErrorHighlighter { private final IAnnotationModel annotationModel; private String content = ""; private final Set<Annotation> annotations = Sets.newConcurrentHashSet(); private static final String ERRORMARKERID = "org.eclipse.rwth.syntaxerror"; private static final String WARNINGMARKERID = "org.eclipse