Package org.eclipse.sapphire.samples.gallery

Examples of org.eclipse.sapphire.samples.gallery.IValuePropertyActionsGallery


                refreshActionState();
            }
        };
       
        final Element element = getModelElement();
        final IValuePropertyActionsGallery gallery = element.nearest( IValuePropertyActionsGallery.class );
        final String propertyName = property().name();
       
        gallery.attach( listener, "Entities/*" );
        element.attach( listener, propertyName );
       
        refreshActionState();
       
        attach
        (
            new FilteredListener<DisposeEvent>()
            {
                @Override
                protected void handleTypedEvent( final DisposeEvent event )
                {
                    gallery.detach( listener, "Entities/*" );
                    element.detach( listener, propertyName );
                }
            }
        );
    }
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.samples.gallery.IValuePropertyActionsGallery

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.