1 | ViewItem v = ((DefaultContainer) c).getViewItem();↵ | | 1 | removeButton.setEnabled(true);↵
|
|
2 | // save in cache↵ | | 2 | ↵
|
3 | frameMediatorCache.put(v.get("id"), c.getFrameMediator());↵ | | |
|
|
4 | saveDefaultView(v);↵ | | |
|
5 | activeFrameCtrls.remove(c);↵ | | |
|
|
6 | if (activeFrameCtrls.size() == 0) {↵ | | |
|
7 | // this is the last frame so store its data in the viewList↵ | | |
|
8 | viewList.removeAllElements();↵ | | |
|
9 | viewList.addElement(v.getRoot());↵ | | |
|
10 | } | | 3 | infoButton.setEnabled(selectedNode.hasInfo());↵
|
|
| | | 4 | if (selectedNode == null) {↵
|
| | | 5 | return;↵
|
| | | 6 | }↵
|
|
| | | 7 | // if plugin has config extension point↵
|
| | | 8 | String id = selectedNode.getId();↵
|
| | | 9 | id = id.substring(id.lastIndexOf(".") + 1, id.length());↵
|
| | | 10 | optionsButton.setEnabled(configHandler.exists(id));
|