eclipse-rcp

“Eclipse-BundleShape: dir” header is not working and still the plugins are exported as JAR's

不羁岁月 提交于 2019-12-11 01:32:51
问题 I'm having Eclipse Indigo (3.7) and I have the BundleShape header being set in the MANIFEST.MF of my plugin. Eclipse-BundleShape: dir If I export the product it is still exporting the plugin as JAR and not as a directory. NOTE : My project is a Plugin based project. Anything I'm missing ?? Suggestions are welcomed..! 回答1: Is your product feature based? If so, you can set the "Unpack the plug-in archive after the installation" option in your feature. open your feature.xml file switch to the

The ECLIPSE RCP project could not be exported successfully

别等时光非礼了梦想. 提交于 2019-12-11 01:03:48
问题 I met an error when I exported the Eclipse Product using the export wizard on the overview tab of the .product file , the error message is as below . but it worked just fine when I ran it from inside of Eclipse as an Eclipse Application. can anybody provide some idea about this . C:\workSpace\0709\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\package.org.eclipse.pde.container.feature.win32.win32.x86_64.xml:90: The following error occurred while executing this

How to show a view programmably in a position defined in plugin.xml?

此生再无相见时 提交于 2019-12-10 23:48:49
问题 I want to show views (multiple) in my plugin source code using: showView(id, id2, IWorkbenchPage.VIEW_ACTIVATE) This view is first closed, shown after my proccess completed. I defined the view and its positon in plugin.xml as below: name="..." icon="..." category="..." class="..." allowMultiple="true" id="myid" extension point="org.eclipse.ui.perspectiveExtensions" perspectiveExtension targetID="org.eclipse.jdt.ui.JavaPerspective" view ratio="0.5" relative="org.eclipse.ui.views.ContentOutline

Eclipse RCP View doesn't show up on application's startup

两盒软妹~` 提交于 2019-12-10 19:58:04
问题 I'm facing this issue for about an hour now and I don't know what I'm doing wrong. Do you see the error in my plugin.xml code? <extension point="org.eclipse.ui.perspectiveExtensions"> <perspectiveExtension targetID="de.tps.client.workspace.perspective"> <view closeable="true" id="de.tps.client.inboxplusplus.views.inboxplusplusview" minimized="false" moveable="true" ratio="0.3" relationship="bottom" relative="de.tps.client.iteminfo.view" showTitle="false" standalone="false" visible="true"> <

Eclipse Add marker for linked resources

大兔子大兔子 提交于 2019-12-10 19:46:31
问题 I know that markers can be added only for IResource(s), could they be added for linked resources ? I've got the linked resource name from .project, using org.eclipse.core.internal.Project.internalGetDescription() and getLinks() . But it seems that something is missing, Eclipse is complaining about the fact that the resource does not exist. I'm creating the resource using Workspace.newResource([PATH]) , where the PATH is an IPath built correctly using the linked resource name from .project and

Override rename action in eclipse

≯℡__Kan透↙ 提交于 2019-12-10 17:19:18
问题 I am new to eclipse plugin development. I am in the need of overriding the rename dialog for the files in a specific custom project. Say I am having a file "sample.abcd" in the custom project that has its own perspectives, natures and builders. So whenever i try to rename this file, I am getting a rename dialog with the file extension. I want to override this dialog displaying only the file name just like a java project rename action does. Can you point me to any resource, how to do it ?

RAP: How to access Object in ViewPart

天大地大妈咪最大 提交于 2019-12-10 17:15:10
问题 how do I access to an Object of a View from somewhere else? (Following code is just to sketch what i want to do) public class View extends ViewPart { public static final String ID = "view"; private static List list; public View() { } @Override public void createPartControl(Composite parent) { list = new List(parent, SWT.BORDER); } @Override public void setFocus() { } public static void addToList(String string) { list.add(string); } } Now I want be able to use View.addToList("Message")

install plugin spy plugin into custom rcp application

时光总嘲笑我的痴心妄想 提交于 2019-12-10 16:44:18
问题 Plugin spy is included into Eclipse since 3.4. I wonder if there is somewhere separate plugin distribution, so it could be used to install into custom rcp application. In my case it is jubula if this information is necessary. 回答1: Using the Plug-in Registry view, you can see the spy is defined in org.eclipse.pde.runtime . Just include this in your application. The only mandatory dependencies are for org.eclipse.core.runtime , org.eclipse.ui , and org.eclipse.ui.forms - the rest are optional..

How to create large SWT image?

落爺英雄遲暮 提交于 2019-12-10 13:57:49
问题 In my eclipse-rcp application I need to create an image with dimensions 30000x10000 px or more. This image is NatTable representation. Using standard image creation approach, it fails with different problems: OutOfMemory, SWTError - IllegalArgument or my PC stops responding (btw, its windows 7, 64bit, 4 RAM - client have much slower laptops, but the picture is still needs to be created). Here is a code snippet: private Image getNattableImageRepresentation(final Display display) { final

Profile Eclipse RCP with VisualVM

*爱你&永不变心* 提交于 2019-12-10 13:32:03
问题 I am developing an application based on Eclipse RCP. I want to profile specific methods in my application: dropping an element and refreshing sections. I successfully connected VisualVM launch plugin to Eclipse. After my application ran I executed Profiler from VisualVM and dragged/refreshed some stuff in the application being profiled. At the end, I did not see corresponding methods in the call stack. I cannot find any methods which are responsible for my stuff and I can't do anything. Why