1 11 package org.eclipse.team.internal.ccvs.core.mapping; 12 13 import org.eclipse.core.resources.mapping.ModelProvider; 14 import org.eclipse.core.runtime.CoreException; 15 import org.eclipse.team.internal.core.TeamPlugin; 16 17 public class ChangeSetModelProvider extends ModelProvider { 18 19 public static final String ID = "org.eclipse.team.cvs.core.changeSetModel"; private static ChangeSetModelProvider provider; 21 22 public ChangeSetModelProvider() { 23 super(); 24 } 25 26 public static ChangeSetModelProvider getProvider() { 27 if (provider == null) { 28 try { 29 provider = (ChangeSetModelProvider)ModelProvider.getModelProviderDescriptor(ChangeSetModelProvider.ID).getModelProvider(); 30 } catch (CoreException e) { 31 TeamPlugin.log(e); 32 } 33 } 34 return provider; 35 } 36 37 } 38 | Popular Tags |