Examples of Appropriate


Examples of org.locationtech.udig.ui.filter.ViewerFactory.Appropriate

        final MenuManager menuManager = new MenuManager();
        menuManager.setRemoveAllWhenShown(true); // we are going to generate
       
        menuManager.addMenuListener( new IMenuListener() {
            public void menuAboutToShow(IMenuManager manager) {
                Appropriate current = null;
                for( ExpressionViewerFactory factory : ExpressionViewerFactory.factoryList( getInput(), getExpression() ) ){
                    int currentScore = factory.score(getInput(), getExpression() );
                    Appropriate category = Appropriate.valueOf( currentScore );
                    if( current == null ){
                        current = category;
                    }
                    else if( current != category ){
                        menuManager.add( new Separator( current.name() ));
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.