See the
ret.setEnabled(uri != null);
line in may above suggestion. It should disable the action dynamically
(assuming that uri == null if none is found).
What you feel is a pity (not being able to declare constructors for
different context object) may be deliberate for performance reasons. The
acti
Boris Heithecker wrote:
> In your ContextAwareAction, you could use a delegate to your
> ActionListener. Something like:
>
> //Create an instance of your ActionListener, pass the URI
> MyActionListenerImpl al = new MyActionListenerImpl(uri);
> //Return a simple delegate
>
In your ContextAwareAction, you could use a delegate to your
ActionListener. Something like:
//Create an instance of your ActionListener, pass the URI
MyActionListenerImpl al = new MyActionListenerImpl(uri);
//Return a simple delegate
AbstractAction ret = new Abstrac
Hi Boris.
Andreas Sewe wrote:
> Boris Heithecker wrote:
>> I think you'll have to implement an action (extending Action or
>> AbstractAction, not ActionListener) that implements
>> "org.openide.util.ContextAwareAction".
>> Its business method is expected to create a proxy action for the context
>
Hi all,
According to our poll...
https://doodle.com/poll/xueimbynzam7sri7
...we have a Apache NetBeans Virtual Meetup coming up tomorrow, i.e.,
Tuesday 12:00 CEST.
That time is quite difficult for our US friends -- and also the main topic
to be discussed right now is the transition of netbeans.