Package org.eclipse.sapphire

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


       
        InputStream stream = null;
       
        if( string != null && ! string.contains( "/" ) )
        {
            final ISapphireUiDef sdef = element.nearest( ISapphireUiDef.class );
           
            if( sdef != null )
            {
                for( IPackageReference p : sdef.getImportedPackages() )
                {
View Full Code Here


                    {
                        obj = type.cast( element );
                    }
                    else
                    {
                        obj = element.nearest( type );
                    }
                }
            }
        }
       
View Full Code Here

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

        final Element element = getModelElement();
        final String entityName = ( (Value<?>) property() ).text();
       
        if( entityName != null && ! isEntityDefined( entityName ) )
        {
            final IValuePropertyActionsGalleryEntity entity = element.nearest( IValuePropertyActionsGallery.class ).getEntities().insert();
            entity.setName( entityName );
        }
       
        return null;
    }
View Full Code Here

        if( dialog.open() != Window.CANCEL )
        {
            final String entityName = dialog.getValue();
            final Element element = getModelElement();
           
            final IValuePropertyActionsGalleryEntity entity = element.nearest( IValuePropertyActionsGallery.class ).getEntities().insert();
            entity.setName( entityName );
           
            ( (Value<?>) property() ).write( entityName );
        }
       
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.