eclipse-rcp

Inserting rich text into a JFace TableViewer in Eclipse v3.3

The StyledCellLabelProvider is available in 3.5 onwards, but alas I am anchored to a platform that must use v3.3. Can anyone say how I might display rich text in a field of a JFace TableViewer? Is it even possible at all? M. ...

Eclipse RCP Export product wizard fails because of conflicting bundles?!

Hello. I am using Eclipse Galileo. I am learning Eclipse RCP and doing some examples from a book. Recently my Eclipse Galileo updated and some updated bundles arrived. I have the following problem which totally prevents me from exporting an Eclipse RCP product via the wizard. While exporting a product I get the following error: I don...

JFace examples in Eclipse like SWT Examples?

Hello. Are there any all-in-one JFace controls example out there like the SWT Examples in Eclipse? Searching (googling and searching here on stackoverflow.com) did not help me. It would be nice if it was a standalone app or an eclipse plugin. Thank you. ...

How can I report progress from a background task?

I have a long running task that is executing in the background on an ExecutorService thread pool. What are some best practices in terms of this task returning progress or intermediate results? Are there any libraries that provide this functionality? EDIT: To clarify, I'm talking about reporting progress to other code, not to the user....

How can I use java.lang.instrument in an Eclipse RCP application?

In order to use the instrumentation features introduced in JDK 5, you can use the -javaagent flag passed to the JVM. This will inject an instance of an Instrumentation class into the static premain method. For example in a class like this: public class MyClass { public static Instrumentation inst; public static void premain(Stri...

How can I add an editor without IEditorInput into a RCP application ?

Hi all, I'd like to add an editor to an RCP application. I need to leverage the advanced features of editor, such as keywords highlighting. But it seems that editor have to be associated with an IEditorInput, but I just do not need to persistence the text, store it in memory is OK for me. Is there any way to do that ? Thanks -- Best R...

TreeViewer: using Drag & Drop to reorder or reparent elements in a tree

I have a TreeViewer of custom content. I'd like to be able to reorder it, much in the same was as the Outline View does currently when viewing Java Source. Is there any reference material or documentation out there on how to achieve this? Martin. ...

Eclipse RCP classloading problem with Metro

Hello, I am attempting to invoke a web service using the Metro library (https://metro.dev.java.net/) from within an Eclipse RCP application. I bundled the relevant Metro jars (webservices-tools.jar, webservices-rt.jar, and webservices-api.jar) into a plugin and made my main application plugin depend on this new Metro plugin. I also add...

How to adapt domain objects to GUI in Java

Hi, I'm new to the architecture of UIs and in the past I've programmed very simple UIs. Now I'm confronted with a very large domain model. Because I've used different OR-Mappers to store domain objects in a flat data structure I thought about mapping the domain objects to the view-side in a similar way. Are there any patterns or framew...

(Eclipse RCP) How to redirect the output to Console View ?

I have two viewers, one has a Text for user's input and the other viewer is the Eclipse's built_in Console View. And I will run an java program according user's input, and want to display the log information in the ConsoleView. Does anybody know How can I redirect the output to Console View ? Thanks ...

Delaying SWT Table Refresh

We have a ViewerFilter for a TableViewer that is a little slow, so to try to give the impression of awesomeness, we wanted to have the viewer wait 500 milliseconds before refreshing the window (otherwise, it was blocking after every key stroke). Not having any clue what I was doing, I tried creating a class that would check if System.cu...

"Add Required Plug-ins" button in Eclipse RCP product configuration?

Hello. I don't quite understand what plug-ins constitue the list Dependencies when I make a product configuration in Eclipse RCP and what does the button "Add Required Plug-ins" exactly do? Why the Dependencies list is not full from the very beginning and why I have to use that button? Thank you. ...

How do I stop an Eclipse Editor from closing in an RCP

I am working on an Eclipse based RCP. We have a need to prevent one of the opened editors from being closed by the user. The desired behavior is: the user clicks the X in the editor window or "CTRL+W" a dialog pops up saying: "If you close this editor, your activity will stop. Do you want to?" if they click yes, it closes, if no, it ...

how to add my compiler to eclipse ?

i have a mini compiler written using flex and bison using c++ and i want to use it in eclipse as using java compiler , but i dont know any thing how to do that , so i want some help and some advices and if there is another method please point to it . thanks ...

Eclipse RCP with project dependency

I have developed an RCP plug-in (not standalone), and a Java Project with library code that the plug-in needs to call. I have configured the Java Project in the same workspace. The plug-in has a project dependency on the Java Project. The code compiles (the plug-in does some stuff with the Java Project / library code). When I run the ...

Adding SWT MenuItem(s) to Plug-In

I have developed a standalone SWT app. Now I am trying to migrate it to the RCP Plug-In framework. I need to hook up the SWT menus that I created in the standalone app to the RCP model. I have SWT MenuItem(s) that I would like to place in the RCP menu's. However these menus use JFace IWorkbenchAction, IAction etc. I would rather n...

RCP - Proper register Listener not from view

I try to register my class as PostSelectionListener from separate plugin (this class is not a view, only simple class), I use this: Workbench.getInstance().getActiveWorkbenchWindow().getSelectionService(). addPostSelectionListener(VIEWS_VISUALIZATION_TYP_ID, this); It works fine, but I have a warning: - Discouraged access: The ...

Is there a styleguide for developing SWT applications?

I'm not a proficient GUI developer, and I have no talent for design. Is there a comprehensive style guide for developing SWT applications? I'm especially interested in standards for developing layouts, what margins and spacing between controls to use, font sizes and stuff like that. ...

Launch an action in Eclipse RCP at startup

I have an RCP plug-in and I have configured the help system to run within this plug-in. I can access it from the Help menu. Now I want to launch the "Dynamic Help" action by default at startup. How do I do this? ...

Scripting Eclipse with Rhino: classloader belongs to the plugin providing Rhino, not the plugin using it

I am using Rhino to script an Eclipse (RCP) application. The problem is that from Javascript I only have access to classes available to the plugin that provides Rhino, and not to all the classes available to the plugin that runs the scripts. The obvious answer would be to put Rhino in the scripting plugin, but this doesn't work because ...