Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 367826
Collapse All | Expand All

(-)a/org.eclipse.emf.ecp.editor/src/org/eclipse/emf/ecp/editor/ControlFactory.java (-2 / +2 lines)
Lines 53-60 Link Here
53
		for (IConfigurationElement e : allControls) {
53
		for (IConfigurationElement e : allControls) {
54
			String type = e.getAttribute("type");
54
			String type = e.getAttribute("type");
55
			try {
55
			try {
56
				Class<?> resolvedType = Class.forName(type);
56
				AbstractMEControl control = (AbstractMEControl) e.createExecutableExtension("class");			
57
				AbstractMEControl control = (AbstractMEControl) e.createExecutableExtension("class");
57
				Class<?> resolvedType = control.getClass().getClassLoader().loadClass(type);
58
				boolean showLabel = Boolean.parseBoolean(e.getAttribute("showLabel"));
58
				boolean showLabel = Boolean.parseBoolean(e.getAttribute("showLabel"));
59
				control.setShowLabel(showLabel);
59
				control.setShowLabel(showLabel);
60
				ArrayList<AbstractMEControl> list = controlRegistry.get(resolvedType);
60
				ArrayList<AbstractMEControl> list = controlRegistry.get(resolvedType);

Return to bug 367826