i need to modify the default perspective to add a fixed view (for error logs) to the bottom of the GUI. This view is supposed to be shown throughout the application.
I don't know how to do that. In RCP i create a perspectiveExtension to define the view's position and dimension. If i do it likewise in Riena, nothing is displayed and no error is thrown.
The setup of the perspective in Riena is pretty much fixed. So we use Perspective to switch subapplications and taken
the perspectives in that sense away from the application programmer.
There are two things you can do.
1) If you like a view next to your app to show errors, there is an Example in the SWTExampleApplication called Detached
Views (under Playground -> Playground). That would be a seperate window next to your up (at any location) that can
either be only open for specific views or for all views.
2) Another option is to subclass SubModuleView which is the base class for all RCP views in Riena that you normally put
into the worarea (the part that is right from the navigation).
Create this hierarchy
- SubModuleView (Riena base class) extends ViewPart
- SubModuleViewErrorLog(your subclass that adds error logs) extends SubModuleView
- any RCP view (you create) extends SubModuleViewErrorLog
Now check for the method "createWorkarea". You need to overwrite that in SubModuleViewErrorLog. Your "any RCP view"
implements the method basicCreatePartControl to actually place the widgets on the view. In the method createWorkarea in
SubModuleViewErrorLog you call that method basicCreatePartControl and then embed that into a composite that also
contains the error log on the bottom.
Any other wishes would be an extension of what we do know. So they would require an bugzilla, maybe some screen sketches
and maybe we would ask you to supply a patch :-)
But its of course also the strategy of Riena to NOT have many many RCP views open at the same time. But I can see a
reason to have one for an error log.
maybe that works for you. let me know how it goes...
christian
Am 18.05.10 12:03, schrieb Matthias:
> Hi,
>
> i need to modify the default perspective to add a fixed view (for error
> logs) to the bottom of the GUI. This view is supposed to be shown
> throughout the application. I don't know how to do that. In RCP i create
> a perspectiveExtension to define the view's position and dimension. If i
> do it likewise in Riena, nothing is displayed and no error is thrown.
>
> matthias