facebook

InvalidComponent on Swing Designer

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #345108 Reply

    Tim Hunter
    Member

    I have converted to MEclipse 10 from ME 9. I’m currently using Version 10.7.1 of ME 10.

    I’m trying to edit a .form that was created about a year ago, when I was still using ME 9. However, the .form (or ME10) will not load my custom swing components into the Design tab of the MyEclipse Swing/Mattise perspective. ANd, the outline tab on ME10 shows my custom components with the text ‘InvalidComponent” next to the custom name.

    The .metadata/.log file is not very helpful. While it does show an issue with a binding error, it doesn’t show any other problems. I’m guessing the binding issue is not what is causing the Swing components to have the error message “InvalidComponent” when they are trying to be displayed by ME10.

    I’m stumped as to how to fix this.

    Something I’ve tried, based on googling around the internet:
    I changed the version of java that ME loads with. ME, by default, loads with java 1.6 but I’m compiling and testing my projects with Java 1.7. So I changed the -vm value in the myeclipse.ini file to have ME10 load via java 1.7. When I did that, the .form in question wouldn’t load at all.

    What is interesting is that each individual custom form will load and display correctly if I load them in ME 10 one at a time. However, I’ve got code (a main .form, if you will) that references each of the custom .forms, but that main .form cannot display the individual .forms.

    I’ve copy and pasted the .log file below. I’ve also attached a tar.gz file which has the main form and all the other forms (.java and .form files)

    I would appreciate any help you could provide. Let me know if you need anything else.

    Thank you,
    HunterCap

    ~
    !SESSION 2013-12-09 13:24:31.418 ———————————————–
    eclipse.buildId=unknown
    java.version=1.6.0_13
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
    Command-line arguments: -os linux -ws gtk -arch x86_64

    !ENTRY org.eclipse.jface 2 0 2013-12-09 13:24:52.726
    !MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
    !SUBENTRY 1 org.eclipse.jface 2 0 2013-12-09 13:24:52.726
    !MESSAGE A conflict occurred for CTRL+F9:
    Binding(CTRL+F9,
    ParameterizedCommand(Command(org.eclipse.mylyn.tasks.ui.command.activateTask,Activate Task,
    ,
    Category(org.eclipse.ui.category.navigate,Navigate,null,true),
    ActionDelegateHandlerProxy(null,org.eclipse.mylyn.internal.tasks.ui.actions.ActivateTaskDialogAction),
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)
    Binding(CTRL+F9,
    ParameterizedCommand(Command(RunSQLAction,Run SQL,
    Run SQL,
    Category(org.eclipse.ui.category.edit,Edit,null,true),
    ,
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)

    Attachments:
    You must be logged in to view attached files.
    #345143 Reply

    support-swapna
    Moderator

    HunterCap,

    Sorry that you are seeing this issue.

    We have moved away from Matisse in our latest version (MyEclipse 2014), in favor of Window Builder (called “Swing Designer for MyEclipse” in our product component), which doesn’t require the form files and allows editing using only the Java source.Help for this is in the product help under WindowBuilder Pro User Guide.

    There is some rationale behind this move in responses by Scott, in this forum topic.
    So, you should be able to open the Java source file, containing the forms code, by right clicking on the Java file and selecting WindowBuilder Editor.

    I get Null Pointer Exceptions while trying to open the CommandInitiatorMainFrame.form which is different from the issue you are seeing.

    I suggest you switch to Window Builder and let us know if you are still seeing issues.

    #345158 Reply

    support-swapna
    Moderator

    HunterCap,

    MyEclipse 10.7.1 does not install ‘Swing Designer for MyEclipse’ by default. You will have to install it from the Dashboard section of MyEclipse Configuration Center.

    If you cannot use the Window Builder for some reason, can you please let us know which form you are editing and which custom components you are trying to add using the palette to help us replicate the issue at our end?

    #345166 Reply

    Tim Hunter
    Member

    Thank you Swapna –

    Sorry for the delay.

    I’ll give your suggestions a try.

    Question: The email response that states the Swing Designer for MyEclipse “doesn’t require the form files”. What happens to the form files? Are they now obsolete? Can they be deleted?

    Thank you for all your help and quick response.

    I appreciate it.

    Best,

    huntercap

    #345197 Reply

    support-swapna
    Moderator

    HunterCap,

    Yes, you can delete them as they will be obsolete with an updated Java source. If you want you can keep a backup of the .form files in case you want to go back to Matisse.
    Let us know if you see any issues or have any questions.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: InvalidComponent on Swing Designer

You must be logged in to post in the forum log in