Examples of LayoutEditorContext


Examples of com.volantis.mcs.eclipse.ab.editors.layout.LayoutEditorContext

        if (odomEditorContext == null) {
            throw new IllegalArgumentException(
                    "The ODOM editor context parameter may not be null."); //$NON-NLS-1$
        }
        this.odomEditorContext = odomEditorContext;
        final LayoutEditorContext layoutEditorContext =
            ((LayoutODOMEditorContext) odomEditorContext).getLayoutEditorContext();
        final InteractionEventListenerAdapter readOnlyListener =
            new InteractionEventListenerAdapter() {
                public void readOnlyStateChanged(
                    final ReadOnlyStateChangedEvent event) {
                    if (event.isOriginator ()) {
                        mainTabDetails.updateEnablement();
                        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

Examples of com.volantis.mcs.eclipse.ab.editors.layout.LayoutEditorContext

                Iterator iterator = getSectionDetailsComposites().iterator();
                while (iterator.hasNext()) {
                    final SectionDetailsComposite sectionDetailsComposite =
                        (SectionDetailsComposite) iterator.next();
                    sectionDetailsComposite.updateDisplayArea(event);
                    final LayoutEditorContext layoutEditorContext =
                        ((LayoutODOMEditorContext) odomEditorContext).
                            getLayoutEditorContext();
                    sectionDetailsComposite.setEnabled(
                        !layoutEditorContext.isSelectedVariantReadOnly());
                }
            }
        }
View Full Code Here

Examples of com.volantis.mcs.eclipse.ab.editors.layout.LayoutEditorContext

         */
        private void updateEnablement() {
            if (getSectionDetailsComposites() != null) {
                final LayoutODOMEditorContext layoutODOMEditorContext =
                    ((LayoutODOMEditorContext) odomEditorContext);
                final LayoutEditorContext layoutEditorContext =
                    layoutODOMEditorContext.getLayoutEditorContext();
                final boolean enablement =
                    !layoutEditorContext.isSelectedVariantReadOnly();
                final Iterator iterator =
                    getSectionDetailsComposites().iterator();
                while (iterator.hasNext()) {
                    final SectionDetailsComposite sectionDetailsComposite =
                        (SectionDetailsComposite) iterator.next();
View Full Code Here

Examples of com.volantis.mcs.eclipse.ab.editors.layout.LayoutEditorContext

public class DefaultLayoutEditorContextFactory
        extends LayoutEditorContextFactory {
    // Javadoc inherited
    public LayoutEditorContext createLayoutEditorContext(
            LayoutEditor editor, IFile file) throws PolicyFileAccessException {
        return new LayoutEditorContext(editor, file);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.