Re: Conditionnally enable action, advanced condition
Tim Boudreau <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CA+qecRPyLcs9SaEQrtYSFxSonT5hUOjXPhKjg=OvE52tOdJrUw@mail.gmail.com> |
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]> 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