Saturday, July 28, 2007

How to get a navigator view in RCP

I am struggling with the Common Navigator Framework right now.
After finding a good tutorial on CNF I started hacking away.
The problem was that I needed a navigator view to actually do something with my fancy new CNF.
Creating the view is only half the deal and after some google research I finally found the part that was missing:

In your perspective add the Navigator View

IFolderLayout topLeft= layout.createFolder("topLeft",IPageLayout.LEFT,
0.25f,layout.getEditorArea());
topLeft.addView(IPageLayout.ID_RES_NAV);
And now for the part that I was missing.
In your WorkbenchAdvisor (normally called ApplicationWorkbenchAdvisor if you used the PlugIn wizard) overwrite the preStartup method and add the following line:

WorkbenchAdapterBuilder.registerAdapters();
Uh, I almost forgot about the dependencies:
org.eclipse.ui.navigator
org.eclipse.ui.navigator.resources
org.eclipse.ui.ide
org.eclipse.ui.navigator

Friday, July 27, 2007

First post

I finally did it.
My first blog.


Err, yep, enough applause.
This blog will basically cover my daily work as a software developer.
I want to provide, hopefully, useful information on java and eclipse RCP.
I realized, after fighting for the 10000000 time with some eclipse issues I had solved a year ago, that it would be great to keep track of these things and probably help some people who might stumble upon the same issues.
About myself:
I am a software developer currently working for Pramari, LLC.
We are developing java based open source software (for those who want to know: we are working on a RFID simulation environment called RiFiDi).
I am currently developing a 3d simulation that incorporates jMonkey and eclipse.
And another side note:
I am German, so English is not my native languag, I am a fluent speaker but when it comes to written language I might have some weaknesses. If you find misspellings or grammar problems feel free to send me a note.
Thanks
Codepitbull