Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2006-06-26 20:14:56 +0000
committerMichael Valenta2006-06-26 20:14:56 +0000
commit6aa56bfe7428bfd12765e2d7e9a8cc07a7688097 (patch)
tree0e5184447b663d05f816d7d1986a5ecb2cdb215a
parentb8d666346e9fc0f27a6cf0f29bca404db6ac068f (diff)
downloadeclipse.platform.team-6aa56bfe7428bfd12765e2d7e9a8cc07a7688097.tar.gz
eclipse.platform.team-6aa56bfe7428bfd12765e2d7e9a8cc07a7688097.tar.xz
eclipse.platform.team-6aa56bfe7428bfd12765e2d7e9a8cc07a7688097.zip
Bug 146915 [Sync View] Sync job titles are missing project/working set names
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/Messages.java33
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/ModelSynchronizeParticipant.java5
2 files changed, 3 insertions, 35 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/Messages.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/Messages.java
deleted file mode 100644
index 1345c6c85..000000000
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/Messages.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2006 IBM Corporation and others.
- * 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.team.internal.ui;
-
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-public class Messages {
- private static final String BUNDLE_NAME = "org.eclipse.team.internal.ui.messages"; //$NON-NLS-1$
-
- private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
- .getBundle(BUNDLE_NAME);
-
- private Messages() {
- }
-
- public static String getString(String key) {
- // TODO Auto-generated method stub
- try {
- return RESOURCE_BUNDLE.getString(key);
- } catch (MissingResourceException e) {
- return '!' + key + '!';
- }
- }
-}
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/ModelSynchronizeParticipant.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/ModelSynchronizeParticipant.java
index 3e59167bd..1d93d431f 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/ModelSynchronizeParticipant.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/ModelSynchronizeParticipant.java
@@ -398,9 +398,10 @@ public class ModelSynchronizeParticipant extends
return new IRefreshable() {
public RefreshParticipantJob createJob(String interval) {
+ String jobName = NLS.bind(TeamUIMessages.RefreshSchedule_15, new String[] { ModelSynchronizeParticipant.this.getName(), interval });
return new RefreshModelParticipantJob(ModelSynchronizeParticipant.this,
- TeamUIMessages.RefreshSchedule_14,
- NLS.bind(TeamUIMessages.RefreshSchedule_15, new String[] { ModelSynchronizeParticipant.this.getName(), interval }),
+ jobName,
+ jobName,
context.getScope().getMappings(),
new RefreshUserNotificationPolicy(ModelSynchronizeParticipant.this));
}

Back to the top