private void rebuild(Tag tag) { if (panel == null || panel.isDisposed()) { TagType tt = tag.getTagType(); tt.removeTagTypeListener(this); tt.getTagManager().removeTagManagerListener(this); return; } rebuild(); }
private void delete() { Utils.disposeComposite(panel); TagManager tm = TagManagerFactory.getTagManager(); tm.removeTagManagerListener(this); for (TagType tt : tm.getTagTypes()) { tt.removeTagTypeListener(this); } if (mpg != null) { mpg.dispose(); } }