Package org.locationtech.udig.project

Examples of org.locationtech.udig.project.Interaction


     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setTypedKey(Interaction newKey) {
        Interaction oldKey = key;
        key = newKey;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
                    ProjectPackage.INTERACTION_TO_EBOOLEAN_OBJECT_MAP_ENTRY__KEY, oldKey, key));
    }
View Full Code Here


*/
public class LayerInteractionProperty extends AbstractPropertyValue<ILayer> {

    @Override
    public boolean isTrue( ILayer layer, String text ) {
        Interaction interaction = Interaction.getInteraction(text);
        if( interaction == null ){
            return false; // unable to figure out Interaction to test
        }       
        return layer.getInteraction(interaction);
    }
View Full Code Here

            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.Interaction

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.