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