Re: Conditionnally enable action, advanced condition

Casqueiro Gilles <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <46731A37FFC5D047B3FAAD3558D349B7587E82ED@BMI-2K8-MS03.emea.bracco.priv>
Thanks Tim, I will have a look at it.

Gilles

From: Tim Boudreau [mailto:[email protected]]
Sent: mardi 22 décembre 2015 02:43
To: [email protected]
Subject: [platform-dev] Re: Conditionnally enable action, advanced condition

The never-became-official-api module spi.actions (used in Javacard) supports combining enablement conditions - that could be useful.

Or implement ContextAwareAction directly (it's a little tricky, since you create a separate Action instinct that preserves the context as it was when created, which is what actually gets invoked).

-Tim


On Mon, Dec 21, 2015 at 5:31 AM, Casqueiro Gilles <[email protected]<mailto:[email protected]>> wrote:
Hi everybody,

I would like to enable an action to combine 2 files opened in the editor. Thus I am looking for a conditionally enabled action that will be enabled only when 2 or more files of a given type are open.

How would you proceed?

Thanks

Gilles



-----------------------------------------------------------------------

Le informazioni contenute in questo messaggio di posta elettronica e relativi allegati sono riservate e confidenziali e ne è vietata la diffusione in qualunque modo eseguita. Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La invitiamo ad eliminarlo e a darcene gentile comunicazione.

The information contained in this e-mail and any attachments is confidential and may also be privileged. If you are not the named recipient please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.

-----------------------------------------------------------------------



--
http://timboudreau.com


-----------------------------------------------------------------------

Le informazioni contenute in questo messaggio di posta elettronica e relativi allegati sono riservate e confidenziali e ne è vietata la diffusione in qualunque modo eseguita. Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La invitiamo ad eliminarlo e a darcene gentile comunicazione.

The information contained in this e-mail and any attachments is confidential and may also be privileged. If you are not the named recipient please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.

-----------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.