FAQ Database Discussion Community


importing files as link to eclipse project using java

java,file,eclipse-plugin,swt,rcp
okay guys this is a problem I've currently used hours and hours of research and haven't found a solution yet. my eclipse plugin needs files imported as link to the current project. the current approach is to drag and drop the file from explorer and use the following settings: I...

How to align image to center of table cell (SWT Table) RAP Platform

java,eclipse,swt,rcp,eclipse-rap
I found some solutions for this question, but they are for RCP Platform only. I'm using RAP Platform and I can't find a solution.

Adding java project to RCP project's build path

java,eclipse,rcp
In Eclipse I have created RCP Plugin project. I also created simple java project. I've added simple java project to build path of RCP project. So I am able to import and compile code in RCP, but when I start the RCP application, upon reaching code that uses the added...

Save doesn't get enabled on SWT EditorPart when cell is modified in TableViewer

java,swt,jface,rcp,tableviewer
I'm using a TableViewer in my class which extends EdiotrPart, TableViewer has one editable column which has ComboBoxCellEditor. When I modify the column to select a value from ComboBoxCellEditor, the save button doesn't get enabled until a tab key is pressed, or when the focus is moved to a different...

Delete specific rows from an Access table using Jackcess

java,database,rcp,jackcess
I am using the Jackcess API with an Access database. I open the database and get a specific table. How can I get the data (rows) from this table which matches a list of ids? For example get all the rows from the table where id is in List. private...

How to build two different versions of an e4 RCP application with Maven/Tycho?

maven,rcp,tycho,e4
I have got an e4 RCP application A. I extend this application with a plugin B which adds GUI functionality via fragments. My project structure looks like this: Application A Plugin B Target-Platform project deployment project (with the .product file) So far so good. Now, I would like to deploy...

Eclipse RCP4: Display HandledToolItem with both image and label

eclipse,toolbar,rcp,e4
I'm working on an Eclipse RCP 4 application and trying to add a HandledToolItem that displays both a label and an image to its left. Problem is whenever i add the image it only displays the image and hides the label. Is there any other way of getting this implemented...

Cyclic Dependencies detected while creating exe from rcp plugin

java,eclipse-plugin,eclipse-rcp,rcp
I have a bunch of eclipse plugins projects. Everything works fine when I run them from eclipse but when I try to create exe from the plugins I get the following error A cycle was detected when generating the classpath Plugin A, Plugin B, Plugin C, Plugin D, Plugin B...

Treeview inside getChildern()

java,treeview,rcp,emf
Is it possible to create a treeview inside the getChildern() method of the content provider? I have a treeview whose getElements() method show some nodes coming from an enum for each node in this tree I want to have another tree view. So when the user expand one root node...

Eclipse RCP - Perspective Layout

eclipse,rcp,perspective
I'm currently developing an Eclipse RCP application. I want to create a perspective where I have 3 views (project explorer, editors area, and a custom view), each in a different column. Below them I want to have the console view. I don't know how to put the console view at...

RCP TT cannot record for my application

java,eclipse-plugin,eclipse-rcp,rcp
I am trying to use the record feature in RCP TT but it keeps failing to start with this error: org.eclipse.core.runtime.CoreException: Java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.rcptt.tesla.internal.ui.SWTUIPlayer The application i am running is a RCP app and RCPTT can run it fine but when i try to use the record...

Eclipse RCP e4 using cached version of Application.e4xmi file

eclipse,rcp,e4,xmi
So I'm writing e4 RCP application for my studies. My problem is that, as I change the Application.e4xmi file - I basically add / remove some part (View) - the changes are not reflected in the application later run ! It's totally as eclipse (IDE) or eclipse RCP app would...

Eclipse plugin migration Kepler to Luna

java,eclipse,rcp
I'm in a migration of a eclipse plugin from Kepler version to Luna. I have have this error : Discouraged access: The type 'ProxyManager' is not API (restriction on required library '/srv/data204139/dchesnea/LUNA/eclipse/plugins/org.eclipse.core.net_1.2.200.v20140124-2013.jar') Have you an idea ?...

RCP view does not load once closed even when application is rerun

eclipse,rcp
I am new to eclipse RCP if i close the view while application is running, the view does not load next time when I run the application. Its somewhat like the application is saving its last state and does not go back to initial state. How do I make the...

Eclipse RCP and Jython

eclipse,pydev,jython,rcp
I'm writing an eclipse RCP application and want to integrate Jython with it. I'm already able to launch the pydev python console using the Console view and choosing PyDev -> Python console. But when trying to launch Jython I get a series of exceptions: Jython does work in my Eclipse...

Eclipse RCP: Unresolved Requirement

eclipse,dependencies,rcp
I have two local plugin projects in eclipse, both maven projects. AvgPowerTool AvgPowerCommon AvgPowerTool is dependent on AvgPowerCommon (It uses classes from AvgPowerCommon). When I run the application and try to instantiate a class from AvgPowerCommon the application exits with an exception: java.lang.RuntimeException: No application id has been found. Above...

jubula / rcp testing tool: how to inject parameter

java,rcp,gui-testing,jubula
I want to test my rcp application with gui tests. I've found two possible tools: jubula and rcp testing tool. Does anybody know, how to inject parameters into the tests, so that I can use one test case with multiple inputs?

Eclipse RCP - How to shutdown before workbench initializes

java,rcp,e4
I have a similar setup to below: <extension id="product" point="org.eclipse.core.runtime.products"> <product name="%product.name" application="org.eclipse.e4.ui.workbench.swt.E4Application"> <property name="lifeCycleURI" value="bundleclass://plugin-id/package.LifeCycle"> </property> .... more properties ... public class LifeCycle { @PostConstruct public void doWork() { // Show a login screen. If the user cancels out of it, shut down // the application. } } In...

Opening multiple windows in e4 locks previous windows

java,swt,rcp,e4
I am building an application with E4 and SWT . For a button click, sometimes a new window(shell) is opened. The problem is when I open a new window, I am unable to use the other windows, in a sense, it's getting locked. Unless I close the latest window, cannot...

Export an Eclipse RCP product

eclipse,eclipse-rcp,rcp
When I try to export my own RCP product I receive this error: In plugin com.nex.editor, the value for property source.lib/commons-beanutils.jar is not set. Any help or idea how to resolve this problem?...

when is the filter(Viewer,TreePath,Object[]) method called?

eclipse,rcp,treeviewer,treepath
I have created and added a new filter to my TreeViewer object. It works fine but I cannot seem to understand when is the filter(Viewer,TreePath,Object[]) called. So the filter is actually an instance of a class which extends ViewerFilter and needs to implement the abstract method select. In my case,...

Eclipse rcp extension cannot be found in registry

java,eclipse,rcp
I am developing an Eclipse e4 RCP application. As an example, there are two plugins A and B. A is set up as the application plugin in product definition. It defines an extension point EP that needs contribution from plugin B. The start page, defined in A, of the application...

org.eclipse.ui.part.MultiPageEditorSite cannot be cast to org.eclipse.ui.internal.PartSite

eclipse-rcp,rcp
I am porting eclipse 3 RCP on Eclipse 4. I am getting runtime exception java.lang.ClassCastException Here is the code snippet public FamilyEditorSite(MultiPageEditorPart multiPageEditor, IEditorPart editor) { Assert.isNotNull (multiPageEditor); Assert.isNotNull (editor); this.multiPageEditor = multiPageEditor; this.editor = editor; // Point for runtime exception PartSite site = (PartSite) this.multiPageEditor.getSite(); //IWorkbenchPartSite site = multiPageEditor.getSite...

RCP - Application does not have an active window

java,rcp,e4
What is the best way of getting non-stale EPartService/EModelService/MApplication references inside of a custom service? I know it can be done inside a Handler via the @Execute method, but I don't see a way of doing it in a custom service class. Any help would be appreciated. @Singleton @Creatable public...

Add a progress bar to a Job in RCP

java,eclipse-plugin,eclipse-rcp,rcp,jobs
I have a time consuming job in my RCp application in which I read out a big database and save it in a file. I am running this job in a separate thread so that the UI of my app is not blocked but I dont know how to add...

How to position a Handled Tool Item to the right

java,eclipse-rcp,rcp,e4
I've an application built on eclipse e4 framework. I want to position a Handled Tool Item to the far right end. How can I achieve it? ...

Migrating to E4 - equivalent of PlatformUI.isWorkbenchRunning

eclipse,eclipse-rcp,rcp,e4
In our Eclipse RCP 3.7 application we have quite a few calls to PlatformUI.isWorkbenchRunning(). For example most of the calls are guards around Workbench API calls, along the lines of ` if (PlatformUI.isWorkbenchRunning()) { display = PlatformUI.getWorkbench().getDisplay(); } else { display = Display.getDefault(); } We're migrating now to Eclipse RCP...