示例#1
0
 @Override
 public void actionPerformed(CommandEvent event) {
   if (dialog == null) {
     dialog =
         new ReprojectionDialog(
             false, "Reprojection", event.getCommand().getHelpId(), getAppContext());
   }
   dialog.show();
 }
示例#2
0
 @Override
 public void actionPerformed(CommandEvent event) {
   super.actionPerformed(event);
   final OpendapAccessPanel opendapAccessPanel =
       new OpendapAccessPanel(getAppContext(), event.getCommand().getHelpId());
   final JDialog jDialog = new JDialog(getAppContext().getApplicationWindow(), "OPeNDAP Access");
   jDialog.setContentPane(opendapAccessPanel);
   jDialog.pack();
   final Dimension size = jDialog.getSize();
   jDialog.setPreferredSize(size);
   jDialog.setVisible(true);
 }
示例#3
0
 @Override
 public void updateState(CommandEvent event) {
   final ProductNode node = VisatApp.getApp().getSelectedProductNode();
   event.getCommand().setEnabled(node instanceof Band);
 }