Package org.eclipse.sapphire

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


                {
                    element = element.parent().element();
                }
                else if( segment instanceof ModelPath.PropertySegment )
                {
                    final Property property = element.property( ( (ModelPath.PropertySegment) segment ).getPropertyName() );
                   
                    if( property != null && property.definition() instanceof ImpliedElementProperty )
                    {
                        element = ( (ElementHandle<?>) property ).content();
                    }
View Full Code Here


                try
                {
                    for( String str : this.input )
                    {
                        final Element element = list.insert();
                        element.property( SlushBucketPropertyEditorPresentation.this.memberProperty ).write( str, true );
                        elements.add( element );
                    }
                }
                finally
                {
View Full Code Here

    @Override
    protected Status compute()
    {
        final Element element = context( Element.class );
       
        if( element.property( context( ValueProperty.class ) ).text() != null )
        {
            final IProject project = element.adapt( IProject.class );
           
            if( project == null )
            {
View Full Code Here

                                    refresh();
                                }
                            };
                           
                            state.attach( this.listener, MasterDetailsEditorPageState.PROP_ATTRIBUTES.name() + "/*" );
                            element.property( Item.PROP_MANUFACTURER ).attach( this.listener );
                        }
   
                        @Override
                        protected Object evaluate()
                        {
View Full Code Here

                            {
                                state.detach( this.listener, MasterDetailsEditorPageState.PROP_ATTRIBUTES.name() + "/*" );
                               
                                if( ! element.disposed() )
                                {
                                    element.property( Item.PROP_MANUFACTURER ).detach( this.listener );
                                }
                               
                                this.listener = null;
                            }
                        }
View Full Code Here

            {
                refreshEnablementState();
            }
        };
       
        element.property( IAttendee.PROP_IN_CONTACT_REPOSITORY ).attach( listener );
       
        refreshEnablementState();
       
        attach
        (
View Full Code Here

            new FilteredListener<DisposeEvent>()
            {
                @Override
                protected void handleTypedEvent( final DisposeEvent event )
                {
                    element.property( IAttendee.PROP_IN_CONTACT_REPOSITORY ).detach( listener );
                }
            }
        );
    }
   
View Full Code Here

       
        ColumnHandler handler = null;
       
        for( final ColumnHandler h : this.columnHandlers )
        {
            if( element.property( h.property() ) == property )
            {
                handler = h;
                break;
            }
        }
View Full Code Here

                @Override
                public String overlay()
                {
                    ProxyResource resource = binding.getResource();
                    Element element = resource.getModelElement();
                    return element == null ? null : element.property( resource.getValueProperty() ).getDefaultText();
                }
            };
        }
        else
        {
View Full Code Here

                @Override
                public String overlay()
                {
                    ProxyResource resource = binding.getResource();
                    Element element = resource.getModelElement();
                    return element == null ? null : element.property( resource.getValueProperty() ).getDefaultText();
                }
            };
        }
       
        TextOverlayPainter.install( binding.getText(), textOverlayPainterController );
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.