private void loadLibraries(LibraryImplementation lib) { lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_CLASSPATH, tp.getClasses()); lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_JAVADOC, tp.getJavadocs()); lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_SRC, tp.getSources()); } }
@Override public void setContent(String volumeType, List<URL> path) throws IllegalArgumentException { getLibraryImplementation().setContent(volumeType, path); } }
private void removeResource(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_removeResource int[] indices =this.content.getSelectedIndices(); if (indices.length == 0) { return; } this.model.removeResources(indices); if (indices[indices.length-1]-indices.length+1 < this.model.getSize()) { this.content.setSelectedIndex(indices[indices.length-1]-indices.length+1); } else if (indices[0] >= 1) { this.content.setSelectedIndex (indices[0]-1); } if (this.volumeType.equals(J2SELibraryTypeProvider.VOLUME_TYPE_CLASSPATH)) { impl.setContent(J2SELibraryTypeProvider.VOLUME_TYPE_MAVEN_POM, Collections.<URL>emptyList()); } }//GEN-LAST:event_removeResource
private void initLibraries() { // create library LibraryImplementation lib = new J2eeLibraryTypeProvider().createLibrary(); lib.setName(NbBundle.getMessage(JBJ2eePlatformFactory.class, "TITLE_JBOSS_LIBRARY")); lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_CLASSPATH, properties.getClasses()); lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_JAVADOC, properties.getJavadocs()); lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_SRC, properties.getSources()); libraries = new LibraryImplementation[] {lib}; }
private void propagateContent() { if (impl2 != null) { impl2.setURIContent (volumeType, NbCollections.checkedListByCopy(content, URI.class, true)); } else { impl.setContent (volumeType, NbCollections.checkedListByCopy(content, URL.class, true)); } }
private void propagateContent() { if (impl2 != null) { impl2.setURIContent (volumeType, NbCollections.checkedListByCopy(content, URI.class, true)); } else { impl.setContent (volumeType, NbCollections.checkedListByCopy(content, URL.class, true)); } }
private void propagateContent() { if (impl2 != null) { impl2.setURIContent (volumeType, NbCollections.checkedListByCopy(content, URI.class, true)); } else { impl.setContent (volumeType, NbCollections.checkedListByCopy(content, URL.class, true)); } }
a.add(toResourceURL((URL)i.next())); impl.setContent("classpath", a); // NOI18N a.add(toResourceURL((URL)i.next())); impl.setContent("src", a); // NOI18N a.add(toResourceURL((URL)i.next())); impl.setContent("javadoc", a); // NOI18N a.add(toResourceURL((URL)i.next())); impl.setContent("runtime", a); // NOI18N
a.add(toResourceURL((URL)i.next())); impl.setContent("classpath", a); // NOI18N a.add(toResourceURL((URL)i.next())); impl.setContent("src", a); // NOI18N a.add(toResourceURL((URL)i.next())); impl.setContent("javadoc", a); // NOI18N a.add(toResourceURL((URL)i.next())); impl.setContent("visual-web-designtime", a); // NOI18N
a.add(toResourceURL((URL)i.next())); impl.setContent("classpath", a); // NOI18N a.add(toResourceURL((URL)i.next())); impl.setContent("src", a); // NOI18N a.add(toResourceURL((URL)i.next())); impl.setContent("javadoc", a); // NOI18N
lib.setName(NbBundle.getMessage(PlatformImpl.class, "wsit-api")); // NOI18N l.add(fileToUrl(new File(root, WEBSERVICES_API_JAR))); lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_CLASSPATH, l); lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_SRC, sources); lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_JAVADOC, javadoc); libs.add(lib); lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_CLASSPATH, l); lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_SRC, sources); lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_JAVADOC, javadoc); libs.add(lib); l.add(fileToUrl(new File(root, MAIL_JAR))); l.add(fileToUrl(new File(root, JSTL_JAR))); lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_CLASSPATH, l); lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_SRC, sources); lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_JAVADOC, javadoc); libs.add(lib); lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_CLASSPATH, l); libs.add(lib); lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_CLASSPATH, l); lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_SRC, sources); lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_JAVADOC, javadoc); libs.add(lib); lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_CLASSPATH, l); lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_SRC, sources);
impl.setContent(J2SELibraryTypeProvider.VOLUME_TYPE_MAVEN_POM, Collections.<URL>emptyList());
lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_CLASSPATH, cp); lib.setContent(J2eeLibraryTypeProvider.VOLUME_TYPE_JAVADOC, javadoc);
orig.setContent(entry.getKey(), entry.getValue());