KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > ccvs > core > mapping > ChangeSetModelProvider


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

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 JavaDoc ID = "org.eclipse.team.cvs.core.changeSetModel"; //$NON-NLS-1$
20
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