public void actionPerformed(ActionEvent event) { OMGraphicList list = getList(); if (list != null) { EsriShapeExport ese = new EsriShapeExport(list, getProjection(), null); ese.export(); } else { fireRequestMessage("There's nothing on the map for this layer to save."); }
public void actionPerformed(ActionEvent event) { OMGraphicList list = getList(); if (list != null) { EsriShapeExport ese = new EsriShapeExport(list, getProjection(), null); ese.export(); } else { fireRequestMessage("There's nothing on the map for this layer to save.");
    public Component getGUI() {        JPanel box = PaletteHelper.createVerticalPanel("Save Layer Graphics");        box.setLayout(new java.awt.GridLayout(0, 1));        JButton button = new JButton("Save As Shape File");        button.addActionListener(new ActionListener() {                public void actionPerformed(ActionEvent event) {                    OMGraphicList list = getList();                    if (list != null) {                        EsriShapeExport ese = new EsriShapeExport(list, getProjection(), null);                        ese.export();                    } else {                        fireRequestMessage("There's nothing on the map for this layer to save.");                    }                }            });        box.add(button);        return box;    }