Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Can AbstractHandler.setEnabled cache information for execute()
Can AbstractHandler.setEnabled cache information for execute() [message #1836933] Tue, 19 January 2021 09:03 Go to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 390
Registered: December 2015
Senior Member
I have an AbstractHandler that should execute an EMF command, and the handler should be enabled when the command is enabled. The command itself is dependent on the workbench selection. If I override setEnabled() in the handler, and create the command to test it for executability, can I cache the created command so that I can reuse it during execute?
Re: Can AbstractHandler.setEnabled cache information for execute() [message #1837001 is a reply to message #1836933] Wed, 20 January 2021 20:05 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 463
Registered: July 2009
Senior Member

Please ask in the EMF forum
Re: Can AbstractHandler.setEnabled cache information for execute() [message #1837021 is a reply to message #1837001] Thu, 21 January 2021 07:26 Go to previous message
Felix Dorner is currently offline Felix DornerFriend
Messages: 390
Registered: December 2015
Senior Member
In my specific use case I have an EMF command, but the question is more towards if Handlers can share some state between setEnabled() and execute(), so I think platform is the right place to ask.

[Updated on: Thu, 21 January 2021 07:32]

Report message to a moderator

Previous Topic:SSL error when adding Remote Liberty server
Next Topic:PropertyManager2 iterates the tree for infinite depth for deleting/moving an IFile
Goto Forum:
  


Current Time: Fri Mar 05 14:35:35 GMT 2021

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

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

Back to the top