mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Reformatting.
This commit is contained in:
parent
3eb80a102a
commit
c9259b653d
1 changed files with 6 additions and 5 deletions
|
@ -49,18 +49,19 @@ public class CRegisterGroup extends CDebugElement implements IRegisterGroup, IEn
|
|||
* @see org.eclipse.debug.core.model.IRegisterGroup#getRegisters()
|
||||
*/
|
||||
public IRegister[] getRegisters() throws DebugException {
|
||||
if (fRegisters == null) {
|
||||
if ( fRegisters == null ) {
|
||||
try {
|
||||
ICDIRegisterDescriptor[] regDescs = fCDIRegisterGroup.getRegisterDescriptors();
|
||||
fRegisters = new IRegister[regDescs.length];
|
||||
for ( int i = 0; i < fRegisters.length; ++i ) {
|
||||
fRegisters[i] = new CRegister( this, regDescs[i] );
|
||||
for( int i = 0; i < fRegisters.length; ++i ) {
|
||||
fRegisters[i] = new CRegister( this, regDescs[i] );
|
||||
if ( ((CRegister)fRegisters[i]).isEnabled() ) {
|
||||
((CRegister)fRegisters[i]).setEnabled( isEnabled() );
|
||||
}
|
||||
}
|
||||
} catch (CDIException e) {
|
||||
requestFailed( e.getMessage(), null );
|
||||
}
|
||||
catch( CDIException e ) {
|
||||
requestFailed( e.getMessage(), null );
|
||||
}
|
||||
}
|
||||
return fRegisters;
|
||||
|
|
Loading…
Add table
Reference in a new issue