Package org.eclipse.sapphire

Examples of org.eclipse.sapphire.Property.service()


    {
        final Property property = context( Property.class );
       
        init( property.definition(), content, topics );
       
        final SortedSet<String> facts = property.service( FactsAggregationService.class ).facts();
       
        if( ! facts.isEmpty() )
        {
            if( content.length() > 0 )
            {
View Full Code Here


                {
                    return true;
                }
            }
           
            if( ! property.service( FactsAggregationService.class ).facts().isEmpty() )
            {
                return true;
            }
           
            return false;
View Full Code Here

    protected boolean check( final PropertyEditorPart part )
    {
        final Property property = part.property();
       
        if( property instanceof ElementList &&
            property.service( PossibleValuesService.class ) != null &&
            property.service( PossibleTypesService.class ).types().size() == 1 )
        {
            final SortedSet<PropertyDef> properties = property.definition().getType().properties();
           
            if( properties.size() == 1 )
View Full Code Here

    {
        final Property property = part.property();
       
        if( property instanceof ElementList &&
            property.service( PossibleValuesService.class ) != null &&
            property.service( PossibleTypesService.class ).types().size() == 1 )
        {
            final SortedSet<PropertyDef> properties = property.definition().getType().properties();
           
            if( properties.size() == 1 )
            {
View Full Code Here

        public boolean applicable( final ServiceContext context )
        {
            final Property property = context.find( Property.class );
           
            if( property != null && property.definition() instanceof ListProperty &&
                property.service( PossibleTypesService.class ).types().size() == 1 )
            {
                final ElementType memberType = property.definition().getType();
                final SortedSet<PropertyDef> properties = memberType.properties();
               
                if( properties.size() == 1 )
View Full Code Here

        this.resourceMustExist = property.definition().hasAnnotation( MustExist.class );
       
        final ValidFileSystemResourceType validResourceTypeAnnotation = property.definition().getAnnotation( ValidFileSystemResourceType.class );
        this.validResourceType = ( validResourceTypeAnnotation != null ? validResourceTypeAnnotation.value() : null );
       
        this.fileExtensionsService = property.service( FileExtensionsService.class );
       
        if( this.fileExtensionsService != null )
        {
            this.fileExtensionsService.attach
            (
View Full Code Here

    @Override
    protected void initPossibleValuesService()
    {
        final Property parent = context( Element.class ).parent();
       
        this.base = parent.service( PossibleValuesService.class );
       
        this.listener = new Listener()
        {
            @Override
            public void handle( final Event event )
View Full Code Here

           
            if( style != null && style.startsWith( "Sapphire.PropertyEditor.PopUpListField" ) )
            {
                final Property property = part.property();
               
                if( property.definition() instanceof ValueProperty && property.service( PossibleValuesService.class ) != null )
                {
                    PopUpListFieldStyle popUpListFieldPresentationStyle = null;
                   
                    if( style.equals( "Sapphire.PropertyEditor.PopUpListField" ) )
                    {
View Full Code Here

               
                if( type.properties().size() == 1 )
                {
                    final Property parent = context.find( Element.class ).parent();
                   
                    if( parent != null && parent.definition() instanceof ListProperty && parent.service( PossibleValuesService.class ) != null )
                    {
                        return true;
                    }
                }
            }
View Full Code Here

        public boolean applicable( final ServiceContext context )
        {
            final Property property = context.find( Property.class );
           
            if( property != null && property.definition() instanceof ListProperty &&
                property.service( PossibleTypesService.class ).types().size() == 1 )
            {
                final ElementType memberType = property.definition().getType();
                final SortedSet<PropertyDef> properties = memberType.properties();
               
                if( properties.size() == 1 )
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.