Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 32d8f05c598700bdeff955144060929e062d050f (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
package org.eclipse.papyrus.customization.display;

import org.eclipse.papyrus.views.properties.runtime.ConfigurationManager;
import org.eclipse.papyrus.views.properties.runtime.ConstraintEngine;


public class DisplayManager {

	private DisplayManager() {
		//TODO : Use a local constraint engine, and remove the context declaration in plugin.xml
		constraintEngine = ConfigurationManager.instance.constraintEngine;

		//TODO : Add support for local constraint engines in the creation factories
		//		constraintEngine = new DefaultConstraintEngine();
		//		ResourceSet resourceSet = new ResourceSetImpl();
		//		URI uri = URI.createPlatformPluginURI(Activator.PLUGIN_ID + "/Model/Customization/Customization.ctx", true); //$NON-NLS-1$
		//		try {
		//			EObject eObject = EMFHelper.loadEMFModel(resourceSet, uri);
		//
		//			if(eObject instanceof Context) {
		//				constraintEngine.addContext((Context)eObject);
		//			} else {
		//				Activator.log.warn("Cannot load the plug-in creation wizard UI");
		//			}
		//		} catch (Exception ex) {
		//			Activator.log.error("Cannot load the plug-in creation wizard UI", ex);
		//		}
	}

	public static DisplayManager instance = new DisplayManager();

	public ConstraintEngine constraintEngine;
}

Back to the top