You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix ClassCastException when creating new class from Direct Menu Item
Creating a new class via the "Class URI" link in the E4 application
model
editor threw a ClassCastException due to an invalid type conversion in
the
data binding configuration of AbstractNewClassPage.java.
The target-to-model UpdateValueStrategy was missing a converter to
transform
the String value from the text field into an IPackageFragmentRoot,
leading
to a failed cast by the default converter.
This change introduces StringToPackageFragmentRootConverter to properly
map String paths to IPackageFragmentRoot instances and integrates it
into
the data binding setup. Users can now open the new class wizard and
create
handler classes without errors.
Copy file name to clipboardExpand all lines: e4tools/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes/AbstractNewClassPage.java
+34Lines changed: 34 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -253,6 +253,7 @@ public void createControl(Composite parent) {
0 commit comments