20. March 2006
If you’re having dependencies to org.eclipse.ui.ide and you launch your RCP you’ll automatically get an entry in the menu-bar that is called “Convert Line Delimiters to” and also “Last Edit Location”, although you don’t need it. To remove this entries place the following lines in your (more…)
19. March 2006
It is always recommended to deliver a JRE with your Eclipse-Product, because it has tow major advantages.
- The client needn’t to install java (probably he doesn’t have the rights or the competence).
- You can be sure that all your clients use the same version and vendor of the vm.
But theres also a great advantage: Sun doesn’t provide by default a manifest-file for displaying the widgets in the current theme of your operating-system (see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6178745), but uses the default look&feel of Windows. To fix this you need to the javaw.exe.manifest, located in your org.eclipse.swt.win32.win32.x86_x.y.z.jar-Plugin Package.
To bundle your VM, just create a folder “jre” in your [Eclipse-Root]-Directory copy the vm, take the Manifest-file and copy it to [Eclipse-Root]/jre/bin
3. March 2006
Probably you was already faced with the requirement to add small icons to your pulldowns. That looks very nice, but unfortunately there is no common SWT-Widget to realize this.
Fortunately the Eclipse-Framework is OpenSource and we can reprodruce the structure of a SWT-ComboBox. A Combo is not more than a text-field and a small button with an arrow. In addition is a event-handler implemented that shows a Composite as a tooltip with the entries of the “combo-list”. We just have to take this class and change the structure of the content. We don’t want to have a org.eclipse.swt.widgets.List, but a org.eclipse.swt.widgets.Table with multiple org.eclipse.swt.widgets.TableItems where you can specify an image. After adjusting the access-methods we have a new cool Widget, that has the same structure and methods like the “built-in”s.
(more…)
Developing a Model-Based Editor - TOC
- Intro
- Preparation
- Editor-Inputs
- Editor-Implementation
The following describes the basics of creating editors.
Declaring the extension-point
In our example we want to provide an simple editor for the object org.javawiki.model.SubProcess and a MultiPageEditor with two pages for the object org.javawiki.model.Step. At first we define the extension points. (more…)
2. March 2006
Developing a Model-Based Editor - TOC
- Intro
- Preparation
- Editor-Inputs
- Editor-Implementation
A very important element of the Eclipse-Framework are editors. Editors are among views the fundamental element for user-interaction.
Eclipse provides a wonderful framework for creating editors with a reserved area (the “editor area”), where you don’t have to care for common behaviour. Just implement the contribution of the input and provide an implementation for saving the edited input.
What’s the goal of this article?
In the most articles and books is described how to implement an editor for editing a file with a special extension that exists physically in the workspace. But what if you want to use all the functionality the editor comes with, without writing or reading any files, but just pure Java-objects? I want to show you a way how to use in a very easy and clear way how to use simple EditorParts and MultiPageEditorParts with Forms. In addition I want to provide a strategy for managing your editors. At the end will be a eclipse-product, that has a simple view-part with a list (known from the Image-Contribution Product) . If you double-click on a list the object-specified editor will be opened and display the properties of the object, without all the workspace, file and project handling.
Requirements
- Every Object can be handled with an editor
- The Icon will be contributed by the ImageContributor
- The framework knows the objects that were already “opened” by an editor.
- A very easy way to provide new editors for new Java-Objects
- Saving with the given “Dirty-Flag”
Screenshot of the Application

Screenshot of the ready-to-use application
Let’s roll!!!
Download the required plugins as Eclipse-Projects (Source included)
Download the Editors-Best-Practice as RCP (Source included)
18. January 2006
Today I want to show how to add a sorter to your JFace-Table. The requirement is to sort descending und ascending by clicking on the TableColumn-Header.
JFace already provides sorting-functionality. We just have to provide something like an alogrithm to arrange the items. For that we implemented the CollectionSorter that uses the default Collator from ViewerSorter. (more…)
16. January 2006
In complex applications you also have very many images that want to be placed to the right time on the right place.

And because some good software-architects already have concepted the model
, in the most cases you want to visualize a special object or a special property of an object with an image in your JFace-List or Tree. Imagine you have 50 JFace-Viewers and 300 different Icons. Do you really want to implement in every LabelProvider how and when to access to which image? I guess, no.
At the following I will provide an easy way to manage image-contribution to your different label-providers. (more…)
19. December 2005
Before I can start implementing cool gimmicks with eclipse I need a datastructure. I’ve chosen a very similar tree-structure of a process. A process has different steps, subprocesses , lists of conditions. All these elements can be linked. It’s a very simple structure and all upcoming examples are based on this model-plugin.
Download the model-plugin with source-code.
Download the model-plugin without source-code.