Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/contentmergeviewer/tree')
-rw-r--r--plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/contentmergeviewer/tree/TreeContentMergeViewer.java22
-rw-r--r--plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/contentmergeviewer/tree/TreeContentMergeViewer.properties2
2 files changed, 13 insertions, 11 deletions
diff --git a/plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/contentmergeviewer/tree/TreeContentMergeViewer.java b/plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/contentmergeviewer/tree/TreeContentMergeViewer.java
index f34368937..98a2bf535 100644
--- a/plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/contentmergeviewer/tree/TreeContentMergeViewer.java
+++ b/plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/contentmergeviewer/tree/TreeContentMergeViewer.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012, 2013 Obeo.
+ * Copyright (c) 2012, 2014 Obeo.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -255,20 +255,20 @@ public class TreeContentMergeViewer extends EMFCompareContentMergeViewer {
IMergeViewerItem mergeViewerItem = (IMergeViewerItem)object;
final Object value = mergeViewerItem.getSideValue(side);
if (value instanceof EObject && ((EObject)value).eIsProxy()) {
- text = "proxy : " + ((InternalEObject)value).eProxyURI().toString();
+ text = "proxy : " + ((InternalEObject)value).eProxyURI().toString(); //$NON-NLS-1$
} else if (mergeViewerItem.isInsertionPoint()) {
// workaround for 406513: Windows specific issue. Only labels of (Tree/Table)Item are
// selectable on Windows platform. The labels of placeholders in (Tree/Table)Viewer
// are one whitespace. Placeholder are then selectable at the very left of itself.
// Add a 42 whitespaces label to workaround.
- text = " ";
+ text = " "; //$NON-NLS-1$
} else if (value == null
&& mergeViewerItem.getSideValue(side.opposite()) instanceof Resource) {
- text = "Unknown resource";
+ text = getResourceBundle().getString("UnkownResource"); //$NON-NLS-1$
} else if (value == null && mergeViewerItem.getLeft() == null
&& mergeViewerItem.getRight() == null
&& mergeViewerItem.getAncestor() instanceof Resource) {
- text = "Unknown resource";
+ text = getResourceBundle().getString("UnkownResource"); //$NON-NLS-1$
} else {
text = super.getText(value);
}
@@ -379,9 +379,9 @@ public class TreeContentMergeViewer extends EMFCompareContentMergeViewer {
if (iContributionItem instanceof ActionContributionItem) {
IAction action = ((ActionContributionItem)iContributionItem).getAction();
String id = action.getActionDefinitionId();
- if ("org.eclipse.compare.copyAllLeftToRight".equals(id)) {
+ if ("org.eclipse.compare.copyAllLeftToRight".equals(id)) { //$NON-NLS-1$
toolBarManager.remove(iContributionItem);
- } else if ("org.eclipse.compare.copyAllRightToLeft".equals(id)) {
+ } else if ("org.eclipse.compare.copyAllRightToLeft".equals(id)) { //$NON-NLS-1$
toolBarManager.remove(iContributionItem);
}
}
@@ -418,17 +418,17 @@ public class TreeContentMergeViewer extends EMFCompareContentMergeViewer {
Rectangle rightBounds = rightItem.getBounds();
from.y = leftBounds.y + (leftBounds.height / 2) - leftClientArea.y;
- if ("gtk".equals(SWT.getPlatform())) {
+ if ("gtk".equals(SWT.getPlatform())) { //$NON-NLS-1$
from.y -= 1;
- } else if ("win32".equals(SWT.getPlatform())) {
+ } else if ("win32".equals(SWT.getPlatform())) { //$NON-NLS-1$
from.y += 1;
}
to.x = control.getBounds().width;
to.y = rightBounds.y + (rightBounds.height / 2) - rightClientArea.y;
- if ("gtk".equals(SWT.getPlatform())) {
+ if ("gtk".equals(SWT.getPlatform())) { //$NON-NLS-1$
to.y -= 1;
- } else if ("win32".equals(SWT.getPlatform())) {
+ } else if ("win32".equals(SWT.getPlatform())) { //$NON-NLS-1$
to.y += 1;
}
diff --git a/plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/contentmergeviewer/tree/TreeContentMergeViewer.properties b/plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/contentmergeviewer/tree/TreeContentMergeViewer.properties
index 9b7e4b3d9..e4958fda3 100644
--- a/plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/contentmergeviewer/tree/TreeContentMergeViewer.properties
+++ b/plugins/org.eclipse.emf.compare.ide.ui/src/org/eclipse/emf/compare/ide/ui/internal/contentmergeviewer/tree/TreeContentMergeViewer.properties
@@ -19,6 +19,8 @@ compareProgressTask.title= Computing Differences...
tooComplexError.title= Error
tooComplexError.message= Too many differences. Turn on the 'Ignore White Space' option or do a structure compare first.
+UnkownResource = Unknown Resource
+
#####################################################
# Toolbar actions
#####################################################

Back to the top