private void enableHelp(Component menu, Command command) { HelpSys.enableHelp(menu, command.getHelpId()); }
@Override public void actionPerformed(final CommandEvent event) { VisatApp.getApp().showPreferencesDialog(event.getCommand().getHelpId()); }
@Override public void actionPerformed(final CommandEvent event) { openBandArithmeticDialog(VisatApp.getApp(), event.getCommand().getHelpId()); }
@Override public void actionPerformed(CommandEvent event) { final OperatorMetadata opMetadata = MerisRadiometryCorrectionOp.class.getAnnotation(OperatorMetadata.class); final RadiometryDialog operatorDialog = new RadiometryDialog(opMetadata.alias(), getAppContext(), "MERIS L1b Radiometric Correction", event.getCommand().getHelpId()); operatorDialog.getJDialog().pack(); operatorDialog.show(); }
@Override public void actionPerformed(CommandEvent event) { final OperatorMetadata opMetadata = SimpleExampleOp.class.getAnnotation(OperatorMetadata.class); final SimpleExampleDialog operatorDialog = new SimpleExampleDialog(opMetadata.alias(), getAppContext(), "Simple Example of a Simple Processor", event.getCommand().getHelpId()); operatorDialog.getJDialog().pack(); operatorDialog.show(); }
@Override public void actionPerformed(CommandEvent event) { if (dialog == null) { dialog = new BinningDialog(getAppContext(), "Binning", event.getCommand().getHelpId()); } dialog.show(); }
@Override public void actionPerformed(CommandEvent event) { if (dialog == null) { dialog = new MosaicDialog("Mosaic", event.getCommand().getHelpId(), getAppContext()); } dialog.show(); }
@Override public void actionPerformed(CommandEvent event) { if (dialog == null) { dialog = new ReprojectionDialog(true, "Orthorectification", event.getCommand().getHelpId(), getAppContext()); } dialog.show(); }
@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 actionPerformed(CommandEvent event) { final String operatorName = AatsrSstOp.Spi.class.getName(); final AppContext appContext = getAppContext(); final String title = "(A)ATSR SST Processor"; final String helpID = event.getCommand().getHelpId(); final DefaultSingleTargetProductDialog dialog = new DefaultSingleTargetProductDialog(operatorName, appContext, title, helpID); final BindingContext bindingContext = dialog.getBindingContext(); bindingContext.bindEnabledState("dual", true, "nadir", true); bindingContext.bindEnabledState("dualCoefficientsFile", true, "dual", true); bindingContext.bindEnabledState("dualMaskExpression", true, "dual", true); bindingContext.bindEnabledState("nadir", true, "dual", true); bindingContext.bindEnabledState("nadirCoefficientsFile", true, "nadir", true); bindingContext.bindEnabledState("nadirMaskExpression", true, "nadir", true); dialog.setTargetProductNameSuffix("_sst"); dialog.getJDialog().pack(); dialog.show(); } }
final AppContext appContext = getAppContext(); final String title = "FLH/MCI Processor"; final String helpID = event.getCommand().getHelpId();
msgText, event.getCommand().getHelpId());