Examples of FileExtensionsService


Examples of org.eclipse.sapphire.services.FileExtensionsService

            {
                final String extension = fileName.extension();
               
                if( extension != null )
                {
                    final FileExtensionsService fileExtensionsService = value.service( FileExtensionsService.class );
                   
                    if( fileExtensionsService != null )
                    {
                        final List<String> extensions = fileExtensionsService.extensions();
                        final int count = extensions.size();
                       
                        if( count > 0 )
                        {
                            boolean match = false;
View Full Code Here

Examples of org.eclipse.sapphire.services.FileExtensionsService

            if( validFileSystemResourceTypeAnnotation.value() == FileSystemResourceType.FOLDER )
            {
                treeViewer.addFilter( new ContainersOnlyViewerFilter() );
            }
           
            final FileExtensionsService fileExtensionsService = value.service( FileExtensionsService.class );
           
            if( fileExtensionsService != null )
            {
                final ExtensionBasedViewerFilter filter = new ExtensionBasedViewerFilter( fileExtensionsService.extensions() );
               
                treeViewer.addFilter( filter );
               
                final Listener listener = new Listener()
                {
                    @Override
                    public void handle( final Event event )
                    {
                        filter.change( fileExtensionsService.extensions() );
                        treeViewer.refresh();
                    }
                };
               
                fileExtensionsService.attach( listener );
               
                tree.addDisposeListener
                (
                    new DisposeListener()
                    {
                        public void widgetDisposed( final DisposeEvent event )
                        {
                            fileExtensionsService.detach( listener );
                        }
                    }
                );
            }
        }
View Full Code Here

Examples of org.eclipse.sapphire.services.FileExtensionsService

    }

    @Override
    protected void facts( final SortedSet<String> facts )
    {
        final FileExtensionsService service = context( Property.class ).service( FileExtensionsService.class );
        final List<String> extensions = service.extensions();
        final int count = extensions.size();
       
        if( count > 0 )
        {
            if( count == 1 )
View Full Code Here

Examples of org.eclipse.sapphire.services.FileExtensionsService

                    }
                }
               
                if( segments == 1 )
                {
                    final FileExtensionsService fileExtensionsService = context( Property.class ).service( FileExtensionsService.class );
                   
                    if( fileExtensionsService != null )
                    {
                        final List<String> extensions = fileExtensionsService.extensions();
                       
                        if( ! extensions.isEmpty() )
                        {
                            final String extension = extensions.get( 0 );
                            normalized = normalized + "." + extension.toLowerCase();
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.