[platform-dev] Context Aware action gets enabled, but does nothing sometimes

  • From: "Mvek" < >
  • To:
  • Subject: [platform-dev] Context Aware action gets enabled, but does nothing sometimes
  • Date: Thu, 26 Apr 2012 22:50:03 +0000

The whole code of my action VyrokAction is here:


Code:
@ActionID(category = "VNode",
id = "org.vse.aha.gui.actions.VýrokDetailAction")
@ActionRegistration(iconBase = "org/vse/aha/gui/actions/detailIkona16.png",
displayName = "#CTL_VýrokDetailAction")
@ActionReferences({
  @ActionReference(path = "Menu/File", position = 1300),
  @ActionReference(path = "Toolbars/File", position = 300)
})
@Messages("CTL_VýrokDetailAction=Detail výroku")
public final class VýrokDetailAction implements ActionListener {

  private final VýrokNode context;

  public VýrokDetailAction(VýrokNode context) {
    this.context = context;
  }

  @Override
  public void actionPerformed(ActionEvent ev) {
    
WindowManager.getDefault().findTopComponent("DetailVyrokuTopComponent").open();
  }
}



(I know, I used not normal latin characters, because this should be just a 
demonstrative teaching example and there we often use Czech class and methods 
names; NB seems working with it ok, except for the name of TopComponent 
class, but I hope this cannot do this strange enabling, I described)






[platform-dev] Context Aware action gets enabled, but does nothing sometimes

Mvek 04/26/2012

[platform-dev] Context Aware action gets enabled, but does nothing sometimes

Mvek 04/26/2012

Project Features

Project Links

About this Project

Platform was started in November 2009, is owned by Antonin Nebuzelsky, and has 138 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close