Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 208996 Details for
Bug 367826
Wrong class loader in org.eclipse.emf.ecp.editor.ControlFactory
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch
use-control-class-loader-to-resolve-type-class.patch (text/plain), 1004 bytes, created by
Andre Boehlke
on 2012-01-04 05:58:03 EST
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Andre Boehlke
Created:
2012-01-04 05:58:03 EST
Size:
1004 bytes
patch
obsolete
>diff --git a/org.eclipse.emf.ecp.editor/src/org/eclipse/emf/ecp/editor/ControlFactory.java b/org.eclipse.emf.ecp.editor/src/org/eclipse/emf/ecp/editor/ControlFactory.java >index f91d480..e411b01 100644 >--- a/org.eclipse.emf.ecp.editor/src/org/eclipse/emf/ecp/editor/ControlFactory.java >+++ b/org.eclipse.emf.ecp.editor/src/org/eclipse/emf/ecp/editor/ControlFactory.java >@@ -53,8 +53,8 @@ > for (IConfigurationElement e : allControls) { > String type = e.getAttribute("type"); > try { >- Class<?> resolvedType = Class.forName(type); >- AbstractMEControl control = (AbstractMEControl) e.createExecutableExtension("class"); >+ AbstractMEControl control = (AbstractMEControl) e.createExecutableExtension("class"); >+ Class<?> resolvedType = control.getClass().getClassLoader().loadClass(type); > boolean showLabel = Boolean.parseBoolean(e.getAttribute("showLabel")); > control.setShowLabel(showLabel); > ArrayList<AbstractMEControl> list = controlRegistry.get(resolvedType);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
eclipse
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 367826
: 208996