1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-09 01:05:38 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2010-12-09 02:51:22 +00:00
parent 82e06db2d9
commit 0c65369079
2 changed files with 157 additions and 159 deletions

View file

@ -51,7 +51,6 @@ import org.osgi.framework.BundleContext;
* The plugin class for C/C++ debug core. * The plugin class for C/C++ debug core.
*/ */
public class CDebugCorePlugin extends Plugin { public class CDebugCorePlugin extends Plugin {
/** /**
* The plug-in identifier (value <code>"org.eclipse.cdt.debug.core"</code>). * The plug-in identifier (value <code>"org.eclipse.cdt.debug.core"</code>).
*/ */
@ -241,8 +240,7 @@ public class CDebugCorePlugin extends Plugin {
ICDebugConfiguration result = null; ICDebugConfiguration result = null;
try { try {
result = getDebugConfiguration(CDebugCorePlugin.getDefault().getPluginPreferences().getString(ICDebugConstants.PREF_DEFAULT_DEBUGGER_TYPE)); result = getDebugConfiguration(CDebugCorePlugin.getDefault().getPluginPreferences().getString(ICDebugConstants.PREF_DEFAULT_DEBUGGER_TYPE));
} } catch (CoreException e) {
catch( CoreException e ) {
} }
return result; return result;
} }
@ -251,8 +249,7 @@ public class CDebugCorePlugin extends Plugin {
ICDebugConfiguration result = null; ICDebugConfiguration result = null;
try { try {
result = getDebugConfiguration(CDebugCorePlugin.getDefault().getPluginPreferences().getDefaultString(ICDebugConstants.PREF_DEFAULT_DEBUGGER_TYPE)); result = getDebugConfiguration(CDebugCorePlugin.getDefault().getPluginPreferences().getDefaultString(ICDebugConstants.PREF_DEFAULT_DEBUGGER_TYPE));
} } catch (CoreException e) {
catch( CoreException e ) {
} }
if (result == null) { if (result == null) {
} }
@ -376,12 +373,10 @@ public class CDebugCorePlugin extends Plugin {
// Convert source locations to source containers // Convert source locations to source containers
convertSourceLocations(fCommonSourceLookupDirector); convertSourceLocations(fCommonSourceLookupDirector);
} } else {
else {
try { try {
fCommonSourceLookupDirector.initializeFromMemento(newMemento); fCommonSourceLookupDirector.initializeFromMemento(newMemento);
} } catch (CoreException e) {
catch( CoreException e ) {
log(e.getStatus()); log(e.getStatus());
} }
} }
@ -453,7 +448,8 @@ public class CDebugCorePlugin extends Plugin {
} }
} }
} }
} catch (CoreException e) {} } catch (CoreException e) {
}
ILaunchConfigurationType remoteCfg = launchMgr.getLaunchConfigurationType(ICDTLaunchConfigurationConstants.ID_LAUNCH_C_REMOTE_APP); ILaunchConfigurationType remoteCfg = launchMgr.getLaunchConfigurationType(ICDTLaunchConfigurationConstants.ID_LAUNCH_C_REMOTE_APP);
try { try {
@ -466,7 +462,8 @@ public class CDebugCorePlugin extends Plugin {
} }
} }
} }
} catch (CoreException e) {} } catch (CoreException e) {
}
ILaunchConfigurationType attachCfg = launchMgr.getLaunchConfigurationType(ICDTLaunchConfigurationConstants.ID_LAUNCH_C_ATTACH); ILaunchConfigurationType attachCfg = launchMgr.getLaunchConfigurationType(ICDTLaunchConfigurationConstants.ID_LAUNCH_C_ATTACH);
try { try {
@ -479,7 +476,8 @@ public class CDebugCorePlugin extends Plugin {
} }
} }
} }
} catch (CoreException e) {} } catch (CoreException e) {
}
ILaunchConfigurationType postMortemCfg = launchMgr.getLaunchConfigurationType(ICDTLaunchConfigurationConstants.ID_LAUNCH_C_POST_MORTEM); ILaunchConfigurationType postMortemCfg = launchMgr.getLaunchConfigurationType(ICDTLaunchConfigurationConstants.ID_LAUNCH_C_POST_MORTEM);
try { try {
@ -492,7 +490,8 @@ public class CDebugCorePlugin extends Plugin {
} }
} }
} }
} catch (CoreException e) {} } catch (CoreException e) {
}
HashSet<String> runSet = new HashSet<String>(); HashSet<String> runSet = new HashSet<String>();
runSet.add(ILaunchManager.RUN_MODE); runSet.add(ILaunchManager.RUN_MODE);
@ -507,7 +506,7 @@ public class CDebugCorePlugin extends Plugin {
} }
} }
} }
} catch (CoreException e) {} } catch (CoreException e) {
}
} }
} }

View file

@ -44,7 +44,6 @@ import org.eclipse.ui.IWorkbenchPreferencePage;
* The "Common Source Lookup Path" preference page. * The "Common Source Lookup Path" preference page.
*/ */
public class SourcePreferencePage extends PreferencePage implements IWorkbenchPreferencePage { public class SourcePreferencePage extends PreferencePage implements IWorkbenchPreferencePage {
private SourceContainerViewer fPathViewer; private SourceContainerViewer fPathViewer;
private List<SourceContainerAction> fActions = new ArrayList<SourceContainerAction>(6); private List<SourceContainerAction> fActions = new ArrayList<SourceContainerAction>(6);
private IWorkbench fWorkbench; private IWorkbench fWorkbench;