Posts filed under 'RCP'

Getting rid of “Convert Line Delimiters to”

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 ApplicationActionBarAdvisor

JAVA:
  1.  
  2. ActionSetRegistry reg = WorkbenchPlugin.getDefault().getActionSetRegistry();
  3. IActionSetDescriptor[] actionSets = reg.getActionSets();
  4. // removing annoying gotoLastPosition Message.
  5. String actionSetId = "org.eclipse.ui.edit.text.actionSet.navigation"; //$NON-NLS-1$
  6. for (int i = 0; i <actionSets.length; i++)
  7. {
  8.     if (!actionSets[i].getId().equals(actionSetId))
  9.         continue;
  10.     IExtension ext = actionSets[i].getConfigurationElement()
  11.         .getDeclaringExtension();
  12.     reg.removeExtension(ext, new Object[] { actionSets[i] });
  13. }
  14. // Removing convert line delimiters menu.
  15. actionSetId = "org.eclipse.ui.edit.text.actionSet.convertLineDelimitersTo"; //$NON-NLS-1$
  16. for (int i = 0; i <actionSets.length; i++)
  17. {
  18.     if (!actionSets[i].getId().equals(actionSetId))
  19.         continue;
  20.     IExtension ext = actionSets[i].getConfigurationElement()
  21.         .getDeclaringExtension();
  22.     reg.removeExtension(ext, new Object[] { actionSets[i] });
  23. }
  24.  
  25.  

2 comments March 20th, 2006

JRE-Bundling with the Look & Feel of the current XP-Theme

It is always recommended to deliver a JRE with your Eclipse-Product, because it has tow major advantages.

  1. The client needn't to install java (probably he doesn't have the rights or the competence).
  2. 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

Add comment March 19th, 2006

Best-Practice: Developing a Model-Based Editor - Editor-Implementation

Developing a Model-Based Editor - TOC

  1. Intro
  2. Preparation
  3. Editor-Inputs
  4. Editor-Implementation

TBD

5 comments March 3rd, 2006

Best-Practice: Developing a Model-Based Editor - Editor-Inputs

Developing a Model-Based Editor - TOC

  1. Intro
  2. Preparation
  3. Editor-Inputs
  4. Editor-Implementation

TBD

4 comments March 3rd, 2006

Best-Practice: Developing a Model-Based Editor - Preparation

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. The assignment which object-signature is linked with a special editor is realized in the EditorContributor. This class knows the correct editor-id (specified in your plugin.xml) to a special Object.

Continue Reading 3 comments March 2nd, 2006

Best-Practice: Developing a Model-Based Editor - Intro

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...

Continue Reading 6 comments March 2nd, 2006

Where it all begins. The model.

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.

Add comment December 19th, 2005


Calendar

December 2008
M T W T F S S
« Jul    
1234567
891011121314
15161718192021
22232425262728
293031  

Posts by Month

Posts by Category