[英]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. 当将Eclipse与Java一起使用时,如果我们尝试在未保存代码打开的情况下启动,则会显示“保存并启动”窗口。 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()
. 调用
DebugUITools.saveBeforeLaunch()
。 Depending on the preferences, this will then either show the dialog or automatically save the dirty files. 然后,根据首选项,将显示对话框或自动保存脏文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.