Skip to main content



      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 04:03 Go to next message
Eclipse UserFriend
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 15:05 Go to previous messageGo to next message
Eclipse UserFriend
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 02:26 Go to previous message
Eclipse UserFriend
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 02:32] by 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: Sat Oct 25 17:09:32 EDT 2025

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

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

Back to the top