Commit 0f24ea75 authored by Florian's avatar Florian

also set input on programmatically tab switch, when no input was set yet

parent e958acad
...@@ -50,7 +50,6 @@ public abstract class AbstractFolderSelectionHandler extends AbstractHandler { ...@@ -50,7 +50,6 @@ public abstract class AbstractFolderSelectionHandler extends AbstractHandler {
if (partView instanceof AnalysisTreeView) { if (partView instanceof AnalysisTreeView) {
AnalysisTreeView view = (AnalysisTreeView) partView; AnalysisTreeView view = (AnalysisTreeView) partView;
view.setFocus(focusOnTab); view.setFocus(focusOnTab);
view.setInputs(focusOnTab);
} }
} }
......
...@@ -348,10 +348,13 @@ public class AnalysisTreeView extends AbstractJFaceView { ...@@ -348,10 +348,13 @@ public class AnalysisTreeView extends AbstractJFaceView {
viewerList.add(MONITORINGSTATSTAB, viewer); viewerList.add(MONITORINGSTATSTAB, viewer);
} }
public void setFocus(int tab) { public void setFocus(int tab) {
tabFolder.setSelection(tab); tabFolder.setSelection(tab);
tabList.get(tab).getControl().setFocus(); tabList.get(tab).getControl().setFocus();
selIntermediate.setSelectionProviderDelegate(viewerList.get(tab)); selIntermediate.setSelectionProviderDelegate(viewerList.get(tab));
if(!inputsSet[tab]){
setInputs(tab);
}
} }
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment