@Override public String getType() { return getLibraryImplementation().getType(); }
@Override public void addNotify() { Collection<LibraryImplementation> keys = new ArrayList<LibraryImplementation>(); for (LibraryImplementation impl : model.getLibraries()) { if (provider.getLibraryType().equals(impl.getType()) && model.getArea(impl).equals(area)) { keys.add (impl); } } this.setKeys(keys); }
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 } }
String type = libs[j].getType ();
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) {
model.addLibrary (impl); forceTreeRecreation(); String[] path = {impl.getType(), impl.getName()}; ExplorerManager mgr = this.getExplorerManager(); try {