~ubuntu-branches/ubuntu/wily/eclipse-linuxtools/wily

« back to all changes in this revision

Viewing changes to systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/IDECloseMonitor.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam, Jakub Adam, tony mancill
  • Date: 2014-10-11 11:44:05 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20141011114405-yazjvxfzzhmi5sgj
Tags: 3.1.0-1
[ Jakub Adam ]
* New upstream release (Closes: #761524).
* Refreshed d/patches.
* Don't build removed feature org.eclipse.linuxtools.tools.launch
  - merged into org.eclipse.linuxtools.profiling.
* Use javac target 1.7.
* Build new feature org.eclipse.linuxtools.dataviewers.feature
  - required by Valgrind integration.
* Build-depend on eclipse-remote-services-api and eclipse-cdt-autotools.
* Bump Standards-Version to 3.9.6.
* Override incompatible-java-bytecode-format - linuxtools needs Java 7.
* Remove unused codeless-jar override.

[ tony mancill ]
* Tweak short package description to make lintian happy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 * @author Ryan Morse
28
28
 */
29
29
public class IDECloseMonitor implements IWorkbenchListener {
30
 
        @Override
31
 
        public boolean preShutdown(IWorkbench workbench, boolean forced) {
32
 
                boolean close = true;
33
 
                if(!forced) {
34
 
                        IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
35
 
 
36
 
                        if(ScriptConsole.anyRunning()) {
37
 
                                String msg = MessageFormat.format(Localization.getString("IDECloseMonitor.StillRunning"),(Object[]) null); //$NON-NLS-1$
38
 
                                close = MessageDialog.openQuestion(window.getShell(), "Closing...", msg); //$NON-NLS-1$
39
 
                        }
40
 
                }
41
 
                return close;
42
 
        }
43
 
 
44
 
        @Override
45
 
        public void postShutdown(IWorkbench workbench) {}
 
30
    @Override
 
31
    public boolean preShutdown(IWorkbench workbench, boolean forced) {
 
32
        boolean close = true;
 
33
        if(!forced) {
 
34
            IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
 
35
 
 
36
            if(ScriptConsole.anyRunning()) {
 
37
                String msg = MessageFormat.format(Localization.getString("IDECloseMonitor.StillRunning"),(Object[]) null); //$NON-NLS-1$
 
38
                close = MessageDialog.openQuestion(window.getShell(), "Closing...", msg); //$NON-NLS-1$
 
39
            }
 
40
        }
 
41
        return close;
 
42
    }
 
43
 
 
44
    @Override
 
45
    public void postShutdown(IWorkbench workbench) {}
46
46
}