|Blocking all plug-in actions if preference constant is not valid [message #640120]
||Fri, 19 November 2010 03:29
| federico c
Registered: October 2010
I have written a plug-in which is 100% coupled with an XML file: if such file cannot be succesfully unmarshalled, none of the actions offered by the plug-in should be executed. The path of file must be set in the eclipse preferences.
My problem is how to prevent plug-in actions to be executed if the unmarshalling is not succesfull. The plug-in offers a View (populated with data from the XML file) but also other extension points (such as popupMenus), so I couldn`t find a single entry point for this control.. Of course I could add everywhere something like:
//show alert "please set a valid xml file in the eclipse preferences"
but I wonder if there is not a single entry point where I could perform this check..
Thank you very much!
Powered by FUDForum
. Page generated in 0.02223 seconds