@Override public IPath getProjectRelativePath() { return this.sourceFolder.getProjectRelativePath(); }
@Override public IPath getProjectRelativePath() { return this.binaryFolder.getProjectRelativePath(); }
boolean isSourceFolderEmpty(IContainer sourceFolder) { String sourceFolderName = sourceFolder.getProjectRelativePath().addTrailingSeparator().toString(); Object[] table = this.typeLocators.valueTable; for (int i = 0, l = table.length; i < l; i++) if (table[i] != null && ((String) table[i]).startsWith(sourceFolderName)) return false; return true; }
boolean isSourceFolderEmpty(IContainer sourceFolder) { String sourceFolderName = sourceFolder.getProjectRelativePath().addTrailingSeparator().toString(); Object[] table = this.typeLocators.valueTable; for (int i = 0, l = table.length; i < l; i++) if (table[i] != null && ((String) table[i]).startsWith(sourceFolderName)) return false; return true; }
boolean isSourceFolderEmpty(IContainer sourceFolder) { String sourceFolderName = sourceFolder.getProjectRelativePath().addTrailingSeparator().toString(); Object[] table = this.typeLocators.valueTable; for (int i = 0, l = table.length; i < l; i++) if (table[i] != null && ((String) table[i]).startsWith(sourceFolderName)) return false; return true; }
boolean isSourceFolderEmpty(IContainer sourceFolder) { String sourceFolderName = sourceFolder.getProjectRelativePath().addTrailingSeparator().toString(); Object[] table = this.typeLocators.valueTable; for (int i = 0, l = table.length; i < l; i++) if (table[i] != null && ((String) table[i]).startsWith(sourceFolderName)) return false; return true; }
boolean isSourceFolderEmpty(IContainer sourceFolder) { String sourceFolderName = sourceFolder.getProjectRelativePath().addTrailingSeparator().toString(); Object[] table = this.typeLocators.valueTable; for (int i = 0, l = table.length; i < l; i++) if (table[i] != null && ((String) table[i]).startsWith(sourceFolderName)) return false; return true; }
@Override protected String getNewName(Object destination, Object element) { if (destination instanceof IContainer && element instanceof IResource) { StringBuilder buffer = new StringBuilder(); buffer.append(((IContainer) destination).getProjectRelativePath().toString()); if (buffer.length() > 0) buffer.append('/'); return buffer.append(((IResource) element).getName()).toString(); } return super.getNewName(destination, element); }
public static String getContainer(IProject project, IContainer container) { return (project == container.getProject() ? container.getProjectRelativePath() : container.getFullPath()).toString(); }
private String getPath(IResource resource) { final StringBuffer buffer= new StringBuffer(resource.getProject().getName()); final String path= resource.getParent().getProjectRelativePath().toString(); if (path.length() > 0) { buffer.append('/'); buffer.append(path); } return buffer.toString(); } }
private String getPathLabel(IResource resource) { final StringBuffer buffer= new StringBuffer(resource.getProject().getName()); final String path= resource.getParent().getProjectRelativePath().toString(); if (path.length() > 0) { buffer.append('/'); buffer.append(path); } return buffer.toString(); }
public static String getContainer(IProject project, IContainer container) { return (project == container.getProject() ? container.getProjectRelativePath() : container.getFullPath()).toString(); } }
protected void doChangeControlPressed() { IContainer container= chooseOutputLocation(); if (container != null) { fContainerDialogField.setText(container.getProjectRelativePath().toString()); } }
protected void doChangeControlPressed() { IContainer container= chooseOutputLocation(); if (container != null) { fContainerDialogField.setText(container.getProjectRelativePath().toString()); } }
ClasspathDirectory(IContainer binaryFolder, boolean isOutputFolder, AccessRuleSet accessRuleSet) { this.binaryFolder = binaryFolder; this.isOutputFolder = isOutputFolder || binaryFolder.getProjectRelativePath().isEmpty(); // if binaryFolder == project, then treat it as an outputFolder this.directoryCache = new SimpleLookupTable(5); this.accessRuleSet = accessRuleSet; }
ClasspathDirectory(IContainer binaryFolder, boolean isOutputFolder, AccessRuleSet accessRuleSet, IPath externalAnnotationPath, boolean isOnModulePath) { this.binaryFolder = binaryFolder; this.isOutputFolder = isOutputFolder || binaryFolder.getProjectRelativePath().isEmpty(); // if binaryFolder == project, then treat it as an outputFolder this.directoryCache = new SimpleLookupTable(5); this.accessRuleSet = accessRuleSet; if (externalAnnotationPath != null) this.externalAnnotationPath = externalAnnotationPath.toOSString(); this.isOnModulePath = isOnModulePath; }
ClasspathDirectory(IContainer binaryFolder, boolean isOutputFolder, AccessRuleSet accessRuleSet, IPath externalAnnotationPath) { this.binaryFolder = binaryFolder; this.isOutputFolder = isOutputFolder || binaryFolder.getProjectRelativePath().isEmpty(); // if binaryFolder == project, then treat it as an outputFolder this.directoryCache = new SimpleLookupTable(5); this.accessRuleSet = accessRuleSet; if (externalAnnotationPath != null) this.externalAnnotationPath = externalAnnotationPath.toOSString(); }
ClasspathDirectory(IContainer binaryFolder, boolean isOutputFolder, AccessRuleSet accessRuleSet, IPath externalAnnotationPath, boolean isOnModulePath) { this.binaryFolder = binaryFolder; this.isOutputFolder = isOutputFolder || binaryFolder.getProjectRelativePath().isEmpty(); // if binaryFolder == project, then treat it as an outputFolder this.directoryCache = new SimpleLookupTable(5); this.accessRuleSet = accessRuleSet; if (externalAnnotationPath != null) this.externalAnnotationPath = externalAnnotationPath.toOSString(); this.isOnModulePath = isOnModulePath; }
/** * Constructor for NestedJARLoadStrategyImpl. */ public ConnectorComponentNestedJARArchiveLoadAdapter(List<IFile> iFiles, IContainer sourceContainer, IFolder javaOutputFolder) { super(); this.iFiles = iFiles; this.sourceContainer = sourceContainer; sourceSegmentCount = sourceContainer.getProjectRelativePath().segmentCount(); outputSegmentCount = javaOutputFolder.getProjectRelativePath().segmentCount(); }
private String getWebContentFolderName() { String projName = (String)getProperty(FACET_PROJECT_NAME); IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projName); if (project.exists()){ IPath webContentPath = ComponentCore.createComponent(project).getRootFolder() .getUnderlyingFolder().getProjectRelativePath(); return webContentPath.toString(); } IDataModel projModel = (IDataModel)getProperty(MASTER_PROJECT_DM); FacetDataModelMap dmMap = (FacetDataModelMap)projModel.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP); IDataModel webFacet = dmMap.getFacetDataModel("jst.web"); //$NON-NLS-1$ return webFacet.getStringProperty(IJ2EEModuleFacetInstallDataModelProperties.CONFIG_FOLDER ); }