Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSProjectPropertiesPage.java')
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSProjectPropertiesPage.java41
1 files changed, 21 insertions, 20 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSProjectPropertiesPage.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSProjectPropertiesPage.java
index 65784e7af..47d0f8ce4 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSProjectPropertiesPage.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSProjectPropertiesPage.java
@@ -29,6 +29,7 @@ import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.jface.viewers.TableViewer;
+import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
@@ -122,10 +123,10 @@ public class CVSProjectPropertiesPage extends CVSPropertiesPage {
createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
}
protected Control createDialogArea(Composite parent) {
- parent.getShell().setText(Policy.bind("CVSProjectPropertiesPage.Select_a_Repository_1")); //$NON-NLS-1$
+ parent.getShell().setText(CVSUIMessages.CVSProjectPropertiesPage_Select_a_Repository_1); //$NON-NLS-1$
Composite composite = (Composite) super.createDialogArea(parent);
- createLabel(composite, Policy.bind("CVSProjectPropertiesPage.Select_a_CVS_repository_location_to_share_the_project_with__2"), 1); //$NON-NLS-1$
+ createLabel(composite, CVSUIMessages.CVSProjectPropertiesPage_Select_a_CVS_repository_location_to_share_the_project_with__2, 1); //$NON-NLS-1$
Table table = new Table(composite, SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
GridData data = new GridData(GridData.FILL_HORIZONTAL);
data.heightHint = TABLE_HEIGHT_HINT;
@@ -160,7 +161,7 @@ public class CVSProjectPropertiesPage extends CVSPropertiesPage {
});
viewer.setInput(compatibleLocatons);
- final Button compatibleButton = createCheckBox(composite, Policy.bind("CVSProjectPropertiesPage.31")); //$NON-NLS-1$
+ final Button compatibleButton = createCheckBox(composite, CVSUIMessages.CVSProjectPropertiesPage_31); //$NON-NLS-1$
compatibleButton.setSelection(showCompatible);
compatibleButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
@@ -194,31 +195,31 @@ public class CVSProjectPropertiesPage extends CVSPropertiesPage {
layout.numColumns = 2;
composite.setLayout(layout);
- Label label = createLabel(composite, Policy.bind("CVSProjectPropertiesPage.connectionType"), 1); //$NON-NLS-1$
+ Label label = createLabel(composite, CVSUIMessages.CVSProjectPropertiesPage_connectionType, 1); //$NON-NLS-1$
methodText = createReadOnlyText(composite, "", 1); //$NON-NLS-1$
- label = createLabel(composite, Policy.bind("CVSProjectPropertiesPage.user"), 1); //$NON-NLS-1$
+ label = createLabel(composite, CVSUIMessages.CVSProjectPropertiesPage_user, 1); //$NON-NLS-1$
userText = createReadOnlyText(composite, "", 1); //$NON-NLS-1$
- label = createLabel(composite, Policy.bind("CVSPropertiesPage.host"), 1); //$NON-NLS-1$
+ label = createLabel(composite, CVSUIMessages.CVSPropertiesPage_host, 1); //$NON-NLS-1$
hostText = createReadOnlyText(composite, "", 1); //$NON-NLS-1$
- label = createLabel(composite, Policy.bind("CVSPropertiesPage.port"), 1); //$NON-NLS-1$
+ label = createLabel(composite, CVSUIMessages.CVSPropertiesPage_port, 1); //$NON-NLS-1$
portText = createReadOnlyText(composite, "", 1); //$NON-NLS-1$
- label = createLabel(composite, Policy.bind("CVSPropertiesPage.path"), 1); //$NON-NLS-1$
+ label = createLabel(composite, CVSUIMessages.CVSPropertiesPage_path, 1); //$NON-NLS-1$
pathText = createReadOnlyText(composite, "", 1); //$NON-NLS-1$
- label = createLabel(composite, Policy.bind("CVSPropertiesPage.module"), 1); //$NON-NLS-1$
+ label = createLabel(composite, CVSUIMessages.CVSPropertiesPage_module, 1); //$NON-NLS-1$
moduleText = createReadOnlyText(composite, "", 1); //$NON-NLS-1$
- label = createLabel(composite, Policy.bind("CVSPropertiesPage.tag"), 1); //$NON-NLS-1$
+ label = createLabel(composite, CVSUIMessages.CVSPropertiesPage_tag, 1); //$NON-NLS-1$
tagText = createReadOnlyText(composite, "", 1); //$NON-NLS-1$
createLabel(composite, "", 1); //$NON-NLS-1$
// Should absent directories be fetched on update
- fetchButton = createCheckBox(composite, Policy.bind("CVSProjectPropertiesPage.fetchAbsentDirectoriesOnUpdate")); //$NON-NLS-1$
+ fetchButton = createCheckBox(composite, CVSUIMessages.CVSProjectPropertiesPage_fetchAbsentDirectoriesOnUpdate); //$NON-NLS-1$
fetchButton.addListener(SWT.Selection, new Listener() {
public void handleEvent(Event event) {
fetch = fetchButton.getSelection();
@@ -226,7 +227,7 @@ public class CVSProjectPropertiesPage extends CVSPropertiesPage {
});
// Should the project be configured for watch/edit
- watchEditButton = createCheckBox(composite, Policy.bind("CVSProjectPropertiesPage.configureForWatchEdit")); //$NON-NLS-1$
+ watchEditButton = createCheckBox(composite, CVSUIMessages.CVSProjectPropertiesPage_configureForWatchEdit); //$NON-NLS-1$
watchEditButton.addListener(SWT.Selection, new Listener() {
public void handleEvent(Event event) {
watchEdit = watchEditButton.getSelection();
@@ -239,14 +240,14 @@ public class CVSProjectPropertiesPage extends CVSPropertiesPage {
createLabel(composite, "", 1); //$NON-NLS-1$
label = new Label(composite, SWT.WRAP);
- label.setText(Policy.bind("CVSProjectPropertiesPage.You_can_change_the_sharing_of_this_project_to_another_repository_location._However,_this_is_only_possible_if_the_new_location_is___compatible___(on_the_same_host_with_the_same_repository_path)._1")); //$NON-NLS-1$
+ label.setText(CVSUIMessages.CVSProjectPropertiesPage_You_can_change_the_sharing_of_this_project_to_another_repository_location__However__this_is_only_possible_if_the_new_location_is___compatible____on_the_same_host_with_the_same_repository_path___1); //$NON-NLS-1$
GridData data = new GridData(GridData.FILL_HORIZONTAL);
data.widthHint = 200;
data.horizontalSpan = 2;
label.setLayoutData(data);
Button changeButton = new Button(composite, SWT.PUSH);
- changeButton.setText(Policy.bind("CVSProjectPropertiesPage.Change_Sharing_5")); //$NON-NLS-1$
+ changeButton.setText(CVSUIMessages.CVSProjectPropertiesPage_Change_Sharing_5); //$NON-NLS-1$
changeButton.addListener(SWT.Selection, new Listener() {
public void handleEvent(Event e) {
RepositorySelectionDialog dialog = new RepositorySelectionDialog(getShell(), oldLocation);
@@ -355,7 +356,7 @@ public class CVSProjectPropertiesPage extends CVSPropertiesPage {
hostText.setText(location.getHost());
int port = location.getPort();
if (port == ICVSRepositoryLocation.USE_DEFAULT_PORT) {
- portText.setText(Policy.bind("CVSPropertiesPage.defaultPort")); //$NON-NLS-1$
+ portText.setText(CVSUIMessages.CVSPropertiesPage_defaultPort); //$NON-NLS-1$
} else {
portText.setText("" + port); //$NON-NLS-1$
}
@@ -364,7 +365,7 @@ public class CVSProjectPropertiesPage extends CVSPropertiesPage {
if (syncInfo == null) return;
String label = syncInfo.getRepository();
if (label.equals(FolderSyncInfo.VIRTUAL_DIRECTORY)) {
- label = Policy.bind("CVSPropertiesPage.virtualModule", label); //$NON-NLS-1$
+ label = NLS.bind(CVSUIMessages.CVSPropertiesPage_virtualModule, new String[] { label }); //$NON-NLS-1$
}
moduleText.setText(label);
fetchButton.setSelection(fetch);
@@ -409,14 +410,14 @@ public class CVSProjectPropertiesPage extends CVSPropertiesPage {
}
try {
if (newLocation != null && !isCompatible(newLocation, oldLocation)) {
- if (!MessageDialog.openQuestion(getShell(), Policy.bind("CVSProjectPropertiesPage.32"), Policy.bind("CVSProjectPropertiesPage.33"))) { //$NON-NLS-1$ //$NON-NLS-2$
+ if (!MessageDialog.openQuestion(getShell(), CVSUIMessages.CVSProjectPropertiesPage_32, CVSUIMessages.CVSProjectPropertiesPage_33)) { //$NON-NLS-1$ //$NON-NLS-2$
return false;
}
}
new ProgressMonitorDialog(getShell()).run(true, true, new IRunnableWithProgress() {
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
try {
- monitor.beginTask(Policy.bind("CVSProjectPropertiesPage.progressTaskName"), //$NON-NLS-1$
+ monitor.beginTask(CVSUIMessages.CVSProjectPropertiesPage_progressTaskName, //$NON-NLS-1$
((newLocation == null)?0:100) + (changeReadOnly[0]?100:0));
if (newLocation != null)
provider.setRemoteRoot(newLocation, Policy.subMonitorFor(monitor, 100));
@@ -445,8 +446,8 @@ public class CVSProjectPropertiesPage extends CVSPropertiesPage {
protected void setReadOnly(final boolean watchEdit, final IProgressMonitor monitor) throws CVSException {
monitor.beginTask(null, 512);
String taskName = watchEdit?
- Policy.bind("CVSProjectPropertiesPage.setReadOnly"): //$NON-NLS-1$
- Policy.bind("CVSProjectPropertiesPage.clearReadOnly"); //$NON-NLS-1$
+ CVSUIMessages.CVSProjectPropertiesPage_setReadOnly: //$NON-NLS-1$
+ CVSUIMessages.CVSProjectPropertiesPage_clearReadOnly; //$NON-NLS-1$
monitor.subTask(taskName);
ICVSFolder root = CVSWorkspaceRoot.getCVSFolderFor(project);
root.accept(new ICVSResourceVisitor() {

Back to the top