Issue #590 fix issue when exiting GFE
Change-Id: I6dd72855e80a49be5735f9d805fbc42e42c7f157 Former-commit-id:7abedf8904
[formerly75754040cb
] [formerlyc92f9ee705
[formerly 258fead57d05a908b32b0b74a2e34ab19be0947f]] Former-commit-id:c92f9ee705
Former-commit-id:c55862a1ab
This commit is contained in:
parent
e747734aff
commit
4be7493c21
1 changed files with 17 additions and 14 deletions
|
@ -228,24 +228,27 @@ public abstract class AbstractVizPerspectiveManager implements
|
|||
protected abstract void open();
|
||||
|
||||
public void close() {
|
||||
// Cleanup hidden editors
|
||||
if (perspectiveEditors.size() > 0) {
|
||||
page.closeEditors(perspectiveEditors
|
||||
.toArray(new IEditorReference[perspectiveEditors.size()]),
|
||||
false);
|
||||
}
|
||||
if (opened) {
|
||||
// Cleanup hidden editors
|
||||
if (perspectiveEditors.size() > 0) {
|
||||
page.closeEditors(
|
||||
perspectiveEditors
|
||||
.toArray(new IEditorReference[perspectiveEditors
|
||||
.size()]), false);
|
||||
}
|
||||
|
||||
perspectiveEditors.clear();
|
||||
layoutMap.clear();
|
||||
perspectiveEditors.clear();
|
||||
layoutMap.clear();
|
||||
|
||||
opened = false;
|
||||
opened = false;
|
||||
|
||||
closeDialogs();
|
||||
deactivateContexts();
|
||||
removeFromStatusLine();
|
||||
closeDialogs();
|
||||
deactivateContexts();
|
||||
removeFromStatusLine();
|
||||
|
||||
if (backgroundColor != null) {
|
||||
backgroundColor.removeListener(BGColorMode.GLOBAL, this);
|
||||
if (backgroundColor != null) {
|
||||
backgroundColor.removeListener(BGColorMode.GLOBAL, this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue