/* * JBoss, Home of Professional Open Source. * * See the LEGAL.txt file distributed with this work for information regarding copyright ownership and licensing. * * See the AUTHORS.txt file distributed with this work for a full listing of individual contributors. */ package org.teiid.designer.ui.build; import org.eclipse.core.resources.IMarker; import org.eclipse.core.runtime.CoreException; import org.eclipse.ui.IMarkerResolution; import org.eclipse.ui.IMarkerResolutionGenerator2; public class ModelProjectMarkerResolutionGenerator implements IMarkerResolutionGenerator2 { @Override public IMarkerResolution[] getResolutions(IMarker marker) { // TODO Auto-generated method stub return new IMarkerResolution[] {new ModelProjectConfigurationResolution()}; } @Override public boolean hasResolutions(IMarker marker) { try { if( marker.getAttribute("missingVdbBuilder") != null ) return true; } catch (CoreException e) { // TODO Auto-generated catch block e.printStackTrace(); } return false; } }