Package org.eclipse.sapphire

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


            final Property property = property();
            final Path relativePath = (Path) ( (Value<?>) property ).content();
           
            if( relativePath != null )
            {
                final Path absolutePath = property.service( RelativePathService.class ).convertToAbsolute( relativePath );
               
                if( absolutePath != null )
                {
                    final File absoluteFile = absolutePath.toFile();
                   
View Full Code Here


        final Property property = property();
        final Path relativePath = (Path) ( (Value<?>) property ).content();
       
        if( relativePath != null )
        {
            final Path absolutePath = property.service( RelativePathService.class ).convertToAbsolute( relativePath );
           
            if( absolutePath != null )
            {
                final File file = absolutePath.toFile();
               
View Full Code Here

        final String staticFileExtensions = def.getParam( PARAM_EXTENSIONS );
       
        if( staticFileExtensions == null )
        {
            this.fileExtensionService = property.service( FileExtensionsService.class );
           
            if( this.fileExtensionService == null )
            {
                this.staticFileExtensionsList = Collections.emptyList();
            }
View Full Code Here

{
    @Override
    protected boolean evaluate( final PropertyEditorPart part )
    {
        final Property property = part.property();
        return ( property.definition() instanceof ValueProperty && Path.class.isAssignableFrom( property.definition().getTypeClass() ) && property.service( RelativePathService.class ) != null );
    }

}
View Full Code Here

    {
        super.init();
       
        final Property property = context( Property.class );
       
        this.possibleValuesService = property.service( PossibleValuesService.class );
       
        if( this.possibleValuesService == null )
        {
            throw new IllegalStateException();
        }
View Full Code Here

    {
        @Override
        public boolean applicable( final ServiceContext context )
        {
            final Property property = context.find( Property.class );
            return ( property != null && property.service( PossibleValuesService.class ) != null );
        }
    }

}
View Full Code Here

    {
        @Override
        public boolean applicable( final ServiceContext context )
        {
            final Property property = context.find( Property.class );
            return ( property != null && Path.class.isAssignableFrom( property.definition().getTypeClass() ) && property.service( RelativePathService.class ) != null );
        }
    }
   
}
View Full Code Here

    {
        @Override
        public boolean applicable( final ServiceContext context )
        {
            final Property property = context.find( Property.class );
            return ( property != null && property.service( FileExtensionsService.class ) != null );
        }
    }
   
}
View Full Code Here

    {
        @Override
        public boolean applicable( final ServiceContext context )
        {
            final Property property = context.find( Property.class );
            return ( property != null && property.service( InitialValueService.class ) != null );
        }
    }
   
}
View Full Code Here

    @Override
    protected void initValidationService()
    {
        final Property property = context( Property.class );
       
        this.referenceService = property.service( ReferenceService.class );
       
        if( this.referenceService != null )
        {
            this.referenceServiceListener = new Listener()
            {
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.