public void init(Project project) {
   super.init(project);
   ModuleRepository_Tool.this.myComponent = new ModuleRepositoryComponent();
   ModuleRepository_Tool.this.myPanel = new JPanel(new BorderLayout());
   ModuleRepository_Tool.this.myPanel.add(
       ModuleRepository_Tool.this.myComponent.getComponent(), BorderLayout.CENTER);
   DefaultActionGroup group = new DefaultActionGroup();
   group.add(new CloseAction(ModuleRepository_Tool.this));
   JComponent toolbar =
       ActionManager.getInstance()
           .createActionToolbar(ActionPlaces.UNKNOWN, group, false)
           .getComponent();
   ModuleRepository_Tool.this.myPanel.add(toolbar, BorderLayout.WEST);
 }
Beispiel #2
0
 @Override
 public void makeUnavailable() {
   super.makeUnavailable();
   ModuleRepository_Tool.this.myComponent.uninstall();
 }
Beispiel #3
0
 public void makeAvailable() {
   super.makeAvailable();
   ModuleRepository_Tool.this.myComponent.install();
 }