在我的基于NetBeans平台的应用程序中,我有两个具有默认编辑器位置的顶级组件:
@TopComponent.Description(
preferredID = "AddResourcesTopComponent",
persistenceType = TopComponent.PERSISTENCE_ALWAYS
)
@TopComponent.Registration(mode = "editor", openAtStartup = true)
@TopComponent.Description(
preferredID = "ViewerTopComponent",
persistenceType = TopComponent.PERSISTENCE_ALWAYS
)
@TopComponent.Registration(mode = "editor", openAtStartup = false )
我有探险家的顶级组件:
@TopComponent.Description(
preferredID = "PackageContentsTopComponent",
persistenceType = TopComponent.PERSISTENCE_ALWAYS
)
@TopComponent.Registration(mode = "explorer", openAtStartup = true)
问题是:
openAtStartup = false
的查看器TopComponent会打开
启动应用程序,但具有的PackageContents TopComponent
我启动申请时openAtStartup = true
没有打开。任何帮助?非常感谢