Fix: Unable to open design page for view page#563
Merged
ptziegler merged 2 commits intoeclipse-windowbuilder:masterfrom Sep 5, 2023
Merged
Fix: Unable to open design page for view page#563ptziegler merged 2 commits intoeclipse-windowbuilder:masterfrom
ptziegler merged 2 commits intoeclipse-windowbuilder:masterfrom
Conversation
When creating a new Swing widget, the Eclipse compiler creates a warning due to a missing serialVersionUID. For the sake of simplicity this variable is generated and initialized with a default value.
Contributor
Author
|
When using the IToolBarManager, the captured image seems to be empty :/ |
An exception is thrown when calling getSite().getActionBars().getMenuManager(). When trying to resolve those methods, we internally touch on methods hidden by encapsulation. This then throws an unhandled InaccessibleObjectException exception. Note: The problematic class is MethodHandles.Lookup in the Proxy class. The Swing templates have been adapted to also generated the default serialVersionUID in order to resolve the corresponding warning. Test cases have been added to check, whether the design page can be openened for all templates contributed via the New wizard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An exception is thrown when calling
getSite().getActionBars().getMenuManager(). When trying to resolve those
methods, we internally touch on methods hidden by encapsulation. This
then throws an unhandled InaccessibleObjectException exception.
Note: The problematic class is MethodHandles.Lookup in the Proxy class.
The Swing templates have been adapted to also generated the default
serialVersionUID in order to resolve the corresponding warning.
Test cases have been added to check, whether the design page can be
openened for all templates contributed via the New wizard.
This also resolves the missing serialVersionUID warning when creating
a new Swing widget.