Package org.locationtech.udig.project.internal

Examples of org.locationtech.udig.project.internal.ContextModel


    /**
     * @see org.locationtech.udig.project.internal.Layer#getMap()
     */
    public org.locationtech.udig.project.internal.Map getMapInternal() {
        ContextModel context = getContextModel();
        if (context == null)
            return null;
        return context.getMap();
    }
View Full Code Here


     * @generated
     */
    @SuppressWarnings("deprecation")
    public NotificationChain basicSetContextModel(ContextModel newContextModel,
            NotificationChain msgs) {
        ContextModel oldContextModel = contextModel;
        contextModel = newContextModel;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
                    ProjectPackage.MAP__CONTEXT_MODEL, oldContextModel, newContextModel);
            if (msgs == null)
View Full Code Here

     */
    @Override
    protected T doSwitch(int classifierID, EObject theEObject) {
        switch (classifierID) {
        case ProjectPackage.CONTEXT_MODEL: {
            ContextModel contextModel = (ContextModel) theEObject;
            T result = caseContextModel(contextModel);
            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
View Full Code Here

            if (notifier instanceof ContextModel) {
                if (notification.getFeatureID(ContextModel.class) != ProjectPackage.CONTEXT_MODEL__LAYERS)
                    return;

                // we need to tell the map item provider that the layers have changed.
                ContextModel model = (ContextModel) notifier;
                EList adapters = model.getMap().eAdapters();
                for (Object object : adapters) {
                    if (object instanceof MapItemProvider) {
                        MapItemProvider mapItemProvider = ((MapItemProvider) object);
                        //                        mapItemProvider.updateChildList(notification);
                        mapItemProvider.getChildFetcher().notifyChanged();
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.internal.ContextModel

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.