Fixed unchecked cast warnings
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/AppletParametersTab.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/AppletParametersTab.java
index 774c4f7..065d515 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/AppletParametersTab.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/AppletParametersTab.java
@@ -49,7 +49,7 @@
 import org.eclipse.swt.widgets.TableColumn;
 import org.eclipse.swt.widgets.Text;
 import org.eclipse.ui.PlatformUI;
- 
+
 /**
  * This tab appears for java applet launch configurations and allows the user to edit
  * applet-specific attributes such as width, height, name & applet parameters.
@@ -198,7 +198,7 @@
 				}
 
 				String key = (String) element;
-				Map<String, String> params = (Map<String, String>) fViewer.getInput();
+				Map<String, String> params = getViewerInput();
 				Object object = params.get(key);
 				if (object != null) {
 					return object.toString();
@@ -268,7 +268,7 @@
 	private void handleParametersEditButtonSelected() {
 		IStructuredSelection selection = (IStructuredSelection) fViewer.getSelection();
 		String key = (String) selection.getFirstElement();
-		Map<String, String> params = (Map<String, String>) fViewer.getInput();
+		Map<String, String> params = getViewerInput();
 		String value = params.get(key);
 		
 		NameValuePairDialog dialog =
@@ -285,7 +285,7 @@
 		Object[] keys = selection.toArray();
 		for (int i = 0; i < keys.length; i++) {
 			String key = (String) keys[i];
-			Map<String, String> params = (Map<String, String>) fViewer.getInput();
+			Map<String, String> params = getViewerInput();
 			params.remove(key);			
 		}
 		fViewer.refresh();
@@ -324,13 +324,18 @@
 			return;
 		}
 		String[] nameValuePair = dialog.getNameValuePair();
-		Map<String, String> params = (Map<String, String>) fViewer.getInput();
+		Map<String, String> params = getViewerInput();
 		params.remove(key);
 		params.put(nameValuePair[0], nameValuePair[1]);
 		fViewer.refresh();
 		updateLaunchConfigurationDialog();	
 	}
-	
+
+	@SuppressWarnings("unchecked")
+	private Map<String, String> getViewerInput() {
+		return (Map<String, String>) fViewer.getInput();
+	}
+
 	/**
 	 * @see org.eclipse.debug.ui.ILaunchConfigurationTab#performApply(ILaunchConfigurationWorkingCopy)
 	 */
@@ -344,7 +349,7 @@
 		} catch (NumberFormatException e) {
 		}
 		configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_APPLET_NAME, fNameText.getText());
-		configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_APPLET_PARAMETERS, (Map<String, String>) fViewer.getInput());
+		configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_APPLET_PARAMETERS, getViewerInput());
 	}
 
 	/**