Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2005-04-05 20:52:46 +0000
committerMichael Valenta2005-04-05 20:52:46 +0000
commitfaef8a53e63ccf13ecd34a88f7e8c8939531f1b1 (patch)
treea82ab462ac43e9cc905d1cc8d56cc72c63702f4a /bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/MergeSynchronizeParticipant.java
parent4380468cac65f229ff907e487fb2367f1edabf1b (diff)
downloadeclipse.platform.team-faef8a53e63ccf13ecd34a88f7e8c8939531f1b1.tar.gz
eclipse.platform.team-faef8a53e63ccf13ecd34a88f7e8c8939531f1b1.tar.xz
eclipse.platform.team-faef8a53e63ccf13ecd34a88f7e8c8939531f1b1.zip
Converted to using Runtime NLS support
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/MergeSynchronizeParticipant.java')
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/MergeSynchronizeParticipant.java17
1 files changed, 9 insertions, 8 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/MergeSynchronizeParticipant.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/MergeSynchronizeParticipant.java
index a5a6150a2..6adf35772 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/MergeSynchronizeParticipant.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/MergeSynchronizeParticipant.java
@@ -15,11 +15,12 @@ import java.util.*;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.*;
+import org.eclipse.osgi.util.NLS;
import org.eclipse.team.core.TeamException;
import org.eclipse.team.core.subscribers.Subscriber;
import org.eclipse.team.internal.ccvs.core.*;
+import org.eclipse.team.internal.ccvs.ui.CVSUIMessages;
import org.eclipse.team.internal.ccvs.ui.CVSUIPlugin;
-import org.eclipse.team.internal.ccvs.ui.Policy;
import org.eclipse.team.internal.ccvs.ui.actions.ShowAnnotationAction;
import org.eclipse.team.internal.ccvs.ui.actions.ShowResourceInHistoryAction;
import org.eclipse.team.internal.ui.Utils;
@@ -120,12 +121,12 @@ public class MergeSynchronizeParticipant extends CVSParticipant {
String qualifier = descriptor.getId();
String localname = secondayId;
if(qualifier == null || localname == null) {
- throw new PartInitException(Policy.bind("MergeSynchronizeParticipant.8")); //$NON-NLS-1$
+ throw new PartInitException(CVSUIMessages.MergeSynchronizeParticipant_8); //$NON-NLS-1$
}
try {
setSubscriber(read(new QualifiedName(qualifier, localname), memento));
} catch (CVSException e) {
- throw new PartInitException(Policy.bind("MergeSynchronizeParticipant.9"), e); //$NON-NLS-1$
+ throw new PartInitException(CVSUIMessages.MergeSynchronizeParticipant_9, e); //$NON-NLS-1$
}
}
}
@@ -155,7 +156,7 @@ public class MergeSynchronizeParticipant extends CVSParticipant {
* @see org.eclipse.team.ui.synchronize.ISynchronizeParticipant#getName()
*/
public String getName() {
- return Policy.bind("CompareParticipant.0", ((CVSMergeSubscriber)getSubscriber()).getName(), Utils.convertSelection(getSubscriber().roots())); //$NON-NLS-1$
+ return NLS.bind(CVSUIMessages.CompareParticipant_0, new String[] { ((CVSMergeSubscriber)getSubscriber()).getName(), Utils.convertSelection(getSubscriber().roots()) }); //$NON-NLS-1$
}
/*
@@ -221,7 +222,7 @@ public class MergeSynchronizeParticipant extends CVSParticipant {
IMemento[] rootNodes = memento.getChildren(CTX_ROOT);
if(rootNodes == null || rootNodes.length == 0) {
- throw new CVSException(Policy.bind("MergeSynchronizeParticipant.10", id.toString())); //$NON-NLS-1$
+ throw new CVSException(NLS.bind(CVSUIMessages.MergeSynchronizeParticipant_10, new String[] { id.toString() })); //$NON-NLS-1$
}
List resources = new ArrayList();
@@ -233,11 +234,11 @@ public class MergeSynchronizeParticipant extends CVSParticipant {
resources.add(resource);
} else {
// log that a resource previously in the merge set is no longer in the workspace
- CVSProviderPlugin.log(CVSStatus.INFO, Policy.bind("MergeSynchronizeParticipant.11", path.toString()), null); //$NON-NLS-1$
+ CVSProviderPlugin.log(CVSStatus.INFO, NLS.bind(CVSUIMessages.MergeSynchronizeParticipant_11, new String[] { path.toString() }), null); //$NON-NLS-1$
}
}
if(resources.isEmpty()) {
- throw new CVSException(Policy.bind("MergeSynchronizeParticipant.12", id.toString())); //$NON-NLS-1$
+ throw new CVSException(NLS.bind(CVSUIMessages.MergeSynchronizeParticipant_12, new String[] { id.toString() })); //$NON-NLS-1$
}
IResource[] roots = (IResource[]) resources.toArray(new IResource[resources.size()]);
return new CVSMergeSubscriber(id, roots, start, end);
@@ -275,6 +276,6 @@ public class MergeSynchronizeParticipant extends CVSParticipant {
* @see org.eclipse.team.ui.synchronize.SubscriberParticipant#getShortTaskName()
*/
protected String getShortTaskName() {
- return Policy.bind("Participant.merging"); //$NON-NLS-1$
+ return CVSUIMessages.Participant_merging; //$NON-NLS-1$
}
}

Back to the top