Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » Modify default perspective
Modify default perspective [message #585524] Tue, 18 May 2010 06:03 Go to next message
Matthias is currently offline Matthias
Messages: 52
Registered: September 2009
Member
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
Re: Modify default perspective [message #585538 is a reply to message #585524] Wed, 19 May 2010 05:14 Go to previous message
Christian Campo is currently offline Christian Campo
Messages: 590
Registered: July 2009
Senior Member
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
Previous Topic:TreeRidget Custom Icon
Next Topic:Using RemoteServices & EJB Container
Goto Forum:
  


Current Time: Fri Aug 29 12:17:23 EDT 2014

Powered by FUDForum. Page generated in 0.01685 seconds