1 11 package org.eclipse.team.core; 12 13 import org.eclipse.core.resources.IResource; 14 import org.eclipse.core.resources.ResourcesPlugin; 15 import org.eclipse.core.runtime.Status; 16 17 23 public class TeamStatus extends Status implements ITeamStatus { 24 25 private IResource resource; 26 27 39 public TeamStatus(int severity, String pluginId, int code, String message, Throwable exception, IResource resource) { 40 super(severity, pluginId, code, message, exception); 41 if (resource == null) { 42 this.resource = ResourcesPlugin.getWorkspace().getRoot(); 43 } else { 44 this.resource = resource; 45 } 46 } 47 48 52 public IResource getResource() { 53 return resource; 54 } 55 } 56 | Popular Tags |