eclipse-rcp

Eclipse RCP: ClassNotFoundException or How to make other bundle load my class

蹲街弑〆低调 提交于 2019-12-01 01:21:17
Details: I'm trying to use Jalapeno framework to connect my RCP app with Cache' database. After connection established, I'm trying to get all data from table exactly like in Jalapeno manual: if (objManager==null) return; DBClass cortege = null; try { Iterator terms = objManager.openByQuery(DBClass.class, null, null); System.out.println("terms ok"); while (terms.hasNext()){ System.out.println("has next"); cortege = (DBClass)terms.next(); } this code compiling, running and trowing exception java.lang.RuntimeException: myPluginId.views.DBClass at com.intersys.objects.POJOIterator.next

Tycho fails to resolve reference from product to eclipse-feature from a different reactor build

ぐ巨炮叔叔 提交于 2019-12-01 01:18:36
I've got two reactor builds: The first one builds some bundles and an according feature. After a successful clean install the feature is in my local Maven repo. Tycho has also generated p2 meta information ... -p2artifacts.xml and ... -p2metadata.xml The second build contains a feature-based product which is referencing the feature built in the first reactor. When trying a clean install Tycho complains about an unresolved feature - the one of the other reactor build. Failed to execute goal org.eclipse.tycho:tycho-p2-repository-plugin:0.12.0:assemble-repository [...] ["Unable to satisfy

Eclipse RCP let two views communicate

半世苍凉 提交于 2019-12-01 00:59:47
I am currently building a RCP application based on Eclipse. In one of my plugins I am adding two views via code: layout.addView("dev.asd.tableviewer.tree", IPageLayout.LEFT, 0.25f, IPageLayout.ID_EDITOR_AREA); layout.addView("dev.asd.tableviewer.view", IPageLayout.RIGHT, 0.75f, IPageLayout.ID_EDITOR_AREA); The first view contains a treeviewer, the second one a tableviewer. Now I want to update the tableviewer's content according to the selection of the treeviewer. My question is, how can I reference the tableviewer from within the treeviewer? Or is there an other way to solve this problem? In

How to Refresh Eclipse View Plugin

被刻印的时光 ゝ 提交于 2019-12-01 00:36:16
I created a simple view based off of the eclipse plugin view tutorial. I added functionality that allows my plugin to listen to changes on the debugger. My problem is, every time something on the debugger happens, I want my view to be refreshed and be updated with new information. Here is what I have/what I'm trying: public void createPartControl(Composite parent) { listener = new DebugContextListener(this); DebugUITools.getDebugContextManager().addDebugContextListener(listener); // Check if there is an already started debug context IAdaptable dc = DebugUITools.getDebugContext(); if (dc !=

How to restrict Eclipse-RCP application to a single instance?

一笑奈何 提交于 2019-11-30 23:16:59
I would like to restrict my Eclipse-RCP application to a single instance. By this, I mean that once a user opens the application for the first time, it listens on a port and for the second access it should open the previous instance instead of showing a warning message like "already an instance is running" My RCP Application code: ApplicationInstanceListener.java interface code public interface ApplicationInstanceListener { public void newInstanceCreated(); } ApplicationInstanceManager.java code import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import

Eclipse Crash “java was started but returned exit code = -805306369”

夙愿已清 提交于 2019-11-30 23:07:10
I'm aware there is an identical post here but none of the proposed solutions have changed anything and they are quite old (problems to do with Java6) and seem to be referring to a bug to do with Eclipse. My problem is when I am developing in Eclipse for RCP and RAP Developers ; either making changes to java files or changing dependencies etc, Eclipse randomly hangs and then freezes. I have to force close eclipse and I get this message Things I have tried so far: Restarted eclipse and PC Added the -clean command to the very beginning of the eclipse.ini file Created a brand new work space and

How to make simplistic RCP application really standalone?

我与影子孤独终老i 提交于 2019-11-30 22:22:49
This is total refactoring of my old question on new level of knowledge. Questions summary My eclipse product is not working. Does it require any additional feature? Creating Simplistic RCP Application At this moment all wizard features were disabled and I press Finish button. As a result, Eclipse creates nearly empty project with MANIFEST.MF and build.properties files only. Now I am creating an application. Application is an extension to org.eclipse.core.runtime.applications extension point, which is implemented inside org.eclipse.core.runtime plug-in. So I add this plug-in as a dependency:

Eclipse: create preference page programmatically

天涯浪子 提交于 2019-11-30 22:12:44
I'm trying to create a preference page programmatically, I need to work with preference pages without define preferencePage extension point in plugin.xml I'm very close to solution, I'm able to load page and save the value the first time application loads, the core of my code is PreferenceManager pmngr= PlatformUI.getWorkbench().getPreferenceManager(); //this come from other plugins that implements my personal IPreferences PreferencePageRCP page =new PreferencePageRCP((IPreferences) element.createExecutableExtension("class")); PreferenceNodeRCP node= new PreferenceNodeRCP(page.getId(), page

Eclipse RCP: ClassNotFoundException or How to make other bundle load my class

删除回忆录丶 提交于 2019-11-30 21:37:32
问题 Details: I'm trying to use Jalapeno framework to connect my RCP app with Cache' database. After connection established, I'm trying to get all data from table exactly like in Jalapeno manual: if (objManager==null) return; DBClass cortege = null; try { Iterator terms = objManager.openByQuery(DBClass.class, null, null); System.out.println("terms ok"); while (terms.hasNext()){ System.out.println("has next"); cortege = (DBClass)terms.next(); } this code compiling, running and trowing exception

Plugin product VS Feature product

末鹿安然 提交于 2019-11-30 21:12:17
In the context of an RCP application I am wondering if I should base my product on plugins or on features. The main difference I can see for now is about the content of the exported application. Using plugins as product base result in an exported (with GUi or headless build, it's the same) with ALL the required plugins (computed I guess through plugins manifest). On the opposite, when using feature as bases the exported product only contain the listed features in the product file. Thus I have to add manually add all the required features in order to let my product work correctly. This also has