/** * Returns the given type of the classpath for the project sources * (i.e., excluding tests roots). */ public ClassPath getProjectSourcesClassPath(String type) { return javaClassPathProvider.getProjectSourcesClassPath(type); }
public void initItem(Item item) { if (path != null) { item.setAdditionalProperty(ClassPathSupportCallbackImpl.PATH_IN_DEPLOYMENT, path); } }
@Override protected SourceGroup[] getExtensibleSourceGroups() { return cpMod.getExtensibleSourceGroups(); }
public void initItem(Item item) { if (item.getType() != ClassPathSupport.Item.TYPE_LIBRARY || !item.getLibrary().getType().equals(J2eePlatform.LIBRARY_TYPE)) { item.setAdditionalProperty(ClassPathSupportCallbackImpl.PATH_IN_DEPLOYMENT, "/"); //NOI18N } }
public Object getValueAt(int row, int column) { if (column == 0) { return getItem(row); } else { return getItem(row).getAdditionalProperty(ClassPathSupportCallbackImpl.PATH_IN_DEPLOYMENT); } }
public String[] getPropertyName (SourceGroup sg, String type) { return javaClassPathProvider.getPropertyName(sg, type); }
public ClassPathSupport getClassPathSupport() { return cpMod.getClassPathSupport(); }
@Override protected boolean addLibraries(Library[] libraries, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException { if (JavaClassPathConstants.COMPILE_ONLY.equals(type)) { return compileOnlyClassPathSupport.addCompileLibraries(libraries); } else { return cpMod.addLibraries(libraries, sourceGroup, type); } }
@Override protected boolean addAntArtifacts(AntArtifact[] artifacts, URI[] artifactElements, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException { if (JavaClassPathConstants.COMPILE_ONLY.equals(type)) { return compileOnlyClassPathSupport.addCompileAntArtifacts(artifacts, artifactElements); } else { return cpMod.addAntArtifacts(artifacts, artifactElements, sourceGroup, type); } }
@Override protected boolean removeAntArtifacts(AntArtifact[] artifacts, URI[] artifactElements, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException { if (JavaClassPathConstants.COMPILE_ONLY.equals(type)) { return compileOnlyClassPathSupport.removeCompileAntArtifacts(artifacts, artifactElements); } else { return cpMod.removeAntArtifacts(artifacts, artifactElements, sourceGroup, type); } }
public void initItem(ClassPathSupport.Item item) { if (item.getType() != ClassPathSupport.Item.TYPE_LIBRARY || !item.getLibrary().getType().equals(J2eePlatform.LIBRARY_TYPE)) { item.setAdditionalProperty(ClassPathSupportCallbackImpl.INCLUDE_IN_DEPLOYMENT, "true"); } } };
private EntityMappingsMetadataModelHelper createEntityMappingsHelper() { return EntityMappingsMetadataModelHelper.create( cpProvider.getProjectSourcesClassPath(ClassPath.BOOT), cpProvider.getProjectSourcesClassPath(ClassPath.COMPILE), cpProvider.getProjectSourcesClassPath(ClassPath.SOURCE)); }
public void initItem(Item item) { item.setAdditionalProperty(ClassPathSupportCallbackImpl.PATH_IN_DEPLOYMENT, ClassPathSupportCallbackImpl.PATH_IN_WAR_NONE); } };
@Override protected SourceGroup[] getExtensibleSourceGroups() { return cpMod.getExtensibleSourceGroups(); }
public ClassPathSupport getClassPathSupport() { return cpMod.getClassPathSupport(); }
private EntityMappingsMetadataModelHelper createEntityMappingsHelper() { return EntityMappingsMetadataModelHelper.create( cpProvider.getProjectSourcesClassPath(ClassPath.BOOT), cpProvider.getProjectSourcesClassPath(ClassPath.COMPILE), cpProvider.getProjectSourcesClassPath(ClassPath.SOURCE)); }
@Override public void setValueAt(Object value, int row, int column) { if (column != 1 || !(value instanceof Boolean)) { return; } getItem(row).setAdditionalProperty(ClassPathSupportCallbackImpl.INCLUDE_IN_DEPLOYMENT, Boolean.toString(Boolean.TRUE.equals(value))); fireTableCellUpdated(row, column); }
private ClassPath getProjectSourcesClassPath() { synchronized (this) { if (projectSourcesClassPath == null) { projectSourcesClassPath = ClassPathSupport.createProxyClassPath(new ClassPath[] { cpProvider.getProjectSourcesClassPath(ClassPath.SOURCE), cpProvider.getProjectSourcesClassPath(ClassPath.COMPILE), }); } return projectSourcesClassPath; } }
public void setValueAt(Object value, int row, int column) { if (column != 1 || !(value instanceof String)) { return; } ClassPathSupport.Item item = getItem(row); item.setAdditionalProperty(ClassPathSupportCallbackImpl.PATH_IN_DEPLOYMENT, (String)value); fireTableCellUpdated(row, column); }
private ClassPath getProjectSourcesClassPath() { synchronized (this) { if (projectSourcesClassPath == null) { projectSourcesClassPath = ClassPathSupport.createProxyClassPath(new ClassPath[] { cpProvider.getProjectSourcesClassPath(ClassPath.SOURCE), cpProvider.getProjectSourcesClassPath(ClassPath.COMPILE), }); } return projectSourcesClassPath; } }