Menubar runtime-configure

Vladimir Voskresensky <[email protected]>
Newsgroups gmane.comp.java.netbeans.general.russian
Message-ID <[email protected]>
Здравствуйте,

Я еще совсем новенький в NB (да и в Java тоже)
но задачка такая:
Пишем модуль с двумя actions:
Remove Menu
Restore Menu

сам модуль добавляет себя как меню "Test" с этими двумя menu items.

поведение такое:
1) Hide all menu folders except "Test"
2) Restore all menu folders back

Кто-нибудь, может step-by-step помочь, что нужно добавить в performAction

public class RemoveMenuAction extends CallableSystemAction {
.............

public void performAction() {
????
}
}

public class RestoreMenuAction extends CallableSystemAction {
.............

public void performAction() {
????
}
}

При этом хочется, чтобы сама NB вдруг сама не восстановила меню во время 
очередной итерации по SystemFileSystem/Menu.

Best regards, Vladimir.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.