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

Examples of org.locationtech.udig.project.ui.tool.IContextMenuContributionTool


     */
    public void contributeActiveModalTool( IMenuManager manager ) {
       
        Tool activeTool = getActiveTool();
        if(activeTool instanceof IContextMenuContributionTool){
            IContextMenuContributionTool contributionTool = (IContextMenuContributionTool)activeTool;
            ArrayList<IContributionItem> contributions = new ArrayList<IContributionItem>();
            contributionTool.contributeContextMenu(contributions);
           
            if(!contributions.isEmpty()){
                manager.add(new Separator());
                for( IContributionItem item : contributions ) {
                    manager.add(item);
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.ui.tool.IContextMenuContributionTool

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.