Refreshing a Node's Actions

View: New views
1 Messages — Rating Filter:   Alert me  

Refreshing a Node's Actions

by northm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have run into a situation where the actions I wish to be availble on a node are dependent on other things going on in my code.

Node.getActions(bool) will provide the correct Action[] for what I want, but I can't seem to get the Node to update its self by calling the method again.

I'm guessing it's a firePropertyChange, but which property? NodeListener seems to only deal with the addition and removal of children, and object deletion.

The node is in the same explorer-style view, regardless of the state of my program, so using the context boolean argument of Node.getActions doesn't seem to be relevant.

Any help or ideas would be appreciated!