Package com.volantis.mcs.eclipse.builder.common

Examples of com.volantis.mcs.eclipse.builder.common.BuilderSelectionListener


                               EditorContext context) {
        super(parent, style, RESOURCE_PREFIX);
        this.context = (PolicyEditorContext)context;
        createDisplayArea();

        this.context.addSelectedVariantListener(new BuilderSelectionListener() {
            public void selectionMade(BuilderSelectionEvent event) {
                if (event.getOldSelection() != null) {
                    ((Proxy) event.getOldSelection()).removeListener(readOnlyListener);
                }
View Full Code Here


                public void readOnlyStateChanged(
                    final ReadOnlyStateChangedEvent event) {
                    readOnly = event.isReadOnly();
                }
            };
            layoutEditorContext.addSelectedVariantListener(new BuilderSelectionListener() {
                public void selectionMade(final BuilderSelectionEvent event) {
                    if (event.getOldSelection() != null) {
                        ((Proxy) event.getOldSelection()).removeListener(readOnlyListener);
                    }
View Full Code Here

    private void fireSelectedVariantChanged(BeanProxy oldVariant, BeanProxy newVariant) {
        if (!variantSelectionListeners.isEmpty()) {
            BuilderSelectionEvent event = new BuilderSelectionEvent(this, oldVariant, newVariant);
            Iterator it = variantSelectionListeners.iterator();
            while (it.hasNext()) {
                BuilderSelectionListener listener = (BuilderSelectionListener) it.next();
                listener.selectionMade(event);
            }
        }
    }
View Full Code Here

                        rowTabDetails.updateEnablement();
                        columnTabDetails.updateEnablement();
                    }
                }
            };
        layoutEditorContext.addSelectedVariantListener(new BuilderSelectionListener() {
            public void selectionMade(final BuilderSelectionEvent event) {
                if (event.getOldSelection() != null) {
                    ((Proxy) event.getOldSelection()).removeListener(readOnlyListener);
                }
View Full Code Here

        }
    };

    public ThemeDesign(ThemeEditorContext context) {
        super(context);
        context.addSelectedVariantListener(new BuilderSelectionListener() {
            public void selectionMade(BuilderSelectionEvent event) {
                registerChangeListeners((Proxy) event.getOldSelection(),
                        (Proxy) event.getSelection());
                updateDisplay();
            }
View Full Code Here

    public AssetMetadataSection(Composite parent, int style,
                                EditorContext context, Map comboDescriptors) {
        super(parent, style, RESOURCE_PREFIX);
        this.context = (PolicyEditorContext) context;
        createDisplayArea(comboDescriptors);
        this.context.addSelectedVariantListener(new BuilderSelectionListener() {
            public void selectionMade(BuilderSelectionEvent event) {
                selectedVariantChanged(event);
            }
        });
View Full Code Here

        this.editor = editor;
        this.file = file;
        loadResource(file);
        variantBuilderProxyToIFile = new HashMap();
        variantBuilderProxyToRootElement = new HashMap();
        addSelectedVariantListener(new BuilderSelectionListener() {
            public void selectionMade(BuilderSelectionEvent event) {
                selectedVariantChanged();
            }
        });
    }
View Full Code Here

                attributesAsChildren,
                labelProvider,
                menuManager,
                null);
        context.getLayoutEditorContext().addSelectedVariantListener(
            new BuilderSelectionListener() {
                public void selectionMade(BuilderSelectionEvent event) {
                    updateRootElement();
                }
            });
        assert(globalActions != null);
View Full Code Here

            }
        }

        createDisplayArea();

        this.context.addSelectedVariantListener(new BuilderSelectionListener() {
            public void selectionMade(BuilderSelectionEvent event) {
                selectedVariantChanged(event);
            }
        });
View Full Code Here

TOP

Related Classes of com.volantis.mcs.eclipse.builder.common.BuilderSelectionListener

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.