Example usage for org.eclipse.jdt.internal.core JarEntryResource getFullPath

List of usage examples for org.eclipse.jdt.internal.core JarEntryResource getFullPath

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.core JarEntryResource getFullPath.

Prototype

@Override
    public IPath getFullPath() 

Source Link

Usage

From source file:org.eclipse.che.plugin.java.server.JavaNavigation.java

License:Open Source License

private JarEntry getJarEntryResource(JarEntryResource resource) {
    JarEntry entry = DtoFactory.getInstance().createDto(JarEntry.class);
    if (resource instanceof JarEntryDirectory) {
        entry.setType(JarEntryType.FOLDER);
    }//from ww w  . jav a  2  s  .  c o  m
    if (resource instanceof JarEntryFile) {
        entry.setType(JarEntryType.FILE);
    }
    entry.setName(resource.getName());
    entry.setPath(resource.getFullPath().toOSString());
    return entry;
}