Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IPath.startsWith()


        if (bundle != null) {
            try {
                URL url = FileLocator.resolve(bundle.getEntry("/")); //$NON-NLS-1$
                url = FileLocator.toFileURL(url);
                String path = url.getFile();
                if (path.startsWith("file:")) { //$NON-NLS-1$
                    path = path.substring(5);
                }

                path = new File(path).getAbsolutePath();
View Full Code Here


                        resource = (IResource) selection.getFirstElement();
                    }
                   
                    String path = resource.getFullPath().makeRelativeTo( root.getFullPath() ).toString();
                   
                    if( path.startsWith( "/" ) && path.length() > 1 )
                    {
                        path = path.substring( 1 );
                    }
                   
                    textField.setText( path );
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.