/*******************************************************************************
* Copyright (c) 2012 Red Hat, Inc.
* Distributed under license by Red Hat, Inc. All rights reserved.
* This program is 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:
* Red Hat, Inc. - initial API and implementation
******************************************************************************/
package org.jboss.tools.common.validation;
import org.eclipse.ui.internal.WorkbenchImages;
/**
* @author Alexey Kazakov
*/
public class ValidationAnnotation extends AbstractTemporaryAnnotation {
private static final String warningPath = WorkbenchImages.ICONS_PATH + "elcl16/showwarn_tsk.gif";
private static final String errorPath = WorkbenchImages.ICONS_PATH + "elcl16/showerr_tsk.gif";
/**
* @param type
* @param isPersistent
* @param text
* @param warning
*/
public ValidationAnnotation(String type, String problemType, boolean isPersistent, String text, boolean warning) {
super(type, problemType, isPersistent, text, warning);
}
/* (non-Javadoc)
* @see org.jboss.tools.common.validation.AbstractTemporaryAnnotation#getWarningIconPath()
*/
@Override
protected String getWarningIconPath() {
return warningPath;
}
/* (non-Javadoc)
* @see org.jboss.tools.common.validation.AbstractTemporaryAnnotation#getErrorIconPath()
*/
@Override
protected String getErrorIconPath() {
return errorPath;
}
}