Package org.eclipse.sapphire.modeling

Examples of org.eclipse.sapphire.modeling.Path.lastSegment()


        final Path path = (Path) value.content();
       
        if( path != null && path.segmentCount() > 1 )
        {
            dialog.setFilterPath( path.removeLastSegments( 1 ).toOSString() );
            dialog.setFileName( path.lastSegment() );
        }
       
        final List<String> extensions;
       
        if( this.fileExtensionService == null )
View Full Code Here


        {
            final Path path = context( Value.of( Path.class ) ).content();
           
            if( path != null )
            {
                final String lastSegment = path.lastSegment();
               
                if( lastSegment != null && ! lastSegment.equals( "META-INF" ) )
                {
                    return Status.createWarningStatus( invalidFolder.text() );
                }
View Full Code Here

            final Path path = (Path) value.content();
           
            if( path != null && path.segmentCount() > 1 )
            {
                dialog.setFilterPath( path.removeLastSegments( 1 ).toOSString() );
                dialog.setFileName( path.lastSegment() );
            }
            else if( roots.size() > 0 )
            {
                dialog.setFilterPath( roots.get( 0 ).toOSString() );
            }
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.