Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » Revoke Module/Submodule close action/event(Want to able to revoke the closing of a Module of submodule navigation node)
Revoke Module/Submodule close action/event [message #685856] Mon, 20 June 2011 12:09 Go to next message
Ngwa Ambe elvis is currently offline Ngwa Ambe elvisFriend
Messages: 2
Registered: July 2009
Junior Member

Which listener do I implement(method) to be able to revoke the closing of a Module / Submodule navigation node.

Reason want allow closing of navigation node only when my view(data) is not dirty.

Thanks in advance.

(Riena 3.0)
Re: Revoke Module/Submodule close action/event [message #685862 is a reply to message #685856] Mon, 20 June 2011 12:33 Go to previous messageGo to next message
Christian Campo is currently offline Christian CampoFriend
Messages: 597
Registered: July 2009
Senior Member
The Submodule Controller has a super method in NavigationNodeController with the signature:

public boolean allowsDispose(final INavigationNode<?> node, final INavigationContext context)

just overwrite it in your view controller and return "false" if you DONT want to allow to close the submodule view.

christian campo
Re: Revoke Module/Submodule close action/event [message #686003 is a reply to message #685862] Tue, 21 June 2011 11:03 Go to previous message
Ngwa Ambe Elvis is currently offline Ngwa Ambe ElvisFriend
Messages: 25
Registered: July 2009
Junior Member

Thanks
exactly what i needed(works great).
Previous Topic:Why exactly this UI concept of usability?
Next Topic:Missing Constraint javax.el
Goto Forum:
  


Current Time: Tue Mar 19 04:15:35 GMT 2024

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

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

Back to the top