Blocking all plug-in actions if preference constant is not valid [message #640120] |
Fri, 19 November 2010 03:29  |
Eclipse User |
|
|
|
Hi everybody!
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:
if (!xmlFileIsValid){
//show alert "please set a valid xml file in the eclipse preferences"
return;
}
but I wonder if there is not a single entry point where I could perform this check..
Thank you very much!
Bye!
Federico
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07184 seconds