Examples of IBoxEditAction


Examples of org.locationtech.udig.printing.ui.IBoxEditAction

    public void performRequest( Request request ) {
        EditPolicy policy = getEditPolicy(request.getType());
        if( policy instanceof PrintingEditPolicy ){
            PrintingEditPolicy editPolicy = (PrintingEditPolicy)policy;
            IBoxEditAction action = editPolicy.getAction().getBoxEditAction();
            action.init(this);
            action.perform();
            Display display = getViewer().getControl().getDisplay();
            while( !action.isDone() ){
                if( !display.readAndDispatch() ){
                    try {
                        Thread.sleep(200);
                    } catch (InterruptedException e) {
                        break;
                    }
                }
            }
            if( !action.isDone() )
                return;
           
            Command command = action.getCommand();
           
            if( command!=null && command.canExecute() ){
                getViewer().getEditDomain().getCommandStack().execute(command);
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.