Posts filed under 'RCP'
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:
-
-
ActionSetRegistry reg = WorkbenchPlugin.getDefault().getActionSetRegistry();
-
IActionSetDescriptor[] actionSets = reg.getActionSets();
-
// removing annoying gotoLastPosition Message.
-
String actionSetId =
"org.eclipse.ui.edit.text.actionSet.navigation";
//$NON-NLS-1$
-
for (int i = 0; i <actionSets.length; i++)
-
{
-
if (!actionSets[i].getId().equals(actionSetId))
-
continue;
-
IExtension ext = actionSets[i].getConfigurationElement()
-
.getDeclaringExtension();
-
reg.
removeExtension(ext,
new Object[] { actionSets
[i
] });
-
}
-
// Removing convert line delimiters menu.
-
actionSetId = "org.eclipse.ui.edit.text.actionSet.convertLineDelimitersTo"; //$NON-NLS-1$
-
for (int i = 0; i <actionSets.length; i++)
-
{
-
if (!actionSets[i].getId().equals(actionSetId))
-
continue;
-
IExtension ext = actionSets[i].getConfigurationElement()
-
.getDeclaringExtension();
-
reg.
removeExtension(ext,
new Object[] { actionSets
[i
] });
-
}
-
-
March 20th, 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
March 19th, 2006
Developing a Model-Based Editor - TOC
- Intro
- Preparation
- Editor-Inputs
- Editor-Implementation
TBD
March 3rd, 2006
Developing a Model-Based Editor - TOC
- Intro
- Preparation
- Editor-Inputs
- Editor-Implementation
TBD
March 3rd, 2006
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 March 2nd, 2006
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 March 2nd, 2006
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.
December 19th, 2005