Package org.locationtech.udig.style.sld.editor

Examples of org.locationtech.udig.style.sld.editor.StyleEditorDialog


    public void perform() {
        Layer selectedLayer = getSelectedLayer();
        original = selectedLayer.getStyleBlackboard();
        EditorPageManager manager = EditorPageManager.loadManager(PrintingPlugin.getDefault(), selectedLayer );
        Shell parentShell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
        StyleEditorDialog dialog = StyleEditorDialog.createDialogOn(parentShell, null, selectedLayer, manager);
        dialog.setBlockOnOpen(true);
        int returnCode = dialog.open();
       
        if( returnCode!=Window.OK ){
            selectedLayer.setStyleBlackboard(original);
            original = null;
        }
View Full Code Here


            style = oldStyle;
            setStyle(oldStyle);
            layer.revertAll();
            layer.apply();
           
            StyleEditorDialog dialog = (StyleEditorDialog) getContainer();
            dialog.getCurrentPage().refresh();
            return;
        }
       
        newStyle.setName(layer.getName());
View Full Code Here

            style = oldStyleCopy;
            setStyle(oldStyleCopy);
            layer.revertAll();
            layer.apply();
           
            StyleEditorDialog dialog = (StyleEditorDialog) getContainer();
            dialog.getCurrentPage().refresh();
            return;
        }
       
        newStyle.setName(layer.getName());
View Full Code Here

            style = oldStyle;
            setStyle(oldStyle);
            layer.revertAll();
            layer.apply();
           
            StyleEditorDialog dialog = (StyleEditorDialog) getContainer();
            dialog.getCurrentPage().refresh();
            return;
        }
       
        newStyle.setName(layer.getName());
View Full Code Here

TOP

Related Classes of org.locationtech.udig.style.sld.editor.StyleEditorDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.