diff --git a/com.minres.scviewer.target/com.minres.scviewer.target.target b/com.minres.scviewer.target/com.minres.scviewer.target.target index 4408563..3de7c9e 100644 --- a/com.minres.scviewer.target/com.minres.scviewer.target.target +++ b/com.minres.scviewer.target/com.minres.scviewer.target.target @@ -27,6 +27,10 @@ + + + + diff --git a/plugins/com.minres.scviewer.database.ui.swt/src/com/minres/scviewer/database/ui/swt/internal/WaveformView.java b/plugins/com.minres.scviewer.database.ui.swt/src/com/minres/scviewer/database/ui/swt/internal/WaveformView.java index d7a90cd..49d6da6 100644 --- a/plugins/com.minres.scviewer.database.ui.swt/src/com/minres/scviewer/database/ui/swt/internal/WaveformView.java +++ b/plugins/com.minres.scviewer.database.ui.swt/src/com/minres/scviewer/database/ui/swt/internal/WaveformView.java @@ -336,15 +336,19 @@ public class WaveformView implements IWaveformView { SashForm topSash = new SashForm(top, SWT.SMOOTH); topSash.setBackground(topSash.getDisplay().getSystemColor(SWT.COLOR_GRAY)); - Composite composite = new Composite(topSash, SWT.NONE); - composite.setLayout(new FillLayout(SWT.HORIZONTAL)); + Composite namePane = new Composite(topSash, SWT.NONE); + Composite rightPane = new Composite(topSash, SWT.NONE); + rightPane.setLayout(new FillLayout(SWT.HORIZONTAL)); - waveformCanvas = new WaveformCanvas(topSash, SWT.NONE); + SashForm rightSash = new SashForm(rightPane, SWT.SMOOTH); + rightSash.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY)); - SashForm leftSash = new SashForm(composite, SWT.SMOOTH); - leftSash.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY)); + Composite valuePane = new Composite(rightSash, SWT.NONE); + waveformCanvas = new WaveformCanvas(rightSash, SWT.NONE); - Composite namePane = createTextPane(leftSash, "Name"); + // create the name pane + createTextPane(namePane, "Name"); + namePaneHeader= namePane.getChildren()[0]; namePane.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND)); @@ -380,7 +384,8 @@ public class WaveformView implements IWaveformView { nameList.addMouseListener(nameValueMouseListener); nameListScrolled.setContent(nameList); - Composite valuePane = createTextPane(leftSash, "Value"); + createTextPane(valuePane, "Value"); + valuePane.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND)); valueListScrolled = new ScrolledComposite(valuePane, SWT.H_SCROLL | SWT.V_SCROLL); valueListScrolled.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); @@ -445,8 +450,8 @@ public class WaveformView implements IWaveformView { valueListScrolled.setOrigin(valueListScrolled.getOrigin().x, y); } }); - topSash.setWeights(new int[] { 30, 70 }); - leftSash.setWeights(new int[] { 75, 25 }); + topSash.setWeights(new int[] { 25, 75 }); + rightSash.setWeights(new int[] { 10, 90 }); createStreamDragSource(nameList); createStreamDragSource(valueList); @@ -459,8 +464,7 @@ public class WaveformView implements IWaveformView { toolTipHandler.activateHoverHelp(waveformCanvas); } - private Composite createTextPane(SashForm leftSash, String text) { - Composite namePane = new Composite(leftSash, SWT.NONE); + private void createTextPane(Composite namePane, String text) { GridLayout gl_namePane = new GridLayout(1, false); gl_namePane.verticalSpacing = 0; gl_namePane.marginWidth = 0; @@ -480,7 +484,6 @@ public class WaveformView implements IWaveformView { GridData gd_nameSep = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1); gd_nameSep.heightHint = 2; nameSep.setLayoutData(gd_nameSep); - return namePane; } @Override diff --git a/plugins/com.minres.scviewer.e4.application/META-INF/MANIFEST.MF b/plugins/com.minres.scviewer.e4.application/META-INF/MANIFEST.MF index 003c3c4..e81db03 100644 --- a/plugins/com.minres.scviewer.e4.application/META-INF/MANIFEST.MF +++ b/plugins/com.minres.scviewer.e4.application/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %Bundle-Name Bundle-SymbolicName: com.minres.scviewer.e4.application;singleton:=true -Bundle-Version: 2.9.2.qualifier +Bundle-Version: 2.9.3.qualifier Bundle-Vendor: %Bundle-Vendor Require-Bundle: javax.inject;bundle-version="1.0.0", org.eclipse.core.runtime;bundle-version="3.11.1", diff --git a/plugins/com.minres.scviewer.e4.application/pom.xml b/plugins/com.minres.scviewer.e4.application/pom.xml index 5e4e62e..61db10f 100644 --- a/plugins/com.minres.scviewer.e4.application/pom.xml +++ b/plugins/com.minres.scviewer.e4.application/pom.xml @@ -1,7 +1,7 @@ 4.0.0 com.minres.scviewer.e4.application - 2.9.2-SNAPSHOT + 2.9.3-SNAPSHOT com.minres.scviewer com.minres.scviewer.parent diff --git a/plugins/com.minres.scviewer.e4.application/src/com/minres/scviewer/e4/application/parts/TransactionList.java b/plugins/com.minres.scviewer.e4.application/src/com/minres/scviewer/e4/application/parts/TransactionList.java index 3d4f45e..0295367 100644 --- a/plugins/com.minres.scviewer.e4.application/src/com/minres/scviewer/e4/application/parts/TransactionList.java +++ b/plugins/com.minres.scviewer.e4.application/src/com/minres/scviewer/e4/application/parts/TransactionList.java @@ -273,8 +273,8 @@ public class TransactionList extends Composite { tableViewer.setInput(eventList); attrNames.clear(); attrNames.addAll(getEntries()); - searchPropComboViewer.getCombo().select(0); - txFilter.setSearchProp(attrNames.get(0).getName(), attrNames.get(0).getType()); + if(attrNames.size()>0) + txFilter.setSearchProp(attrNames.get(0).getName(), attrNames.get(0).getType()); if (searchPropComboViewer!=null) { searchPropComboViewer.setInput(attrNames); searchPropComboViewer.setSelection(new StructuredSelection(searchPropComboViewer.getElementAt(0))); diff --git a/products/com.minres.scviewer.e4.product/pom.xml b/products/com.minres.scviewer.e4.product/pom.xml index 6a7c1fb..81750e9 100644 --- a/products/com.minres.scviewer.e4.product/pom.xml +++ b/products/com.minres.scviewer.e4.product/pom.xml @@ -10,7 +10,7 @@ ../.. com.minres.scviewer.e4.product - 2.9.2-SNAPSHOT + 2.9.3-SNAPSHOT eclipse-repository com.minres.scviewer diff --git a/products/com.minres.scviewer.e4.product/scviewer.product b/products/com.minres.scviewer.e4.product/scviewer.product index b81b823..357ba20 100644 --- a/products/com.minres.scviewer.e4.product/scviewer.product +++ b/products/com.minres.scviewer.e4.product/scviewer.product @@ -1,7 +1,7 @@ - + diff --git a/products/com.minres.scviewer.e4.product_slim/pom.xml b/products/com.minres.scviewer.e4.product_slim/pom.xml index 65d57cc..201f112 100644 --- a/products/com.minres.scviewer.e4.product_slim/pom.xml +++ b/products/com.minres.scviewer.e4.product_slim/pom.xml @@ -10,7 +10,7 @@ ../.. com.minres.scviewer.e4.product_slim - 2.9.2-SNAPSHOT + 2.9.3-SNAPSHOT eclipse-repository com.minres.scviewer diff --git a/products/com.minres.scviewer.e4.product_slim/scviewer.product b/products/com.minres.scviewer.e4.product_slim/scviewer.product index d53d65b..d530758 100644 --- a/products/com.minres.scviewer.e4.product_slim/scviewer.product +++ b/products/com.minres.scviewer.e4.product_slim/scviewer.product @@ -1,7 +1,7 @@ - +