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