Commit f74d77db authored by Florian's avatar Florian

refactoring

parent 6ebfe399
package kieker.tools.eclipse.analysis.helper; package kieker.tools.eclipse.analysis.comparator;
import org.eclipse.jface.viewers.ViewerComparator; import org.eclipse.jface.viewers.ViewerComparator;
import org.eclipse.swt.SWT; import org.eclipse.swt.SWT;
......
package kieker.tools.eclipse.analysis.helper; package kieker.tools.eclipse.analysis.comparator;
import org.eclipse.jface.viewers.Viewer; import org.eclipse.jface.viewers.Viewer;
import kieker.analysis.domain.OperationCall; import kieker.analysis.domain.OperationCall;
......
package kieker.tools.eclipse.analysis.helper; package kieker.tools.eclipse.analysis.comparator;
import org.eclipse.jface.viewers.Viewer; import org.eclipse.jface.viewers.Viewer;
import kieker.analysis.domain.OperationCall; import kieker.analysis.domain.OperationCall;
......
...@@ -39,7 +39,7 @@ import org.eclipse.swt.widgets.TreeItem; ...@@ -39,7 +39,7 @@ import org.eclipse.swt.widgets.TreeItem;
import org.eclipse.ui.IWorkbenchActionConstants; import org.eclipse.ui.IWorkbenchActionConstants;
import org.eclipse.ui.part.ViewPart; import org.eclipse.ui.part.ViewPart;
import kieker.tools.eclipse.analysis.helper.CallViewerComparator; import kieker.tools.eclipse.analysis.comparator.CallViewerComparator;
import kieker.tools.eclipse.analysis.helper.FilterModifyListener; import kieker.tools.eclipse.analysis.helper.FilterModifyListener;
import kieker.tools.eclipse.analysis.helper.TreeFilter; import kieker.tools.eclipse.analysis.helper.TreeFilter;
import kieker.tools.eclipse.analysis.model.ColumnDef; import kieker.tools.eclipse.analysis.model.ColumnDef;
......
...@@ -28,11 +28,11 @@ import org.eclipse.swt.widgets.TreeColumn; ...@@ -28,11 +28,11 @@ import org.eclipse.swt.widgets.TreeColumn;
import org.eclipse.swt.widgets.TypedListener; import org.eclipse.swt.widgets.TypedListener;
import kieker.tools.eclipse.analysis.Activator; import kieker.tools.eclipse.analysis.Activator;
import kieker.tools.eclipse.analysis.helper.AggregatedOperationCallViewerComparator; import kieker.tools.eclipse.analysis.comparator.AggregatedOperationCallViewerComparator;
import kieker.tools.eclipse.analysis.helper.AggregatedTraceViewerComparator; import kieker.tools.eclipse.analysis.comparator.AggregatedTraceViewerComparator;
import kieker.tools.eclipse.analysis.comparator.OperationCallViewerComparator;
import kieker.tools.eclipse.analysis.comparator.TraceViewerComparator;
import kieker.tools.eclipse.analysis.helper.FilterModifyListener; import kieker.tools.eclipse.analysis.helper.FilterModifyListener;
import kieker.tools.eclipse.analysis.helper.OperationCallViewerComparator;
import kieker.tools.eclipse.analysis.helper.TraceViewerComparator;
import kieker.tools.eclipse.analysis.model.ColumnDef; import kieker.tools.eclipse.analysis.model.ColumnDef;
import kieker.tools.eclipse.analysis.model.Properties; import kieker.tools.eclipse.analysis.model.Properties;
import kieker.tools.eclipse.analysis.provider.DataProvider; import kieker.tools.eclipse.analysis.provider.DataProvider;
...@@ -67,8 +67,6 @@ public class AnalysisTreeView extends AbstractJFaceView { ...@@ -67,8 +67,6 @@ public class AnalysisTreeView extends AbstractJFaceView {
public final static int AGGROPCALLTAB = 3; public final static int AGGROPCALLTAB = 3;
public final static int MONITORINGSTATSTAB = 4; public final static int MONITORINGSTATSTAB = 4;
boolean inputsSet[] = new boolean[5];
TabFolder tabFolder; TabFolder tabFolder;
public TabFolder getTabFolder() { public TabFolder getTabFolder() {
...@@ -101,9 +99,9 @@ public class AnalysisTreeView extends AbstractJFaceView { ...@@ -101,9 +99,9 @@ public class AnalysisTreeView extends AbstractJFaceView {
tabFolder.addSelectionListener(new SelectionListener() { tabFolder.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) { public void widgetSelected(SelectionEvent e) {
int tabIdx = tabFolder.getSelectionIndex(); int tabIdx = tabFolder.getSelectionIndex();
selIntermediate.setSelectionProviderDelegate(viewerList.get(tabIdx)); ColumnViewer viewer = viewerList.get(tabIdx);
selIntermediate.setSelectionProviderDelegate(viewer);
if(!inputsSet[tabIdx]){ if(viewer.getInput() == null){
setInputs(tabIdx); setInputs(tabIdx);
} }
} }
...@@ -169,8 +167,7 @@ public class AnalysisTreeView extends AbstractJFaceView { ...@@ -169,8 +167,7 @@ public class AnalysisTreeView extends AbstractJFaceView {
default: default:
break; break;
} }
inputsSet[i] = true;
packCols(i); packCols(i);
} }
...@@ -351,8 +348,9 @@ public class AnalysisTreeView extends AbstractJFaceView { ...@@ -351,8 +348,9 @@ public class AnalysisTreeView extends AbstractJFaceView {
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)); ColumnViewer viewer = viewerList.get(tab);
if(!inputsSet[tab]){ selIntermediate.setSelectionProviderDelegate(viewer);
if(viewer.getInput() == null){
setInputs(tab); setInputs(tab);
} }
} }
......
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