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 08:09 Go to next message
Ngwa Ambe elvis is currently offline Ngwa Ambe elvis
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 08:33 Go to previous messageGo to next message
Christian Campo is currently offline Christian Campo
Messages: 590
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 07:03 Go to previous message
Ngwa Ambe Elvis is currently offline Ngwa Ambe Elvis
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: Thu Jul 31 11:47:10 EDT 2014

Powered by FUDForum. Page generated in 0.01596 seconds