Package org.locationtech.udig.ui.operations

Examples of org.locationtech.udig.ui.operations.LazyOpFilter


            defaultCursorID = ModalTool.DEFAULT_CURSOR;
          }
        }
       
        OpFilter parseEnablement = EnablementUtil.parseEnablement( extension.getNamespaceIdentifier()+"."+definition.getName(), definition.getChildren("enablement")); //$NON-NLS-1$ //$NON-NLS-2$;
        enablement = new LazyOpFilter(this, parseEnablement);
        operationCategories = parseOperationCategories(definition);
       
        String bool = definition.getAttribute("hasCustomControl"); //$NON-NLS-1$
        hasControl = ((bool != null) && bool.equalsIgnoreCase("true")) ? true : false; //$NON-NLS-1$
        bool = definition.getAttribute("onToolbar"); //$NON-NLS-1$
View Full Code Here


                // JG: I don't trust asserts in production code!
                // assert enablesFor instanceof LazyOpFilter;
               
                if( !(enablesFor instanceof LazyOpFilter) ){
                    enablesFor = new LazyOpFilter(item, enablesFor);
                }
               
                boolean accept = enablesFor.accept(selectedLayer);
                item.setEnabled(accept);
            }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.ui.operations.LazyOpFilter

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.