Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#57 Trouble with fragments

open
nobody
5
2013-02-14
2012-11-05
Anonymous
No

There seems to be some kind of functionality involving fragments and resources at work, but I cannot decipher what it is.

Bottom line is, I cannot use the Resource Bundle Editor the way that I am used to, if a fragment exists of the plugin that I'm working in.

See attached video demonstration. You will notice that after I create the properties file, the Default view is missing. I can create it using New, but it is created without the .properties extension next to my file.

Discussion


  • Anonymous
    2012-11-05

    Couldn't attach the demo, it was too large. Here is the link to it:
    http://plech.org/FragmentProblem.swf

     
  • I had the same issue. A workaround would be to close all fragment-plugins you do have. The disadvantage of that is, that all properties files within the fragments are not displayed.

    I had briefly looked into the src code and IMHO the issue is within the FragmentResourceFactory.java (line 148ff). There the Factory looks up all SourceEditors for the host plugin and only add them if the locale is not null. In my case, I had a default locale properties files (messages.properties) within the host plugin and so that was not shown in the editor.
    If I change the lines to:

    for (SourceEditor parentEditor : parentEditors) {
    if (parentEditor != null) {
    editors.add(parentEditor);
    }
    }

    it works for me.

     
  • Please find attached the patch file for what I have tried.