Package org.locationtech.udig.project.ui.internal.tool.display

Examples of org.locationtech.udig.project.ui.internal.tool.display.ModalToolCategory


                menuItem.dispose();
            menuItem = new MenuItem(menu, SWT.CHECK, index);
            IStructuredSelection selection = (IStructuredSelection) PlatformUI.getWorkbench()
                    .getActiveWorkbenchWindow().getSelectionService().getSelection();
            Layer layer = (Layer) selection.getFirstElement();
            ModalToolCategory modalToolCategory = category;
            if( category!=null ){
                Interaction key = Interaction.getInteraction(modalToolCategory.getId());
                boolean interaction = layer.getInteraction(key);
                menuItem.setSelection(interaction);
                menuItem.setText(modalToolCategory.getName());
            }
        }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.ui.internal.tool.display.ModalToolCategory

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.