externalize some strings
authordadubrow
Wed, 25 Aug 2010 15:37:23 -0500
changeset 1885 988b4ab1b8c1
parent 1884 94c9fe3693ea
child 1887 9c8b9f280200
externalize some strings
core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/discovery/ui/Messages.java
core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/discovery/ui/messages.properties
core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/internal/discovery/ui/wizard/ExportWizard.java
core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/internal/discovery/ui/wizard/FeatureInfo.java
--- a/core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/discovery/ui/Messages.java	Wed Aug 25 15:24:01 2010 -0500
+++ b/core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/discovery/ui/Messages.java	Wed Aug 25 15:37:23 2010 -0500
@@ -65,8 +65,10 @@
 	public static String ExportPage_Title;
 	public static String ExportPage_ViewerGroupLabel;
 	public static String ExportWizard_ErrorTitle;
+	public static String ExportWizard_ReadInstalledFeaturesError;
 	public static String ExportWizard_Title;
 	public static String ExportWizard_WriteFileError;
+	public static String ExportWizard_WriteInstalledFeaturesError;
 	public static String FeatureInstallOperation_ConfiguringTaskName;
 	public static String FeatureInstallOperation_IdLabel;
 	public static String FeatureInstallOperation_MissingFeaturesError;
--- a/core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/discovery/ui/messages.properties	Wed Aug 25 15:24:01 2010 -0500
+++ b/core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/discovery/ui/messages.properties	Wed Aug 25 15:37:23 2010 -0500
@@ -43,8 +43,10 @@
 ExportPage_Title=Export Installed Feature Configuration
 ExportPage_ViewerGroupLabel=Export features:
 ExportWizard_ErrorTitle=Error
+ExportWizard_ReadInstalledFeaturesError=Could not read installed features file: 
 ExportWizard_Title=Export
 ExportWizard_WriteFileError=Could not write export file due to error: {0}
+ExportWizard_WriteInstalledFeaturesError=Could not write installed features file: 
 FeatureInstallOperation_ConfiguringTaskName=Configuring install operation
 FeatureInstallOperation_IdLabel=id=
 FeatureInstallOperation_MissingFeaturesError=Install failed. Could not find some features: \n
--- a/core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/internal/discovery/ui/wizard/ExportWizard.java	Wed Aug 25 15:24:01 2010 -0500
+++ b/core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/internal/discovery/ui/wizard/ExportWizard.java	Wed Aug 25 15:37:23 2010 -0500
@@ -88,7 +88,7 @@
 			try {
 				Streamer.writeToXML(new FileOutputStream(file), data);
 			} catch (Exception e) {
-				Activator.logError("Could not write installed features file: " + file, e);
+				Activator.logError(Messages.ExportWizard_WriteInstalledFeaturesError + file, e);
 			}
 		}
 		else {
@@ -96,7 +96,7 @@
 				ImportExportData data = Streamer.readFromXML(new FileInputStream(file));
 				installedFeatures = data.getFeatureInfos();
 			} catch (Exception e) {
-				Activator.logError("Could not read installed features file: " + file, e);
+				Activator.logError(Messages.ExportWizard_ReadInstalledFeaturesError + file, e);
 			}
 		}
 		
--- a/core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/internal/discovery/ui/wizard/FeatureInfo.java	Wed Aug 25 15:24:01 2010 -0500
+++ b/core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/internal/discovery/ui/wizard/FeatureInfo.java	Wed Aug 25 15:37:23 2010 -0500
@@ -73,6 +73,6 @@
 	
 	@Override
 	public String toString() {
-		return getId() + " " + getVersion().toString();
+		return getId() + " " + getVersion().toString(); //$NON-NLS-1$
 	}
 }
\ No newline at end of file