congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
AppContext.getApplicationName
Code IndexAdd Tabnine to your IDE (free)

How to use
getApplicationName
method
in
org.esa.beam.framework.ui.AppContext

Best Java code snippets using org.esa.beam.framework.ui.AppContext.getApplicationName (Showing top 6 results out of 315)

origin: bcdev/beam

private void showOpenInAppInfo() {
  final String message = MessageFormat.format(
      "The target product has successfully been created and opened in {0}.\n\n" +
      "Actual processing of source to target data will be performed only on demand,\n" +
      "for example, if the target product is saved or an image view is opened.",
      appContext.getApplicationName()
  );
  showSuppressibleInformationDialog(message, "openInAppInfo");
}
origin: bcdev/beam

private void updateExpressionComponents() {
  final boolean useExpressionSelected = useExpressionCheckBox.isSelected();
  editExpressionButton.setEnabled(useExpressionSelected && activeProduct != null);
  String toolTip = null;
  if (activeProduct == null) {
    toolTip = String.format("Editor can only be used with a product opened in %s.",
                appContext.getApplicationName());
  }
  editExpressionButton.setToolTipText(toolTip);
  expressionArea.setEnabled(useExpressionSelected);
  expressionNoteLabel.setEnabled(useExpressionSelected);
  expressionAsFilterButton.setEnabled(useExpressionSelected);
  exportExpressionResultButton.setEnabled(useExpressionSelected);
}
origin: bcdev/beam

private void showSaveAndOpenInAppInfo(long saveTime) {
  File productFile = getTargetProductSelector().getModel().getProductFile();
  final String message = MessageFormat.format(
      "The target product has been successfully written to\n" +
      "{0}\n" +
      "and has been opened in {1}.\n" +
      "Total time spend for processing: {2}\n",
      formatFile(productFile),
      appContext.getApplicationName(),
      formatDuration(saveTime)
  );
  showSuppressibleInformationDialog(message, "saveAndOpenInAppInfo");
}
origin: bcdev/beam

private void updateRunButton() {
  AbstractButton button = getButton(ID_APPLY);
  boolean save = targetProductSelector.getModel().isSaveToFileSelected();
  boolean open = targetProductSelector.getModel().isOpenInAppSelected();
  String toolTipText = "";
  boolean enabled = true;
  if (save && open) {
    toolTipText = "Save target product and open it in " + getAppContext().getApplicationName();
  } else if (save) {
    toolTipText = "Save target product";
  } else if (open) {
    toolTipText = "Open target product in " + getAppContext().getApplicationName();
  } else {
    enabled = false;
  }
  button.setToolTipText(toolTipText);
  button.setEnabled(enabled);
}
origin: bcdev/beam

    "A product with the name ''{0}'' is already opened in {1}.\n\n" +
    "Do you want to continue?",
    productName, appContext.getApplicationName()
);
final int answer = JOptionPane.showConfirmDialog(getJDialog(), message,
origin: bcdev/beam

protected SingleTargetProductDialog(AppContext appContext, String title, int buttonMask, String helpID, TargetProductSelectorModel model, boolean alwaysWriteOutput) {
  super(appContext.getApplicationWindow(), title, buttonMask, helpID);
  this.appContext = appContext;
  targetProductSelector = new TargetProductSelector(model, alwaysWriteOutput);
  String homeDirPath = SystemUtils.getUserHomeDir().getPath();
  String saveDir = appContext.getPreferences().getPropertyString(BasicApp.PROPERTY_KEY_APP_LAST_SAVE_DIR,
                                  homeDirPath);
  targetProductSelector.getModel().setProductDir(new File(saveDir));
  if (!alwaysWriteOutput) {
    targetProductSelector.getOpenInAppCheckBox().setText("Open in " + appContext.getApplicationName());
  }
  targetProductSelector.getModel().getValueContainer().addPropertyChangeListener(new PropertyChangeListener() {
    @Override
    public void propertyChange(PropertyChangeEvent evt) {
      if (evt.getPropertyName().equals("saveToFileSelected") ||
        evt.getPropertyName().equals("openInAppSelected")) {
        updateRunButton();
      }
    }
  });
  AbstractButton button = getButton(ID_APPLY);
  button.setText("Run");
  button.setMnemonic('R');
  updateRunButton();
}
org.esa.beam.framework.uiAppContextgetApplicationName

Popular methods of AppContext

  • getApplicationWindow
  • getPreferences
  • handleError
  • getSelectedProduct
  • getProductManager
  • getApplicationPage
  • getSelectedProductSceneView

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • putExtra (Intent)
  • setScale (BigDecimal)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now