[hg] main-silver: do not check for editors if already clear the ...
- From: Tomas Stupka < >
- To:
- Subject: [hg] main-silver: do not check for editors if already clear the ...
- Date: Thu, 09 Feb 2012 14:30:06 -0800
changeset b911f59795c1 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/b911f59795c1
description:
do not check for editors if already clear the DO registers a history
tab
diffstat:
localhistory/src/org/netbeans/modules/localhistory/ui/view/ShowHistoryAction.java
| 16 ----------
1 files changed, 0 insertions(+), 16 deletions(-)
diffs (35 lines):
diff --git
a/localhistory/src/org/netbeans/modules/localhistory/ui/view/ShowHistoryAction.java
b/localhistory/src/org/netbeans/modules/localhistory/ui/view/ShowHistoryAction.java
---
a/localhistory/src/org/netbeans/modules/localhistory/ui/view/ShowHistoryAction.java
+++
b/localhistory/src/org/netbeans/modules/localhistory/ui/view/ShowHistoryAction.java
@@ -125,7 +125,6 @@
// activate the History tab if there is a opened
TopComponent
// with a History MultiView element
Set<TopComponent> tcs =
TopComponent.getRegistry().getOpened();
- boolean hasEditorPanes = false;
for (final TopComponent tc : tcs) {
Lookup l = tc.getLookup();
final DataObject tcDataObject =
l.lookup(DataObject.class);
@@ -137,23 +136,8 @@
return;
}
}
- try {
- // this TopComponent has no history tab, yet
doesn't necessarily has to be an editor.
- // lets try to guess if it has an opened editor
so that we know if we have to
- // open the Local History Top Component
- hasEditorPanes =
Utils.hasOpenedEditorPanes(tcDataObject);
- } catch (InterruptedException ex) {
- History.LOG.log(Level.WARNING, null, ex);
- } catch (InvocationTargetException ex) {
- History.LOG.log(Level.WARNING, null, ex);
}
}
- }
- if(hasEditorPanes) {
- // files editor was open, but had no history tab
- openLocalHistoryTC(files);
- return;
- }
// no editor found, lets open it...
EditCookie cookie =
dataObject.getLookup().lookup(EditCookie.class);
|
[hg] main-silver: do not check for editors if already clear the ... |
Tomas Stupka | 02/09/2012 |
