blob: ae32d20afe2af53ba5299d2f87353b8896ca308c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/*******************************************************************************
* Copyright (c) 2006 IBM Corporation 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
*******************************************************************************/
package org.eclipse.team.internal.ccvs.core.mapping;
import org.eclipse.core.resources.mapping.ModelProvider;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.team.internal.core.TeamPlugin;
public class ChangeSetModelProvider extends ModelProvider {
public static final String ID = "org.eclipse.team.cvs.core.changeSetModel"; //$NON-NLS-1$
private static ChangeSetModelProvider provider;
public ChangeSetModelProvider() {
super();
}
public static ChangeSetModelProvider getProvider() {
if (provider == null) {
try {
provider = (ChangeSetModelProvider)ModelProvider.getModelProviderDescriptor(ChangeSetModelProvider.ID).getModelProvider();
} catch (CoreException e) {
TeamPlugin.log(e);
}
}
return provider;
}
}
|