简体   繁体   中英

Eclipse Plugin - Save & Launch Dialog

I'm developing a plugin with a editor and launcher.

When using Eclipse with java, if we try to launch with a non-saved code open, a window "Save and Launch" is displayed. That window allow to save the open code and launch.

I would like to add a similar window in my plugin.

I already know how to verify if a open code is "dirty", but will it be possible use this same window or I will have to implement a new one?

If it is possible...how can I call this window?

Sorry for the bad english, I am Brazilian :)

Call DebugUITools.saveBeforeLaunch() . Depending on the preferences, this will then either show the dialog or automatically save the dirty files.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM