@Override public String getName () { return this.lib.getName (); }
@Override public String getName() { return getLibraryImplementation().getName(); }
private static boolean addLibraryIntoBuild(LibraryImplementation impl, EditableProperties props) { boolean modified = false; for (int i = 0; i < VOLUME_TYPES.length; i++) { String propName = LIB_PREFIX + impl.getName() + '.' + VOLUME_TYPES[i]; //NOI18N List roots = impl.getContent(VOLUME_TYPES[i]); if (roots == null) {
private static boolean addLibraryIntoBuild(LibraryImplementation impl, EditableProperties props) { boolean modified = false; for (int i=0; i<VOLUME_TYPES.length; i++) { String propName = LIB_PREFIX + impl.getName() + '.' + VOLUME_TYPES[i]; //NOI18N List roots = impl.getContent (VOLUME_TYPES[i]); if (roots == null) {
private static boolean addLibraryIntoBuild(LibraryImplementation impl, EditableProperties props) { boolean modified = false; for (int i=0; i<VOLUME_TYPES.length; i++) { String propName = LIB_PREFIX + impl.getName() + '.' + VOLUME_TYPES[i]; //NOI18N List roots = impl.getContent (VOLUME_TYPES[i]); if (roots == null) {
private static boolean addLibraryIntoBuild(LibraryImplementation impl, EditableProperties props) { boolean modified = false; for (int i=0; i<VOLUME_TYPES.length; i++) { String propName = LIB_PREFIX + impl.getName() + '.' + VOLUME_TYPES[i]; //NOI18N List roots = impl.getContent (VOLUME_TYPES[i]); if (roots == null) {
private static boolean isValidName( final @NonNull LibrariesModel model, final @NonNull String name, final @NullAllowed LibraryStorageArea area) { for (LibraryImplementation lib : model.getLibraries()) { if (lib.getName().equals(name) && Utilities.compareObjects(model.getArea(lib), area)) { return false; } } return true; }
public void run() { try { EditableProperties props = PropertyUtils.getGlobalProperties(); for (int i=0; i < VOLUME_TYPES.length; i++) { String property = LIB_PREFIX + libraryImpl.getName() + '.' + VOLUME_TYPES[i]; //NOI18N props.remove(property); } PropertyUtils.putGlobalProperties(props); } catch (IOException ioe) { ErrorManager.getDefault().notify (ioe); } } });
public void run() { try { EditableProperties props = PropertyUtils.getGlobalProperties(); for (int i=0; i < VOLUME_TYPES.length; i++) { String property = LIB_PREFIX + libraryImpl.getName() + '.' + VOLUME_TYPES[i]; //NOI18N props.remove(property); } PropertyUtils.putGlobalProperties(props); } catch (IOException ioe) { ErrorManager.getDefault().notify (ioe); } } });
public void run() { try { EditableProperties props = PropertyUtils.getGlobalProperties(); for (int i=0; i < VOLUME_TYPES.length; i++) { String property = LIB_PREFIX + libraryImpl.getName() + '.' + VOLUME_TYPES[i]; //NOI18N props.remove(property); } PropertyUtils.putGlobalProperties(props); } catch (IOException ioe) { ErrorManager.getDefault().notify (ioe); } } });
public void run() { try { EditableProperties props = PropertyUtils.getGlobalProperties(); for (int i = 0; i < VOLUME_TYPES.length; i++) { String property = LIB_PREFIX + libraryImpl.getName() + '.' + VOLUME_TYPES[i]; //NOI18N props.remove(property); } PropertyUtils.putGlobalProperties(props); } catch (IOException ioe) { ErrorManager.getDefault().notify(ioe); } } });
ALPUtils.remove(area2Storage.get(area), (LibraryImplementation2)impl); } else { throw new IOException("Cannot find storage for library: " + impl.getName()); // NOI18N ArealLibraryProvider alp = area2Storage.get(area); assert alp != null : "Unknown area: " + area + " known areas: " + area2Storage.keySet(); final LibraryImplementation2 createdLib = ALPUtils.createLibrary(alp, impl.getType(), impl.getName(), area, ((DummyArealLibrary) impl).contents); LibrariesSupport.setDisplayName(createdLib, LibrariesSupport.getDisplayName(impl)); } else if (writableProvider != null) { throw new IOException("Cannot find storage for library: " + orig.getName()); // NOI18N
public void setSelectedLibrary (LibraryImplementation library) { if (library == null) { return; } ExplorerManager currentManager = this.getExplorerManager(); Node root = currentManager.getRootContext(); String[] path = {library.getType(), library.getName()}; try { Node node = NodeOp.findPath(root, path); if (node != null) { currentManager.setSelectedNodes(new Node[] {node}); } } catch (NodeNotFoundException e) { //Ignore it } catch (PropertyVetoException e) { //Ignore it } }
if (allowRelativePaths != null && allowRelativePaths.booleanValue()) { baseFolder = new File(URI.create(area.getLocation().toExternalForm())).getParentFile(); libFolder = new File(baseFolder, impl.getName());
model.addLibrary (impl); forceTreeRecreation(); String[] path = {impl.getType(), impl.getName()}; ExplorerManager mgr = this.getExplorerManager(); try {
customizer.forceTreeRecreation(); if (customizeLibrary(customizer, impl)) { return manager.getLibrary(impl.getName());