Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikaël Barbero2012-08-30 09:10:08 +0000
committerMikaël Barbero2012-08-30 15:29:39 +0000
commitc8a6f2c436b8190231d01dbe58e5cffe308365ca (patch)
tree3b62a0895b6098658bde3ef2c358affa59a99c33
parentca8de4d012b868153cc2edaf01e2c3989df2878a (diff)
downloadorg.eclipse.emf.compare-c8a6f2c436b8190231d01dbe58e5cffe308365ca.tar.gz
org.eclipse.emf.compare-c8a6f2c436b8190231d01dbe58e5cffe308365ca.tar.xz
org.eclipse.emf.compare-c8a6f2c436b8190231d01dbe58e5cffe308365ca.zip
change display of the owner and the feature of the current list with
diff
-rw-r--r--plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/contentmergeviewer/MergeViewerInfoComposite.java32
1 files changed, 19 insertions, 13 deletions
diff --git a/plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/contentmergeviewer/MergeViewerInfoComposite.java b/plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/contentmergeviewer/MergeViewerInfoComposite.java
index 7acf631ea..42479d6a5 100644
--- a/plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/contentmergeviewer/MergeViewerInfoComposite.java
+++ b/plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/contentmergeviewer/MergeViewerInfoComposite.java
@@ -45,7 +45,7 @@ public class MergeViewerInfoComposite extends Composite {
public MergeViewerInfoComposite(Composite parent) {
super(parent, SWT.BORDER);
setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
- GridLayout layout = new GridLayout(6, false);
+ GridLayout layout = new GridLayout(3, false);
layout.verticalSpacing = 0;
layout.horizontalSpacing = 0;
layout.marginLeft = 1;
@@ -54,29 +54,35 @@ public class MergeViewerInfoComposite extends Composite {
layout.marginBottom = 0;
setLayout(layout);
- Label changesLabel = new Label(this, SWT.NONE);
- changesLabel.setText("Changes in"); //$NON-NLS-1$
+ Composite eObjectComposite = new Composite(this, SWT.NONE);
+ GridLayout eObjectCompositelayout = new GridLayout(2, false);
+ eObjectCompositelayout.verticalSpacing = 0;
+ eObjectCompositelayout.horizontalSpacing = 0;
+ eObjectCompositelayout.marginLeft = 0;
+ eObjectCompositelayout.marginHeight = 0;
+ eObjectCompositelayout.marginWidth = 0;
+ eObjectCompositelayout.marginBottom = 0;
+ eObjectComposite.setLayout(eObjectCompositelayout);
+ eObjectIcon = new Label(eObjectComposite, SWT.NONE);
+ eObjectIcon.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1));
+ eObjectLabel = new Label(eObjectComposite, SWT.NONE);
+ eObjectLabel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
+ eObjectComposite.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, true, 3, 1));
+
+ Label lblIn = new Label(this, SWT.NONE);
+ lblIn.setText(" "); //$NON-NLS-1$
featureIcon = new Label(this, SWT.NONE);
featureIcon.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1));
featureLabel = new Label(this, SWT.NONE);
featureLabel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));
- Label lblIn = new Label(this, SWT.NONE);
- lblIn.setText("of"); //$NON-NLS-1$
-
- eObjectIcon = new Label(this, SWT.NONE);
- eObjectIcon.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1));
-
- eObjectLabel = new Label(this, SWT.NONE);
- eObjectLabel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
-
}
public void setInput(IStructuralFeatureAccessor featureAccessor, MergeViewerSide side) {
EStructuralFeature structuralFeature = featureAccessor.getStructuralFeature();
featureIcon.setImage(fLabelProvider.getImage(structuralFeature));
- featureLabel.setText(structuralFeature.getName());
+ featureLabel.setText(fLabelProvider.getText(structuralFeature));
EObject eObject = featureAccessor.getEObject(side);
if (eObject == null) {

Back to the top