Package org.eclipse.sapphire.modeling

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


            {
                final Path absolutePath = property.service( RelativePathService.class ).convertToAbsolute( relativePath );
               
                if( absolutePath != null )
                {
                    final File absoluteFile = absolutePath.toFile();
                   
                    if( absoluteFile.exists() && absoluteFile.isFile() )
                    {
                        return true;
                    }
View Full Code Here


        {
            final Path absolutePath = property.service( RelativePathService.class ).convertToAbsolute( relativePath );
           
            if( absolutePath != null )
            {
                final File file = absolutePath.toFile();
               
                if( file.exists() && file.isFile() )
                {
                    final IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
                   
View Full Code Here

            {
                Object initialSelection = null;
               
                if( contentProvider instanceof WorkspaceContentProvider )
                {
                    final URI uri = currentPathAbsolute.toFile().toURI();
                    final IWorkspaceRoot wsroot = ResourcesPlugin.getWorkspace().getRoot();
                   
                    final IFile[] files = wsroot.findFilesForLocationURI( uri );
                   
                    if( files.length > 0 )
View Full Code Here

                final String message = couldNotResolveRelative.format( path.toString() );
                return Status.createErrorStatus( message );
            }
            else
            {
                final File absolutePathFile = absolutePath.toFile();
               
                if( absolutePathFile.exists() )
                {
                    if( this.validResourceType == FileSystemResourceType.FILE )
                    {
View Full Code Here

        final Value<?> value = context( Value.class );
        final Path path = (Path) value.content( false );
       
        if( path != null )
        {
            final File f = path.toFile();
           
            if( f.exists() )
            {
                if( this.validResourceType == FileSystemResourceType.FILE )
                {
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.