Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Veto an Eclipse 4 view becoming invisible?(Is it possible to veto that an Eclipse4 view becomes invisible in some context? )
Veto an Eclipse 4 view becoming invisible? [message #1741026] Mon, 22 August 2016 12:34 Go to next message
Matthias Paul Scholz is currently offline Matthias Paul ScholzFriend
Messages: 40
Registered: May 2012
Member
Hi all,

In our E4 RCP application we have a perspective that contains a view folder with a couple of E4 views (MParts). One of these views is a CRUD view, ie. a view that allows for editing and saving a particular entity instance.

Whenever this view becomes dirty, i.e. the edited entity has been changed but is not saved yet, (for some internal reason) we want to block a change to another view in the same view folder (which would make the CRUD view invisible). Is there a possibility in E4 to veto a view becoming invisible?

Of course we can register a part listener for the MPart in the EPartService, but that would only allow to receive a partHidden event, which is too late.
Re: Veto an Eclipse 4 view becoming invisible? [message #1741051 is a reply to message #1741026] Mon, 22 August 2016 13:06 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6566
Registered: July 2009
Senior Member
No - I made a proposal for vetoing sometime ago but e4 on swt never
implemented the feature - see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=398837

Tom

On 22.08.16 14:35, Matthias Paul Scholz wrote:
> Hi all,
>
> In our E4 RCP application we have a perspective that contains a view
> folder with a couple of E4 views (MParts). One of these views is a CRUD
> view, ie. a view that allows for editing and saving a particular entity
> instance.
>
> Whenever this view becomes dirty, i.e. the edited entity has been
> changed but is not saved yet, (for some internal reason) we want to
> block a change to another view in the same view folder (which would make
> the CRUD view invisible). Is there a possibility in E4 to veto a view
> becoming invisible?
>
> Of course we can register a part listener for the MPart in the
> EPartService, but that would only allow to receive a partHidden event,
> which is too late.
>
Previous Topic:Styling tabs of MParts
Next Topic:v4.6.0: Unable to 'register' a context menu more than once in a part (on 2 different widgets)
Goto Forum:
  


Current Time: Sat Sep 19 12:18:10 GMT 2020

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

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

Back to the top