public boolean execute(final PlugInContext context) throws Exception {
   reportNothingToUndoYet(context);
   // Don't add GeometryInfoFrame because the HTML will probably be too
   // much for the editor pane (too many features). [Bob Boseko]
   final ViewAttributesFrame frame = new ViewAttributesFrame(context.getSelectedLayer(0), context);
   context.getWorkbenchFrame().addInternalFrame(frame);
   return true;
 }
Esempio n. 2
0
  private void initDialog(PlugInContext context) {
    dialog =
        new MultiInputDialog(
            context.getWorkbenchFrame(),
            I18N.get("ui.plugin.analysis.ConvexHullPlugIn.Convex-Hull-on-Layer"),
            true);

    // dialog.setSideBarImage(IconLoader.icon("Overlay.gif"));
    dialog.setSideBarDescription(
        I18N.get(
            "ui.plugin.analysis.ConvexHullPlugIn.Creates-a-new-layer-containing-the-convex-hull-of-all-the-features-in-the-source-layer"));
    String fieldName = LAYER;
    JComboBox addLayerComboBox =
        dialog.addLayerComboBox(
            fieldName, context.getCandidateLayer(0), null, context.getLayerManager());
    GUIUtil.centreOnWindow(dialog);
  }