@Override public void launchesRemoved(ILaunch[] launches) { ArchiveSourceLocation.closeArchives(); }
@Override public void resourceChanged(IResourceChangeEvent event) { ArchiveSourceLocation.closeArchives(); }
@Override public void launchesRemoved(ILaunch[] launches) { ArchiveSourceLocation.closeArchives(); }
@Override public void resourceChanged(IResourceChangeEvent event) { ArchiveSourceLocation.closeArchives(); }
@Override public void handleDebugEvents(DebugEvent[] events) { for (int i = 0; i < events.length; i++) { DebugEvent event = events[i]; if (event.getKind() == DebugEvent.TERMINATE) { Object source = event.getSource(); if (source instanceof IDebugTarget || source instanceof IProcess) { ArchiveSourceLocation.closeArchives(); } } } }
@Override public void handleDebugEvents(DebugEvent[] events) { for (int i = 0; i < events.length; i++) { DebugEvent event = events[i]; if (event.getKind() == DebugEvent.TERMINATE) { Object source = event.getSource(); if (source instanceof IDebugTarget || source instanceof IProcess) { ArchiveSourceLocation.closeArchives(); IProcess process; if (source instanceof IProcess) { process = (IProcess) source; } else { process = ((IDebugTarget) source).getProcess(); } if (process != null) { deleteProcessTempFiles(process); } } } } }
/** * Clears zip file cache. * Shutdown the launch configuration helper. * * @see Plugin#stop(BundleContext) */ @Override public void stop(BundleContext context) throws Exception { try { DebugPlugin.getDefault().getLaunchManager().removeLaunchListener(this); DebugPlugin.getDefault().removeDebugEventListener(this); ResourcesPlugin.getWorkspace().removeResourceChangeListener(this); ArchiveSourceLocation.closeArchives(); InstanceScope.INSTANCE.getNode(ID_PLUGIN).removePreferenceChangeListener(this); JavaRuntime.removeVMInstallChangedListener(this); JavaRuntime.saveVMConfiguration(); fgXMLParser = null; ResourcesPlugin.getWorkspace().removeSaveParticipant(ID_PLUGIN); } finally { super.stop(context); } }
/** * Clears zip file cache. * Shutdown the launch configuration helper. * * @see Plugin#stop(BundleContext) */ @Override public void stop(BundleContext context) throws Exception { try { AdvancedSourceLookupSupport.stop(); DebugPlugin.getDefault().getLaunchManager().removeLaunchListener(this); DebugPlugin.getDefault().removeDebugEventListener(this); ResourcesPlugin.getWorkspace().removeResourceChangeListener(this); ArchiveSourceLocation.closeArchives(); InstanceScope.INSTANCE.getNode(ID_PLUGIN).removePreferenceChangeListener(this); JavaRuntime.removeVMInstallChangedListener(this); JavaRuntime.saveVMConfiguration(); fgXMLParser = null; ResourcesPlugin.getWorkspace().removeSaveParticipant(ID_PLUGIN); } finally { super.stop(context); } }