我正在做netBeans平台应用程序。当我创建顶级组件时,我将它作为“资源管理器”模式启动。但默认情况下它以“编辑器”模式启动。这里是顶级组件自动生成的注释。
@ConvertAsProperties(
dtd = "-//MyApplication.windows//MyViewer//EN",
autostore = false)
@TopComponent.Description(
preferredID = "MyViewerTopComponent",
//iconBase="SET/PATH/TO/ICON/HERE",
persistenceType = TopComponent.PERSISTENCE_ALWAYS)
@TopComponent.Registration(mode = "explorer", openAtStartup = true)
@ActionID(category = "Window", id = "MyApplication.windows.MyViewerTopComponent")
@ActionReference(path = "Menu/Window" /*, position = 333 */)
@TopComponent.OpenActionRegistration(
displayName = "#CTL_MyViewerAction",
preferredID = "MyViewerTopComponent")
@Messages(
{
"CTL_MyViewerAction=MyViewer",
"CTL_MyViewerTopComponent=MyViewer Window",
"HINT_MyViewerTopComponent=This is a MyViewer window"
})
请给我任何关于这个问题的建议。