Editor Plugin API: Refresh Project Tree?

Started by densming, Sun 03/05/2009 04:09:57

Previous topic - Next topic

densming

Is there a way to refresh the Project Tree with the Editor API?  For example, if I change a dialog's name can I force the editor to refresh the tree (or at least the Dialogs component) after I made the change?  I've looked through the exposed methods for the various objects in the Editor Plugin API and I can't find one.

The closest thing I found was CreateNewView method which adds a new view and then refreshes the ProjectTree.  I thought about a workaround where I create a temporary view just for the sole purpose of refreshing, but this is a little clunky and besides, I didn't see a way to RE-refresh the list after I removed the temporary view!  :P


Pumaman

I don't think this is currently possible with the Plugin API, so I'll look into adding it to a future release.

densming

Thanks CJ! The API is great, by the way. I've just started playing with it. A pity there aren't more people using it but I guess that's a testament to the editor already being very extensive! I'd love to see this documented more; perhaps Ill add this as an "advanced" topic to my video tutorials.

SMF spam blocked by CleanTalk