Examples of lastSegment()


Examples of org.eclipse.core.runtime.Path.lastSegment()

        }
        if (filePath != null) {
            final IPath path = new Path(filePath);
            IFileStore fileStore = EFS.getLocalFileSystem().getStore(
                    path.removeLastSegments(1));
            fileStore = fileStore.getChild(path.lastSegment());
            final IFileInfo fetchInfo = fileStore.fetchInfo();
            if (!fetchInfo.isDirectory() && fetchInfo.exists()) {
                if (element instanceof IErlModule
                        && element.getParent() instanceof IErlExternal) {
                    return new ErlangExternalEditorInput(fileStore, (IErlModule) element);
View Full Code Here

Examples of org.eclipse.emf.common.util.URI.lastSegment()

                            "");
                    for (final Iterator iterator = this.moduleSearchPaths.iterator(); iterator.hasNext();)
                    {
                        final String searchPath = (String)iterator.next();
                        final URI fileURI = EMFRepositoryFacadeUtils.createUri(ResourceUtils.normalizePath(searchPath));
                        if (fileURI.lastSegment().equals(resourceName))
                        {
                            AndroMDALogger.info("referenced model --> '" + fileURI + "'");
                            normalizedUri = fileURI;
                            this.normalizedUris.put(
                                uri,
View Full Code Here

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

Examples of org.exist.xmldb.XmldbURI.lastSegment()

        final boolean isGroup = uri.endsWith(SecurityManager.GROUPS_COLLECTION_URI);
   
        if(isAccount || isGroup) {
            uri = uri.removeLastSegment();

            final String realmId = uri.lastSegment().toString();
     
            final AbstractRealm realm = (AbstractRealm)findRealmForRealmId(realmId);
            final Configuration conf = Configurator.parse(document);

            Integer id = -1;
View Full Code Here

Examples of org.nuxeo.common.utils.Path.lastSegment()

            SocialWorkspaceContainerDescriptor socialWorkspaceContainer = socialWorkspaceService.getSocialWorkspaceContainerDescriptor();
            DocumentRef docRef = new PathRef(socialWorkspaceContainer.getPath());
            if (!session.exists(docRef)) {
                Path path = new Path(socialWorkspaceContainer.getPath());
                String parentPath = path.removeLastSegments(1).toString();
                String name = path.lastSegment();

                DocumentModel container = session.createDocumentModel(
                        parentPath, name, SOCIAL_WORKSPACE_CONTAINER_TYPE);
                container.setPropertyValue(DC_TITLE,
                        socialWorkspaceContainer.getTitle());
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.