mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Don't save the list of registers for default groups.
This commit is contained in:
parent
d66940d5a3
commit
0d49540c18
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-06-09 Mikhail Khodjaiants
|
||||||
|
Bug 94139: User-defined register groups.
|
||||||
|
Don't save the list of registers for default groups.
|
||||||
|
* CRegisterManager.java
|
||||||
|
|
||||||
2005-06-09 Mikhail Khodjaiants
|
2005-06-09 Mikhail Khodjaiants
|
||||||
Bug 94139: User-defined register groups.
|
Bug 94139: User-defined register groups.
|
||||||
Support fo the "Restore Default Register Groups" action.
|
Support fo the "Restore Default Register Groups" action.
|
||||||
|
|
|
@ -63,6 +63,8 @@ public class CRegisterManager {
|
||||||
*/
|
*/
|
||||||
private IRegisterDescriptor[] fRegisterDescriptors;
|
private IRegisterDescriptor[] fRegisterDescriptors;
|
||||||
|
|
||||||
|
private boolean fUseDefaultRegisterGroups = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for CRegisterManager.
|
* Constructor for CRegisterManager.
|
||||||
*/
|
*/
|
||||||
|
@ -235,9 +237,11 @@ public class CRegisterManager {
|
||||||
}
|
}
|
||||||
childNode = childNode.getNextSibling();
|
childNode = childNode.getNextSibling();
|
||||||
}
|
}
|
||||||
|
fUseDefaultRegisterGroups = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void initializeDefaults() {
|
protected void initializeDefaults() {
|
||||||
|
fUseDefaultRegisterGroups = true;
|
||||||
String current = null;
|
String current = null;
|
||||||
int startIndex = 0;
|
int startIndex = 0;
|
||||||
for ( int i = 0; i < fRegisterDescriptors.length; ++i ) {
|
for ( int i = 0; i < fRegisterDescriptors.length; ++i ) {
|
||||||
|
@ -274,7 +278,7 @@ public class CRegisterManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getMemento() throws CoreException {
|
private String getMemento() throws CoreException {
|
||||||
if ( fRegisterGroups == null )
|
if ( fUseDefaultRegisterGroups || fRegisterGroups == null )
|
||||||
return ""; //$NON-NLS-1$
|
return ""; //$NON-NLS-1$
|
||||||
Document document = DebugPlugin.newDocument();
|
Document document = DebugPlugin.newDocument();
|
||||||
Element element = document.createElement( ELEMENT_REGISTER_GROUP_LIST );
|
Element element = document.createElement( ELEMENT_REGISTER_GROUP_LIST );
|
||||||
|
|
Loading…
Add table
Reference in a new issue