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.

Bug 247068

Summary: Disabling of Mix.Editors.And.Views doesn't work
Product: platform Reporter: arittner <arittner>
Component: Window SystemAssignee: Stanislav Aubrecht <saubrecht>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Shows the drag 'n drop from the editor mode to explorer mode

Description arittner 2014-09-12 12:48:18 UTC
Created attachment 149169 [details]
Shows the drag 'n drop from the editor mode to explorer mode

I've troubles with the option Mix.Editors.And.Views.Enabled=false

TopComponent that have been opened for the first time via "@TopComponent.OpenActionRegistration" could be moved to other "modes". If I restart the application, the component remains in the "Editor mode". But again I can create new instances and drag them to other "modes".

I use the default "New Window" template with on exception. I disable the preferredID in OpenActionRegistration to open multiple instances.

Example:

@ConvertAsProperties(
        dtd = "-//de.sepix.app.sxcustdirectory.ui//DragTest//EN",
        autostore = false
)
@TopComponent.Description(
        preferredID = "DragTestTopComponent",
        persistenceType = TopComponent.PERSISTENCE_ALWAYS
)
@TopComponent.Registration(mode = "editor", openAtStartup = false)
@ActionID(category = "Window", id = "de.sepix.app.sxcustdirectory.ui.DragTestTopComponent")
@ActionReference(path = "Menu/Window" /*, position = 333 */)
@TopComponent.OpenActionRegistration(
        displayName = "#CTL_DragTestAction"
)


Mix.Editors.And.Views.Enabled=false is set via branding in org-netbeans-core-windows.jar at \modules\org-netbeans-core-windows.jar\org\netbeans\core\windows\Bundle.properties

For my tests I've cleaned the Windows2Local folder.

The screenshot shows the situation (I hope)

br, josh.