Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2006-06-21 20:04:04 +0000
committerMichael Rennie2006-06-21 20:04:04 +0000
commit52fb2102cf7e80d14742a9fcf7ca2223f201a69b (patch)
tree41bf41eb33b943ab5ced4da775f847f62484ab45
parente670dc9f1930a6b047f43f9dac1b0a2d3cf6627b (diff)
downloadeclipse.platform.debug-52fb2102cf7e80d14742a9fcf7ca2223f201a69b.tar.gz
eclipse.platform.debug-52fb2102cf7e80d14742a9fcf7ca2223f201a69b.tar.xz
eclipse.platform.debug-52fb2102cf7e80d14742a9fcf7ca2223f201a69b.zip
Bug 38387
NLS'ing of internal error messages
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationPresentationManager.java4
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.java6
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties6
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/PerspectiveManager.java6
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceLookupPanel.java2
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceLookupUIMessages.properties2
6 files changed, 7 insertions, 19 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationPresentationManager.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationPresentationManager.java
index 6f4925900..7e9f0424c 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationPresentationManager.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationPresentationManager.java
@@ -83,7 +83,7 @@ public class LaunchConfigurationPresentationManager {
if (typeId == null) {
IExtension ext = groups[i].getDeclaringExtension();
IStatus status = new Status(IStatus.ERROR, IDebugUIConstants.PLUGIN_ID, IDebugUIConstants.STATUS_INVALID_EXTENSION_DEFINITION,
- MessageFormat.format(LaunchConfigurationsMessages.LaunchConfigurationPresentationManager_Launch_configuration_tab_group_extension__0__does_not_specify_launch_configuration_type_1, (new String[] {ext.getUniqueIdentifier()})), null);
+ MessageFormat.format("Launch configuration tab group extension {0} does not specify launch configuration type.", (new String[] {ext.getUniqueIdentifier()})), null); //$NON-NLS-1$
DebugUIPlugin.log(status);
} else {
// verify it references a valid launch configuration type
@@ -91,7 +91,7 @@ public class LaunchConfigurationPresentationManager {
if (lct == null) {
IExtension ext = groups[i].getDeclaringExtension();
IStatus status = new Status(IStatus.ERROR, IDebugUIConstants.PLUGIN_ID, IDebugUIConstants.STATUS_INVALID_EXTENSION_DEFINITION,
- MessageFormat.format(LaunchConfigurationsMessages.LaunchConfigurationPresentationManager_Launch_configuration_tab_group_extension__0__refers_to_non_existant_launch_configuration_type__1__2, (new String[] {ext.getUniqueIdentifier(), typeId})), null);
+ MessageFormat.format("Launch configuration tab group extension {0} refers to non-existent launch configuration type {1}.", (new String[] {ext.getUniqueIdentifier(), typeId})), null); //$NON-NLS-1$
DebugUIPlugin.log(status);
}
}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.java
index 2e12eb9bf..24872a28f 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.java
@@ -89,16 +89,10 @@ public class LaunchConfigurationsMessages extends NLS {
public static String LaunchConfigurationsDialog_Error_1;
public static String LaunchConfigurationsDialog_Warning_2;
public static String LaunchConfigurationsDialog_Information_3;
-
- public static String LaunchConfigurationPresentationManager_Launch_configuration_tab_group_extension__0__does_not_specify_launch_configuration_type_1;
- public static String LaunchConfigurationPresentationManager_Launch_configuration_tab_group_extension__0__refers_to_non_existant_launch_configuration_type__1__2;
public static String LaunchConfigurationPresentationManager_No_tab_group_defined_for_launch_configuration_type__0__3;
-
public static String PerspectiveManager_Error_1;
public static String PerspectiveManager_Unable_to_switch_perpsectives_as_specified_by_launch___0__4;
public static String PerspectiveManager_Unable_to_switch_to_perspective___0__2;
- public static String PerspectiveManager_9;
-
public static String LaunchShortcutExtension_Error_4;
public static String LaunchShortcutExtension_Unable_to_use_launch_shortcut_5;
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties
index d750e5b38..1e73497a2 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsMessages.properties
@@ -87,16 +87,10 @@ LaunchConfigurationsDialog_4=Filter launch configurations...
LaunchConfigurationsDialog_5=Duplicates the currently selected launch configuration
LaunchConfigurationsDialog_c_ancel=Cancel
LaunchConfigurationsDialog_7=All launch configuration types are currently filtered
-
-LaunchConfigurationPresentationManager_Launch_configuration_tab_group_extension__0__does_not_specify_launch_configuration_type_1=Launch configuration tab group extension {0} does not specify launch configuration type
-LaunchConfigurationPresentationManager_Launch_configuration_tab_group_extension__0__refers_to_non_existant_launch_configuration_type__1__2=Launch configuration tab group extension {0} refers to non-existent launch configuration type {1}
LaunchConfigurationPresentationManager_No_tab_group_defined_for_launch_configuration_type__0__3=No tab group defined for launch configuration type {0}
-
PerspectiveManager_Error_1=Error
PerspectiveManager_Unable_to_switch_perpsectives_as_specified_by_launch___0__4=Unable to open perspectives as specified by launch: {0}
PerspectiveManager_Unable_to_switch_to_perspective___0__2=Unable to open perspective: {0}
-PerspectiveManager_9=Exception occurred while generating launch perspectives preference XML
-
LaunchShortcutExtension_Error_4=Error
LaunchShortcutExtension_Unable_to_use_launch_shortcut_5=Unable to use launch shortcut
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/PerspectiveManager.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/PerspectiveManager.java
index a0acfe45b..495f5a06f 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/PerspectiveManager.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/PerspectiveManager.java
@@ -668,11 +668,11 @@ public class PerspectiveManager implements ILaunchListener, ISuspendTriggerListe
xml = generatePerspectiveXML();
DebugUIPlugin.getDefault().getPreferenceStore().putValue(IInternalDebugUIConstants.PREF_LAUNCH_PERSPECTIVES, xml);
} catch (IOException e) {
- DebugUIPlugin.log(DebugUIPlugin.newErrorStatus(LaunchConfigurationsMessages.PerspectiveManager_9, e));
+ DebugUIPlugin.log(DebugUIPlugin.newErrorStatus("Exception occurred while generating launch perspectives preference XML", e)); //$NON-NLS-1$
} catch (ParserConfigurationException e) {
- DebugUIPlugin.log(DebugUIPlugin.newErrorStatus(LaunchConfigurationsMessages.PerspectiveManager_9, e));
+ DebugUIPlugin.log(DebugUIPlugin.newErrorStatus("Exception occurred while generating launch perspectives preference XML", e)); //$NON-NLS-1$
} catch (TransformerException e) {
- DebugUIPlugin.log(DebugUIPlugin.newErrorStatus(LaunchConfigurationsMessages.PerspectiveManager_9, e));
+ DebugUIPlugin.log(DebugUIPlugin.newErrorStatus("Exception occurred while generating launch perspectives preference XML", e)); //$NON-NLS-1$
}
}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceLookupPanel.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceLookupPanel.java
index 12af6580c..01e102277 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceLookupPanel.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceLookupPanel.java
@@ -350,7 +350,7 @@ public class SourceLookupPanel extends AbstractLaunchConfigurationTab implements
}
else workingCopy = configuration;
if(workingCopy == null) {
- DebugUIPlugin.logErrorMessage(SourceLookupUIMessages.sourceLookupPanel_1);
+ DebugUIPlugin.logErrorMessage("Error occurred - unable to apply source lookup path changes."); //$NON-NLS-1$
return;
}
//set new values in director so memento returned is correct
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceLookupUIMessages.properties b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceLookupUIMessages.properties
index a02d39fb4..e7737f3a6 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceLookupUIMessages.properties
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceLookupUIMessages.properties
@@ -39,7 +39,7 @@ folderSelection_label=&Choose folders to add:
manageSourceDialog_title = Edit Source Lookup Path
manageSourceDialog_description = Edit the path used to locate source files.
-sourceLookupPanel_1 = Error occurred - unable to apply source lookup path changes.
+sourceLookupPanel_1 = Unable to apply source lookup path changes.
sourceLookupPanel_2 = Launch configuration does not support source lookup
ResolveDuplicatesHandler_0=Select Source File
ResolveDuplicatesHandler_1=Choose a source file (? = any character, * = any string)

Back to the top