Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » Custom marker views in a Riena application
icon5.gif  Custom marker views in a Riena application [message #547115] Thu, 15 July 2010 15:28 Go to next message
Christian Kesselheim is currently offline Christian KesselheimFriend
Messages: 59
Registered: June 2010
Member
Hello everybody,

does anyone know an easy way to embed a custom marker view (something similar to "org.eclipse.ui.views.ProblemView" in Eclipse itself) into an existing Riena RCP application. That view should display the list of validation messages for all Ridgets of the currently active controller/view (or perhaps even those of the parent module and all its submodules).

Following the approach outlined under http://blog.eclipse-tips.com/2008/11/creating-custom-marker- view.html, we've bumped into the problem that...


  • ...the existing marker view facilities of Eclipse seem to require the Eclipse resource abstraction (i.e. IResource) to be used.
  • ...we currently don't know how to display an existing Eclipse view part underneath the submodule view & within the main application shell driven by Riena (non-detached, that is).


Perhaps someone here has had similar requirements in the past? How did you address them in your Riena application?

Thanks & Regards,

Chris

[Updated on: Thu, 15 July 2010 20:34]

Report message to a moderator

Re: Custom marker views in a Riena application [message #549798 is a reply to message #547115] Wed, 28 July 2010 00:52 Go to previous messageGo to next message
Denis Roy is currently offline Denis RoyFriend
Messages: 484
Registered: October 2004
Location: Ottawa, Ontario, Canada
Senior Member

Hi,

It seems that your message did not get propagated to our NNTP newsgroups, so I'm re-quoting it here to make sure it reaches the audience.

Christian Kesselheim wrote on Thu, 15 July 2010 11:28
Hello everybody,

does anyone know an easy way to embed a custom marker view (something similar to "org.eclipse.ui.views.ProblemView" in Eclipse itself) into an existing Riena RCP application. That view should display the list of validation messages for all Ridgets of the currently active controller/view (or perhaps even those of the parent module and all its submodules).

Following the approach outlined under http://blog.eclipse-tips.com/2008/11/creating-custom-marker- view.html, we've bumped into the problem that...


  • ...the existing marker view facilities of Eclipse seem to require the Eclipse resource abstraction (i.e. IResource) to be used.
  • ...we currently don't know how to display an existing Eclipse view part underneath the submodule view & within the main application shell driven by Riena (non-detached, that is).


Perhaps someone here has had similar requirements in the past? How did you address them in your Riena application?

Thanks & Regards,

Chris






Denis Roy
Eclipse Webmaster -- webmaster@eclipse.org
Re: Custom marker views in a Riena application [message #550015 is a reply to message #549798] Wed, 28 July 2010 18:10 Go to previous messageGo to next message
Elias Volanakis is currently offline Elias VolanakisFriend
Messages: 43
Registered: July 2009
Member
Hi Christian,

sorry for the slow reply - your message got stuck somewhere and did not
show up in the newsgroup for a while.

Regarding markers: Riena's Markers and Eclipse Resource Markers are two
different things. So reusing the ProblemView would not help.

If you write your own code you may find the code in
AbstractMessageMarkerViewer and subclasses interesting. Riena has some
*MarkerViewers to display marker feedback in tooltips / statusline /
dialogs. See MessageMarkerSubModule{View,Controller} for usage examples.
Maybe another variant could display marker feedback in a Table, similar
to the way the ProblemView does it.

Regarding adding additional views to Riena within one sub application:
this is not something we support at the moment. Please add your input to
the bug below (or open a new one). If you want to experiment yourself,
you can try modifying TitlelessStackPresentation and/or
ApplicationViewAdvisor#createWindowContents(...).

Bug 270213: Investigate having an always visible composite / view inside
the sub application
http://bugs.eclipse.org/270213

Kind regards,
Elias.

On 7/27/2010 17:52, Denis Roy (Eclipse) wrote:
> Hi,
>
> It seems that your message did not get propagated to our NNTP
> newsgroups, so I'm re-quoting it here to make sure it reaches the audience.
> Christian Kesselheim wrote on Thu, 15 July 2010 11:28
>> Hello everybody,
>>
>> does anyone know an easy way to embed a custom marker view (something
>> similar to "org.eclipse.ui.views.ProblemView" in Eclipse itself) into
>> an existing Riena RCP application. That view should display the list
>> of validation messages for all Ridgets of the currently active
>> controller/view (or perhaps even those of the parent module and all
>> its submodules).
>>
>> Following the approach outlined under
>> http://blog.eclipse-tips.com/2008/11/creating-custom-marker-
>> view.html, we've bumped into the problem that...
>>
>>
>> ...the existing marker view facilities of Eclipse seem to require the
>> Eclipse resource abstraction (i.e. IResource) to be used.
>> ...we currently don't know how to display an existing Eclipse view
>> part underneath the submodule view & within the main application shell
>> driven by Riena (non-detached, that is).
>>
>>
>> Perhaps someone here has had similar requirements in the past? How did
>> you address them in your Riena application?
>>
>> Thanks & Regards,
>>
>> Chris
>
>
>
Re: Custom marker views in a Riena application [message #550705 is a reply to message #550015] Wed, 04 August 2010 07:57 Go to previous messageGo to next message
Christian Kesselheim is currently offline Christian KesselheimFriend
Messages: 59
Registered: June 2010
Member
Thanks for taking the time to reply.

The ability to show an additional (slave) view somewhere right next to certain main ones would certainly be nice additional to the current Riena UI model without (IMHO) compromising too much of its simplicity.

Out of curiosity, how would you go ahead to implement such a feature? Would you consider extending the current org.eclipse.riena.ui.workarea.IWorkareaDefinition with information on the actual "slave" view to be displayed or would you model that as a separate extension point / API altogether?

Of course, simply creating a common base-class from which all your existing view implementations can inherit and then making that base class maintain and display some sort of a permanent "marker" (composite) control for the actual view/controller in question might be a much simpler option to achieve almost the same thing. The main problem I'd have with that is that it's currently still rather hard to create both controller and controller tests for anything other than the main submodule view. Because of that, I suppose we couldn't use the same widget/ridget abstraction for developing this marker view component than for any other (submodule) view so far, right?

Anyway, thanks a lot for your reply.

Regards,

Chris

Re: Custom marker views in a Riena application [message #586690 is a reply to message #550015] Wed, 04 August 2010 07:57 Go to previous message
Christian Kesselheim is currently offline Christian KesselheimFriend
Messages: 59
Registered: June 2010
Member
Thanks for taking the time to reply.

The ability to show an additional (slave) view somewhere right next to certain main ones would certainly be nice additional to the current Riena UI model without (IMHO) compromising too much of its simplicity.

Out of curiosity, how would you go ahead to implement such a feature? Would you consider extending the current org.eclipse.riena.ui.workarea.IWorkareaDefinition with information on the actual "slave" view to be displayed or would you model that as a separate extension point / API altogether?

Of course, simply creating a common base-class from which all your existing view implementations can inherit and then making that base class maintain and display some sort of a permanent "marker" (composite) control for the actual view/controller in question might be a much simpler option to achieve almost the same thing. The main problem I'd have with that is that it's currently still rather hard to create both controller and controller tests for anything other than the main submodule view. Because of that, I suppose we couldn't use the same widget/ridget abstraction for developing this marker view component than for any other (submodule) view so far, right?

Anyway, thanks a lot for your reply.

Regards,

Chris
Previous Topic:Marker best practices
Next Topic:EclipseLink and a Riena server
Goto Forum:
  


Current Time: Sat Apr 20 01:51:22 GMT 2024

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

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

Back to the top