mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-02 05:45:58 +02:00
Cosmetics.
This commit is contained in:
parent
8034e44101
commit
5db78a20c8
4 changed files with 10 additions and 10 deletions
|
@ -6,7 +6,7 @@
|
||||||
* http://www.eclipse.org/legal/epl-v10.html
|
* http://www.eclipse.org/legal/epl-v10.html
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Anton Gorenkov - initial implementation
|
* Anton Gorenkov - initial implementation
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.codan.core.internal.checkers;
|
package org.eclipse.cdt.codan.core.internal.checkers;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2009,2010 QNX Software Systems
|
* Copyright (c) 2009, 2010 QNX Software Systems
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* http://www.eclipse.org/legal/epl-v10.html
|
* http://www.eclipse.org/legal/epl-v10.html
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Alena Laskavaia - initial API and implementation
|
* Alena Laskavaia - initial API and implementation
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.codan.core.model;
|
package org.eclipse.cdt.codan.core.model;
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* http://www.eclipse.org/legal/epl-v10.html
|
* http://www.eclipse.org/legal/epl-v10.html
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Andrew Gvozdev - initial API and implementation
|
* Andrew Gvozdev - initial API and implementation
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.codan.internal.ui;
|
package org.eclipse.cdt.codan.internal.ui;
|
||||||
|
|
||||||
|
@ -32,22 +32,22 @@ import org.eclipse.ui.IMarkerResolutionGenerator;
|
||||||
|
|
||||||
public class CodanProblemMarkerResolutionGenerator implements IMarkerResolutionGenerator {
|
public class CodanProblemMarkerResolutionGenerator implements IMarkerResolutionGenerator {
|
||||||
private static final String EXTENSION_POINT_NAME = "codanMarkerResolution"; //$NON-NLS-1$
|
private static final String EXTENSION_POINT_NAME = "codanMarkerResolution"; //$NON-NLS-1$
|
||||||
private static Map<String, Collection<ConditionalResolution>> resolutions = new HashMap<String, Collection<ConditionalResolution>>();
|
private static final Map<String, Collection<ConditionalResolution>> resolutions = new HashMap<String, Collection<ConditionalResolution>>();
|
||||||
private static boolean resolutionsLoaded = false;
|
private static boolean resolutionsLoaded;
|
||||||
|
|
||||||
static class ConditionalResolution {
|
static class ConditionalResolution {
|
||||||
IMarkerResolution res;
|
IMarkerResolution res;
|
||||||
String messagePattern;
|
String messagePattern;
|
||||||
|
|
||||||
public ConditionalResolution(IMarkerResolution res2, String messagePattern2) {
|
public ConditionalResolution(IMarkerResolution res, String messagePattern) {
|
||||||
res = res2;
|
this.res = res;
|
||||||
messagePattern = messagePattern2;
|
this.messagePattern = messagePattern;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IMarkerResolution[] getResolutions(IMarker marker) {
|
public IMarkerResolution[] getResolutions(IMarker marker) {
|
||||||
if (resolutionsLoaded == false) {
|
if (!resolutionsLoaded) {
|
||||||
readExtensions();
|
readExtensions();
|
||||||
}
|
}
|
||||||
String id = marker.getAttribute(ICodanProblemMarker.ID, null);
|
String id = marker.getAttribute(ICodanProblemMarker.ID, null);
|
||||||
|
|
Loading…
Add table
Reference in a new issue