Package org.eclipse.sapphire

Examples of org.eclipse.sapphire.Element.attach()


       
        final Element element = getModelElement();
       
        for( String dependency : this.dependencies )
        {
            element.attach( listener, dependency );
        }
       
        refreshEnablementState();
       
        attach
View Full Code Here


            {
                refreshVisibility();
            }
        };
       
        element.attach( listener, ModelPath.ALL_DESCENDENTS );

        refreshVisibility();
       
        attach
        (
View Full Code Here

                                    refresh();
                                }
                            };
                        }
                       
                        listParentElement.attach( this.listener, listenerModelPath );
                    }
                }
                else if( collection instanceof Object[] )
                {
                    for( Object item : (Object[]) collection )
View Full Code Here

        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
        (
View Full Code Here

            }
        };
       
        final String path = property().name() + "/*";
       
        element.attach( listener, path );
       
        refreshEnabledState();
        refreshCheckedState();
       
        attach
View Full Code Here

            }
        };
       
        final String path = property().name();
       
        element.attach( listener, path );
       
        refreshEnabledState();
        refreshCheckedState();
       
        attach
View Full Code Here

            }
        };
       
        try
        {
            element.attach( this.listener, this.path );
        }
        catch( IllegalArgumentException e )
        {
            // Ignore exceptions caused by an invalid model path. This can happen when the element is instantiated
            // outside its typical model context. This service is expected to gracefully degrade by returning an
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.