Lines 1-5
Link Here
|
1 |
/****************************************************************************** |
1 |
/****************************************************************************** |
2 |
* Copyright (c) 2004 IBM Corporation and others. |
2 |
* Copyright (c) 2004, 2005 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 17-26
Link Here
|
17 |
|
17 |
|
18 |
import org.eclipse.core.runtime.IConfigurationElement; |
18 |
import org.eclipse.core.runtime.IConfigurationElement; |
19 |
import org.eclipse.emf.ecore.EPackage; |
19 |
import org.eclipse.emf.ecore.EPackage; |
20 |
|
|
|
21 |
import org.eclipse.gmf.runtime.common.core.service.ExecutionStrategy; |
20 |
import org.eclipse.gmf.runtime.common.core.service.ExecutionStrategy; |
22 |
import org.eclipse.gmf.runtime.common.core.service.IOperation; |
21 |
import org.eclipse.gmf.runtime.common.core.service.IOperation; |
23 |
import org.eclipse.gmf.runtime.common.core.service.Service; |
22 |
import org.eclipse.gmf.runtime.common.core.service.Service; |
|
|
23 |
import org.eclipse.gmf.runtime.emf.core.internal.plugin.MSLPlugin; |
24 |
import org.eclipse.gmf.runtime.emf.core.services.metamodel.GetMetamodelSupportOperation; |
24 |
import org.eclipse.gmf.runtime.emf.core.services.metamodel.GetMetamodelSupportOperation; |
25 |
import org.eclipse.gmf.runtime.emf.core.services.metamodel.IMetamodelSupport; |
25 |
import org.eclipse.gmf.runtime.emf.core.services.metamodel.IMetamodelSupport; |
26 |
import org.eclipse.gmf.runtime.emf.core.services.metamodel.IMetamodelSupportProvider; |
26 |
import org.eclipse.gmf.runtime.emf.core.services.metamodel.IMetamodelSupportProvider; |
Lines 37-42
Link Here
|
37 |
// the one instance of the service. |
37 |
// the one instance of the service. |
38 |
public final static MetamodelSupportService instance = new MetamodelSupportService( |
38 |
public final static MetamodelSupportService instance = new MetamodelSupportService( |
39 |
true); |
39 |
true); |
|
|
40 |
|
41 |
static { |
42 |
instance.configureProviders(MSLPlugin.getPluginId(), "MetaModelProviders"); //$NON-NLS-1$ |
43 |
} |
40 |
|
44 |
|
41 |
// cache the operations. |
45 |
// cache the operations. |
42 |
public final static Map operations = new HashMap(); |
46 |
public final static Map operations = new HashMap(); |
Lines 72-84
Link Here
|
72 |
} |
76 |
} |
73 |
|
77 |
|
74 |
/** |
78 |
/** |
75 |
* Configures the meta-model service. |
|
|
76 |
*/ |
77 |
public static void configure(IConfigurationElement[] elements) { |
78 |
instance.configureProviders(elements); |
79 |
} |
80 |
|
81 |
/** |
82 |
* Executes a service request. |
79 |
* Executes a service request. |
83 |
*/ |
80 |
*/ |
84 |
private Object execute(IOperation operation) { |
81 |
private Object execute(IOperation operation) { |