mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-01 05:15:43 +02:00
Cleanup. Removed the session manager from the CDebugCorePlugin class.
This commit is contained in:
parent
ef5e888d08
commit
e85175ccb5
2 changed files with 4 additions and 15 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2005-04-21 Mikhail Khodjaiants
|
||||||
|
Cleanup. Removed the session manager from the CDebugCorePlugin class.
|
||||||
|
* CDebugCorePlugin.java
|
||||||
|
|
||||||
2005-04-21 Mikhail Khodjaiants
|
2005-04-21 Mikhail Khodjaiants
|
||||||
Bug 80175: Replace the CDT source lookup by the source lookup provided by Eclipse platform.
|
Bug 80175: Replace the CDT source lookup by the source lookup provided by Eclipse platform.
|
||||||
* CDebugCorePlugin.java
|
* CDebugCorePlugin.java
|
||||||
|
|
|
@ -15,7 +15,6 @@ import org.eclipse.cdt.debug.core.sourcelookup.ICSourceLocation;
|
||||||
import org.eclipse.cdt.debug.internal.core.DebugConfiguration;
|
import org.eclipse.cdt.debug.internal.core.DebugConfiguration;
|
||||||
import org.eclipse.cdt.debug.internal.core.ICDebugInternalConstants;
|
import org.eclipse.cdt.debug.internal.core.ICDebugInternalConstants;
|
||||||
import org.eclipse.cdt.debug.internal.core.ListenerList;
|
import org.eclipse.cdt.debug.internal.core.ListenerList;
|
||||||
import org.eclipse.cdt.debug.internal.core.SessionManager;
|
|
||||||
import org.eclipse.cdt.debug.internal.core.breakpoints.CBreakpoint;
|
import org.eclipse.cdt.debug.internal.core.breakpoints.CBreakpoint;
|
||||||
import org.eclipse.cdt.debug.internal.core.sourcelookup.CSourceLookupDirector;
|
import org.eclipse.cdt.debug.internal.core.sourcelookup.CSourceLookupDirector;
|
||||||
import org.eclipse.cdt.debug.internal.core.sourcelookup.CommonSourceLookupDirector;
|
import org.eclipse.cdt.debug.internal.core.sourcelookup.CommonSourceLookupDirector;
|
||||||
|
@ -67,8 +66,6 @@ public class CDebugCorePlugin extends Plugin {
|
||||||
*/
|
*/
|
||||||
private CommonSourceLookupDirector fCommonSourceLookupDirector;
|
private CommonSourceLookupDirector fCommonSourceLookupDirector;
|
||||||
|
|
||||||
private SessionManager fSessionManager = null;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The constructor.
|
* The constructor.
|
||||||
*/
|
*/
|
||||||
|
@ -192,16 +189,6 @@ public class CDebugCorePlugin extends Plugin {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected SessionManager getSessionManager() {
|
|
||||||
return fSessionManager;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void setSessionManager( SessionManager sm ) {
|
|
||||||
if ( fSessionManager != null )
|
|
||||||
fSessionManager.dispose();
|
|
||||||
fSessionManager = sm;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void saveCommonSourceLocations( ICSourceLocation[] locations ) {
|
public void saveCommonSourceLocations( ICSourceLocation[] locations ) {
|
||||||
CDebugCorePlugin.getDefault().getPluginPreferences().setValue( ICDebugConstants.PREF_SOURCE_LOCATIONS, SourceUtils.getCommonSourceLocationsMemento( locations ) );
|
CDebugCorePlugin.getDefault().getPluginPreferences().setValue( ICDebugConstants.PREF_SOURCE_LOCATIONS, SourceUtils.getCommonSourceLocationsMemento( locations ) );
|
||||||
}
|
}
|
||||||
|
@ -254,14 +241,12 @@ public class CDebugCorePlugin extends Plugin {
|
||||||
initializeCommonSourceLookupDirector();
|
initializeCommonSourceLookupDirector();
|
||||||
createBreakpointListenersList();
|
createBreakpointListenersList();
|
||||||
resetBreakpointsInstallCount();
|
resetBreakpointsInstallCount();
|
||||||
setSessionManager( new SessionManager() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
|
* @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
|
||||||
*/
|
*/
|
||||||
public void stop( BundleContext context ) throws Exception {
|
public void stop( BundleContext context ) throws Exception {
|
||||||
setSessionManager( null );
|
|
||||||
disposeBreakpointListenersList();
|
disposeBreakpointListenersList();
|
||||||
resetBreakpointsInstallCount();
|
resetBreakpointsInstallCount();
|
||||||
disposeCommonSourceLookupDirector();
|
disposeCommonSourceLookupDirector();
|
||||||
|
|
Loading…
Add table
Reference in a new issue