mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 17:35:35 +02:00
Moved the 'Auto-Refresh' preferences from CDebugUIPlugin to use it for initialization of update managers.
This commit is contained in:
parent
329ae9b622
commit
7a5382c5df
4 changed files with 27 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2003-04-01 Mikhail Khodjaiants
|
||||
Moved the 'Auto-Refresh' preferences from CDebugUIPlugin to use it for initialization of update managers.
|
||||
* ICDebugConstants.java
|
||||
* CRegisterManager.java
|
||||
* CSharedLibraryManager.java
|
||||
|
||||
2003-04-01 Mikhail Khodjaiants
|
||||
Removed the 'fDebugTarget' field from CSharedLibraryManager.
|
||||
* CSharedLibraryManager.java
|
||||
|
|
|
@ -40,4 +40,16 @@ public interface ICDebugConstants
|
|||
* The identifier of the default expression format to use in the expressions views
|
||||
*/
|
||||
public static final String PREF_DEFAULT_EXPRESSION_FORMAT = PLUGIN_ID + "cDebug.default_expression_format"; //$NON-NLS-1$
|
||||
|
||||
/**
|
||||
* Boolean preference controlling whether the shared library manager will be
|
||||
* refreshed every time when the execution of program stops.
|
||||
*/
|
||||
public static final String PREF_SHARED_LIBRARIES_AUTO_REFRESH = PLUGIN_ID + "SharedLibraries.auto_refresh"; //$NON-NLS-1$
|
||||
|
||||
/**
|
||||
* Boolean preference controlling whether the register manager will be
|
||||
* refreshed every time when the execution of program stops.
|
||||
*/
|
||||
public static final String PREF_REGISTERS_AUTO_REFRESH = PLUGIN_ID + "Registers.auto_refresh"; //$NON-NLS-1$
|
||||
}
|
||||
|
|
|
@ -11,6 +11,7 @@ import java.util.Iterator;
|
|||
import java.util.List;
|
||||
|
||||
import org.eclipse.cdt.debug.core.CDebugCorePlugin;
|
||||
import org.eclipse.cdt.debug.core.ICDebugConstants;
|
||||
import org.eclipse.cdt.debug.core.ICRegisterManager;
|
||||
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDIManager;
|
||||
|
@ -83,6 +84,9 @@ public class CRegisterManager extends CUpdateManager implements ICRegisterManage
|
|||
public void initialize()
|
||||
{
|
||||
fRegisterGroups = new ArrayList( 20 );
|
||||
boolean autoRefresh = CDebugCorePlugin.getDefault().getPluginPreferences().getBoolean( ICDebugConstants.PREF_REGISTERS_AUTO_REFRESH );
|
||||
if ( getCDIManager() != null )
|
||||
getCDIManager().setAutoUpdate( autoRefresh );
|
||||
createMainRegisterGroup();
|
||||
}
|
||||
|
||||
|
|
|
@ -8,6 +8,8 @@ package org.eclipse.cdt.debug.internal.core;
|
|||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
|
||||
import org.eclipse.cdt.debug.core.CDebugCorePlugin;
|
||||
import org.eclipse.cdt.debug.core.ICDebugConstants;
|
||||
import org.eclipse.cdt.debug.core.ICSharedLibraryManager;
|
||||
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDIManager;
|
||||
|
@ -35,6 +37,9 @@ public class CSharedLibraryManager extends CUpdateManager implements ICSharedLib
|
|||
{
|
||||
super( target );
|
||||
fSharedLibraries = new ArrayList( 5 );
|
||||
boolean autoRefresh = CDebugCorePlugin.getDefault().getPluginPreferences().getBoolean( ICDebugConstants.PREF_SHARED_LIBRARIES_AUTO_REFRESH );
|
||||
if ( getCDIManager() != null )
|
||||
getCDIManager().setAutoUpdate( autoRefresh );
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
|
Loading…
Add table
Reference in a new issue