This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 36119
Collapse All | Expand All

(-)javadoc/src/org/netbeans/modules/javadoc/comments/AutoCommentTopComponent.java (-7 lines)
Lines 79-91 Link Here
79
79
80
        }
80
        }
81
81
82
        Workspace workspace = WindowManager.getDefault().getCurrentWorkspace();
83
        Mode myMode = workspace.findMode(acTopComponent);
84
        if (myMode == null) {
85
            myMode = workspace.createMode("AutoComment", ResourceUtils.getBundledString ("CTL_AUTOCOMMENT_WindowTitle"), null );  //NOI18N
86
            myMode.dockInto( acTopComponent );
87
        }
88
89
        return acTopComponent;
82
        return acTopComponent;
90
    }
83
    }
91
84

Return to bug 36119