Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Piggott2011-04-19 01:18:19 -0400
committerMatthew Piggott2011-04-19 01:27:13 -0400
commit903e349338bfabcccb07e9916c3e16c8e6909427 (patch)
treed10a8a17d773d941afa43f3c59a256b8e4fe8268 /org.eclipse.m2e.core.ui
parent343959ac248820cf134409ac35e8c3af0bd556f7 (diff)
downloadm2e-core-903e349338bfabcccb07e9916c3e16c8e6909427.tar.gz
m2e-core-903e349338bfabcccb07e9916c3e16c8e6909427.tar.xz
m2e-core-903e349338bfabcccb07e9916c3e16c8e6909427.zip
UpdateDependenciesDialog - externalize strings
Diffstat (limited to 'org.eclipse.m2e.core.ui')
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/Messages.java14
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/UpdateDepenciesDialog.java22
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/messages.properties7
3 files changed, 31 insertions, 12 deletions
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/Messages.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/Messages.java
index 07df7dde..df8672e6 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/Messages.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/Messages.java
@@ -602,6 +602,20 @@ public class Messages extends NLS {
public static String SelectionUtil_error_cannot_read;
+ public static String UpdateDepenciesDialog_availableCodebasesLabel;
+
+ public static String UpdateDepenciesDialog_deselectAll;
+
+ public static String UpdateDepenciesDialog_dialogMessage;
+
+ public static String UpdateDepenciesDialog_forceUpdate;
+
+ public static String UpdateDepenciesDialog_offline;
+
+ public static String UpdateDepenciesDialog_selectAll;
+
+ public static String UpdateDepenciesDialog_title;
+
public static String UpdateSourcesAction_error_cannot_update;
public static String UpdateSourcesAction_error_message;
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/UpdateDepenciesDialog.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/UpdateDepenciesDialog.java
index f47cf9c4..cb271c72 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/UpdateDepenciesDialog.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/dialogs/UpdateDepenciesDialog.java
@@ -17,9 +17,6 @@ import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
@@ -51,6 +48,7 @@ import org.eclipse.ui.ide.IDE;
import org.eclipse.m2e.core.MavenPlugin;
import org.eclipse.m2e.core.project.IMavenProjectFacade;
import org.eclipse.m2e.core.ui.internal.MavenImages;
+import org.eclipse.m2e.core.ui.internal.Messages;
/**
* UpdateDep
@@ -58,7 +56,6 @@ import org.eclipse.m2e.core.ui.internal.MavenImages;
* @author matthew
*/
public class UpdateDepenciesDialog extends TitleAreaDialog {
- private static final Logger log = LoggerFactory.getLogger(UpdateDepenciesDialog.class);
private CheckboxTreeViewer codebaseViewer;
@@ -91,7 +88,7 @@ public class UpdateDepenciesDialog extends TitleAreaDialog {
@Override
protected void configureShell(Shell shell) {
super.configureShell(shell);
- shell.setText("Update Maven Dependencies");
+ shell.setText(Messages.UpdateDepenciesDialog_title);
}
/**
@@ -99,6 +96,7 @@ public class UpdateDepenciesDialog extends TitleAreaDialog {
* @param parent
*/
@Override
+ @SuppressWarnings("rawtypes")
protected Control createDialogArea(Composite parent) {
Composite area = (Composite) super.createDialogArea(parent);
Composite container = new Composite(area, SWT.NONE);
@@ -106,7 +104,7 @@ public class UpdateDepenciesDialog extends TitleAreaDialog {
container.setLayoutData(new GridData(GridData.FILL_BOTH));
Label lblAvailable = new Label(container, SWT.NONE);
- lblAvailable.setText("Available Maven Codebases");
+ lblAvailable.setText(Messages.UpdateDepenciesDialog_availableCodebasesLabel);
lblAvailable.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 2, 1));
codebaseViewer = new CheckboxTreeViewer(container, SWT.BORDER);
@@ -197,7 +195,7 @@ public class UpdateDepenciesDialog extends TitleAreaDialog {
Button selectAllBtn = new Button(container, SWT.NONE);
selectAllBtn.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));
- selectAllBtn.setText("Select All");
+ selectAllBtn.setText(Messages.UpdateDepenciesDialog_selectAll);
selectAllBtn.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
for(IProject project : projects) {
@@ -212,7 +210,7 @@ public class UpdateDepenciesDialog extends TitleAreaDialog {
Button deselectAllBtn = new Button(container, SWT.NONE);
deselectAllBtn.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false, 1, 1));
- deselectAllBtn.setText("Deselect All");
+ deselectAllBtn.setText(Messages.UpdateDepenciesDialog_deselectAll);
deselectAllBtn.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
for(IProject project : projects) {
@@ -226,17 +224,17 @@ public class UpdateDepenciesDialog extends TitleAreaDialog {
});
offline = new Button(container, SWT.CHECK);
- offline.setText("Offline");
+ offline.setText(Messages.UpdateDepenciesDialog_offline);
offline.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 2, 1));
offline.setSelection(isOffline);
forceUpdate = new Button(container, SWT.CHECK);
- forceUpdate.setText("Forces a check for updated releases and snapshots\non remote repositories");
+ forceUpdate.setText(Messages.UpdateDepenciesDialog_forceUpdate);
forceUpdate.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 2, 1));
forceUpdate.setSelection(isForceUpdate);
- setTitle("Update Maven Dependencies");
- setMessage("Select Maven codebases to update dependencies");
+ setTitle(Messages.UpdateDepenciesDialog_title);
+ setMessage(Messages.UpdateDepenciesDialog_dialogMessage);
return area;
}
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/messages.properties b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/messages.properties
index a301da66..0a98b044 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/messages.properties
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/messages.properties
@@ -290,6 +290,13 @@ RemoteArchetypeCatalogDialog_message_found=Found {0} archetype(s)
RemoteArchetypeCatalogDialog_title=Remote Archetype Catalog
RepositoryNode_updating=\ [updating]
SelectionUtil_error_cannot_read=Can't read Maven project
+UpdateDepenciesDialog_availableCodebasesLabel=Available Maven Codebases
+UpdateDepenciesDialog_deselectAll=Deselect All
+UpdateDepenciesDialog_dialogMessage=Select Maven codebases to update dependencies
+UpdateDepenciesDialog_forceUpdate=Force check for updated releases and snapshots/non remote repositories
+UpdateDepenciesDialog_offline=Offline
+UpdateDepenciesDialog_selectAll=Select All
+UpdateDepenciesDialog_title=Update Maven Dependencies
UpdateSourcesAction_error_cannot_update=Unable to update Maven configuration
UpdateSourcesAction_error_message=Unable to update maven configuration for the following projects\:
UpdateSourcesAction_error_title=Error Updating Maven Configuration

Back to the top