Commit d7659ef
committed
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.1 parent b66c8ab commit d7659ef
File tree
1 file changed
+34
-0
lines changed- e4tools/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes
1 file changed
+34
-0
lines changedLines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
| |||
585 | 586 | | |
586 | 587 | | |
587 | 588 | | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
588 | 622 | | |
0 commit comments