1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Bug 272480, allow for NULL attribute.

This commit is contained in:
Ken Ryall 2009-05-31 12:55:26 +00:00
parent 75560d52b8
commit 51f4baf0ae

View file

@ -81,7 +81,7 @@ abstract public class AbstractCLaunchDelegate extends LaunchConfigurationDelegat
*/
public class CLaunch extends Launch {
private AtomicBoolean fRefreshDone;
private final AtomicBoolean fRefreshDone;
public CLaunch(ILaunchConfiguration launchConfiguration, String mode, ISourceLocator locator) {
super(launchConfiguration, mode, locator);
@ -229,6 +229,7 @@ abstract public class AbstractCLaunchDelegate extends LaunchConfigurationDelegat
/**
* @deprecated Use {@link org.eclipse.cdt.debug.core.CDebugUtils} instead.
*/
@Deprecated
public static ICProject getCProject(ILaunchConfiguration configuration) throws CoreException {
return CDebugUtils.getCProject(configuration);
}
@ -236,6 +237,7 @@ abstract public class AbstractCLaunchDelegate extends LaunchConfigurationDelegat
/**
* @deprecated Use {@link org.eclipse.cdt.debug.core.CDebugUtils} instead.
*/
@Deprecated
public static String getProjectName(ILaunchConfiguration configuration) throws CoreException {
return CDebugUtils.getProjectName(configuration);
}
@ -243,6 +245,7 @@ abstract public class AbstractCLaunchDelegate extends LaunchConfigurationDelegat
/**
* @deprecated Use {@link org.eclipse.cdt.debug.core.CDebugUtils} instead.
*/
@Deprecated
public static String getProgramName(ILaunchConfiguration configuration) throws CoreException {
return CDebugUtils.getProgramName(configuration);
}
@ -250,6 +253,7 @@ abstract public class AbstractCLaunchDelegate extends LaunchConfigurationDelegat
/**
* @deprecated Use {@link org.eclipse.cdt.debug.core.CDebugUtils} instead.
*/
@Deprecated
public static IPath getProgramPath(ILaunchConfiguration configuration) throws CoreException {
return CDebugUtils.getProgramPath(configuration);
}
@ -744,7 +748,8 @@ abstract public class AbstractCLaunchDelegate extends LaunchConfigurationDelegat
if (markers.length > 0) {
for (int j = 0; j < markers.length; j++) {
if ( ((Integer)markers[j].getAttribute(IMarker.SEVERITY)).intValue() == IMarker.SEVERITY_ERROR) {
Object severityAttribute = markers[j].getAttribute(IMarker.SEVERITY);
if (severityAttribute != null && ((Integer) severityAttribute).intValue() == IMarker.SEVERITY_ERROR) {
return true;
}
}