Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Weinand2005-04-06 10:43:07 +0000
committerAndre Weinand2005-04-06 10:43:07 +0000
commit83a0c7caecdbddedc33e39ef53d37e7d33e542ea (patch)
treedee3c89a78c1e27d3de37fcec824f9ce33b140ce /bundles
parent57482e9aeb73c61fe0648ec70b1646679ea2941e (diff)
downloadeclipse.platform.team-83a0c7caecdbddedc33e39ef53d37e7d33e542ea.tar.gz
eclipse.platform.team-83a0c7caecdbddedc33e39ef53d37e7d33e542ea.tar.xz
eclipse.platform.team-83a0c7caecdbddedc33e39ef53d37e7d33e542ea.zip
simplified two NLS key calculations
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java9
-rw-r--r--bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java9
2 files changed, 12 insertions, 6 deletions
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java
index 1e458655d..590981777 100644
--- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java
+++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java
@@ -3678,10 +3678,13 @@ public class TextMergeViewer extends ContentMergeViewer {
c.getDisplay().beep();
- String key= down ? "atEnd" : "atBeginning"; //$NON-NLS-1$ //$NON-NLS-2$
+ if (down)
+ return MessageDialog.openQuestion(c.getShell(),
+ CompareMessages.getString("TextMergeViewer.atEnd.title"), //$NON-NLS-1$
+ CompareMessages.getString("TextMergeViewer.atEnd.message")); //$NON-NLS-1$
return MessageDialog.openQuestion(c.getShell(),
- CompareMessages.getString("TextMergeViewer."+key+".title"), //$NON-NLS-1$ //$NON-NLS-2$
- CompareMessages.getString("TextMergeViewer."+key+".message")); //$NON-NLS-1$ //$NON-NLS-2$
+ CompareMessages.getString("TextMergeViewer.atBeginning.title"), //$NON-NLS-1$
+ CompareMessages.getString("TextMergeViewer.atBeginning.message")); //$NON-NLS-1$
}
return false;
}
diff --git a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java
index 1e458655d..590981777 100644
--- a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java
+++ b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java
@@ -3678,10 +3678,13 @@ public class TextMergeViewer extends ContentMergeViewer {
c.getDisplay().beep();
- String key= down ? "atEnd" : "atBeginning"; //$NON-NLS-1$ //$NON-NLS-2$
+ if (down)
+ return MessageDialog.openQuestion(c.getShell(),
+ CompareMessages.getString("TextMergeViewer.atEnd.title"), //$NON-NLS-1$
+ CompareMessages.getString("TextMergeViewer.atEnd.message")); //$NON-NLS-1$
return MessageDialog.openQuestion(c.getShell(),
- CompareMessages.getString("TextMergeViewer."+key+".title"), //$NON-NLS-1$ //$NON-NLS-2$
- CompareMessages.getString("TextMergeViewer."+key+".message")); //$NON-NLS-1$ //$NON-NLS-2$
+ CompareMessages.getString("TextMergeViewer.atBeginning.title"), //$NON-NLS-1$
+ CompareMessages.getString("TextMergeViewer.atBeginning.message")); //$NON-NLS-1$
}
return false;
}

Back to the top