Ejemplo n.º 1
0
 @Override
 public void actionPerformed(CommandEvent event) {
   if (dialog == null) {
     dialog =
         new ReprojectionDialog(
             false, "Reprojection", event.getCommand().getHelpId(), getAppContext());
   }
   dialog.show();
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
0
 @Override
 public void updateState(CommandEvent event) {
   final ProductNode node = VisatApp.getApp().getSelectedProductNode();
   event.getCommand().setEnabled(node instanceof Band);
 }