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.
}
Workspace workspace = WindowManager.getDefault().getCurrentWorkspace();
Mode myMode = workspace.findMode(acTopComponent);
if (myMode == null) {
myMode = workspace.createMode("AutoComment", ResourceUtils.getBundledString ("CTL_AUTOCOMMENT_WindowTitle"), null ); //NOI18N
myMode.dockInto( acTopComponent );
return acTopComponent;