LeDieu
12-15-2008, 11:01 AM
Hello,
I am currently developing an eclipse rcp application.
I want to implement the model view controller pattern but because RCP handles his own views. But the only thing i have to know is:
How can i create a view in a RCP application with parameters in the constructor?
Or: can i get a ViewPart object from my workbench?
I have made a little progress.
You can get a view by using:
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findView(View.ID);
but this line gives me a nullpointer exception.
The nullpointer is (most likely) created by the method findView because my ViewReferences is null (or empty).
Greetz,
LeDieu
I am currently developing an eclipse rcp application.
I want to implement the model view controller pattern but because RCP handles his own views. But the only thing i have to know is:
How can i create a view in a RCP application with parameters in the constructor?
Or: can i get a ViewPart object from my workbench?
I have made a little progress.
You can get a view by using:
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findView(View.ID);
but this line gives me a nullpointer exception.
The nullpointer is (most likely) created by the method findView because my ViewReferences is null (or empty).
Greetz,
LeDieu