blob: 99c906f754bbd1d8b0a9a7f27b05805779e1306d [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2010 IBM Corporation, See4sys and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
* See4sys - added support for problem markers on model objects (rather than
* only on workspace resources). Unfortunately, there was no other
* choice than copying the whole code from
* org.eclipse.ui.views.markers.internal for that purpose because
* many of the relevant classes, methods, and fields are private or
* package private.
*******************************************************************************/
package org.eclipse.sphinx.emf.validation.ui.views;
import org.eclipse.core.resources.IMarker;
/**
*
*/
public class ProblemMarker extends ConcreteMarker {
private int severity;
public ProblemMarker(IMarker toCopy) {
super(toCopy);
}
/*
* (non-Javadoc)
* @see org.eclipse.ui.views.markers.internal.ConcreteMarker#refresh()
*/
@Override
public void refresh() {
super.refresh();
severity = getMarker().getAttribute(IMarker.SEVERITY, -1);
}
public int getSeverity() {
return severity;
}
}