Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » Modify default perspective
Modify default perspective [message #534177] Tue, 18 May 2010 10:03 Go to next message
Matthias is currently offline MatthiasFriend
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 #534456 is a reply to message #534177] Wed, 19 May 2010 09:14 Go to previous messageGo to next message
Christian Campo is currently offline Christian CampoFriend
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
Re: Modify default perspective [message #534753 is a reply to message #534456] Thu, 20 May 2010 08:58 Go to previous messageGo to next message
Matthias is currently offline MatthiasFriend
Messages: 52
Registered: September 2009
Member
thanks Christian, i like the approach with the detached view. The user can decide whether to show or hide the extra information and everything is kept in a separate view.
There are two things that are annoying here:
- the detached view is always on top of the main window and
- doesn't stick at the main window (but only placed there once at initialization)
So what i actually need would be an "AttachedView" or "StickedView" Smile

At the moment i prefer your idea with the extended SubModuleView that places an extra composite for the log messages.

matthias
Re: Modify default perspective [message #534784 is a reply to message #534753] Thu, 20 May 2010 10:35 Go to previous message
Christian Campo is currently offline Christian CampoFriend
Messages: 590
Registered: July 2009
Senior Member
Am 20.05.10 10:58, schrieb Matthias:
> thanks Christian, i like the approach with the detached view. The user
> can decide whether to show or hide the extra information and everything
> is kept in a separate view. There are two things that are annoying here:
> - the detached view is always on top of the main window and
> - doesn't stick at the main window (but only placed there once at
> initialization)
> So what i actually need would be an "AttachedView" or "StickedView" :)
>
> At the moment i prefer your idea with the extended SubModuleView that
> places an extra composite for the log messages.
>
> matthias
Good so try the extra composite and let me know if you stumble accross problems. We used that concept multiple times and
so we are sure it works :-).
If you want the "StickedView" please enter a bug. It cant be that hard to do. You need to somehow watch as the Shell
moves and re-adjust the DetachedView.
- christian
Re: Modify default perspective [message #585580 is a reply to message #534456] Thu, 20 May 2010 08:58 Go to previous message
Matthias is currently offline MatthiasFriend
Messages: 52
Registered: September 2009
Member
thanks Christian, i like the approach with the detached view. The user can decide whether to show or hide the extra information and everything is kept in a separate view.
There are two things that are annoying here:
- the detached view is always on top of the main window and
- doesn't stick at the main window (but only placed there once at initialization)
So what i actually need would be an "AttachedView" or "StickedView" :)

At the moment i prefer your idea with the extended SubModuleView that places an extra composite for the log messages.

matthias
Re: Modify default perspective [message #585588 is a reply to message #534753] Thu, 20 May 2010 10:35 Go to previous message
Christian Campo is currently offline Christian CampoFriend
Messages: 590
Registered: July 2009
Senior Member
Am 20.05.10 10:58, schrieb Matthias:
> thanks Christian, i like the approach with the detached view. The user
> can decide whether to show or hide the extra information and everything
> is kept in a separate view. There are two things that are annoying here:
> - the detached view is always on top of the main window and
> - doesn't stick at the main window (but only placed there once at
> initialization)
> So what i actually need would be an "AttachedView" or "StickedView" :)
>
> At the moment i prefer your idea with the extended SubModuleView that
> places an extra composite for the log messages.
>
> matthias
Good so try the extra composite and let me know if you stumble accross problems. We used that concept multiple times and
so we are sure it works :-).
If you want the "StickedView" please enter a bug. It cant be that hard to do. You need to somehow watch as the Shell
moves and re-adjust the DetachedView.
- christian
Previous Topic:Using RemoteServices & EJB Container
Next Topic:Using RemoteServices & EJB Container?
Goto Forum:
  


Current Time: Thu Nov 27 20:08:44 GMT 2014

Powered by FUDForum. Page generated in 0.02044 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software