Menu

#896 SVNPlugin: Floating dockable is blank

closed-duplicate
None
5
2007-09-25
2007-08-14
No

When the SVNPlugin dockable window is floated (by right-clicking its button in the docking area and selecting "Float"), the floating dockable window is blank if the operation was invoked when the dockable window is located at the bottom.

I had the very same problem with my plugins, in which I make the beanshell code in dockables.xml return the existing instance of the dockable if one already exists for the view. Though I don't know exactly the reason for this problem, a web search showed a solution which works for my plugins (try the GlobalPlugin for example): Instead of returning the same JPanel each time, return a new JPanel which will wrap the existing dockable instance. This problem is probably related to some cached layouts, and this solution fixes it.

Discussion

  • Alan Ezust

    Alan Ezust - 2007-08-15

    Logged In: YES
    user_id=935841
    Originator: NO

    I have the same problem with fastopen.
    Strangely, reloader doesn't have this problem.
    The fix doesn't work for fastopen because it's a default focus component, and requires keyboard focus in its textcomponent whenever it gets focus. If the JPanel that was returned is not a defaultfocuscomponent, the dockablewindowmanager won't call the focus method.

     
  • Anonymous

    Anonymous - 2007-08-15

    Logged In: YES
    user_id=1477607
    Originator: YES

    I'm sorry, I am not familiar with default focus components, but maybe the wrapper panel can be created as one?
    Anyway, this issue is the result of the poor jEdit docking framework.

     
  • Dale Anson

    Dale Anson - 2007-08-15

    Logged In: YES
    user_id=187628
    Originator: NO

    I don't see the problem you're describing, so I must have the steps wrong to reproduce. I did this:

    1. SVN dockable docked at bottom, SVN Browser docked at right.
    2. right-click on SVN button at bottom.
    3. select "Float" from popup menu.
    4. I see a new window containing the dockable and it seems to be working correctly.

    What am I missing in these steps?

    I'm running Java 1.6 on ubuntu, jEdit from SVN revision 10369.

     
  • Anonymous

    Anonymous - 2007-08-15

    Logged In: YES
    user_id=1477607
    Originator: YES

    Try floating it from all 4 docking areas. I wrote 'bottom' because the problem usually occurs when you float from the bottom, but it can happen from other docking areas instead. Try both dockables of the plugin.

     
  • Anonymous

    Anonymous - 2007-09-25
    • assigned_to: nobody --> shlomy
    • status: open --> closed-duplicate
     
  • Anonymous

    Anonymous - 2007-09-25

    Logged In: YES
    user_id=1477607
    Originator: YES

    A duplicate of 1796916 which has been fixed in jEdit core.

     

Log in to post a comment.

MongoDB Logo MongoDB