this.projectNameText.setText(projectNameString); this.jadFileText.setText(configuration.getAttribute(MIDletLauncherConstants.JAD_FILE, "Generic-Midp2Cldc11-en_US-example.jad")); this.polishHomeText.setText(configuration.getAttribute(MeposeConstants.ID_POLISH_HOME, "/home/mkoch/J2ME-Polish")); this.wtkHomeText.setText(configuration.getAttribute(MeposeConstants.ID_WTK_HOME, "/home/mkoch/local/WTK2.2"));  Map attrMap = configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_CONNECT_MAP, (Map) null);  if (attrMap != null) { this.hostNameText.setText((String) attrMap.get("hostname")); this.portText.setText((String) attrMap.get("port")); } else {  this.hostNameText.setText("localhost"); this.portText.setText("8000"); } } catch (CoreException e) {  e.printStackTrace(); } }
}
  public void initializeFrom(ILaunchConfiguration configuration)  {    try      {        System.out.println("DEBUG:MIDletLaunchConfigurationTab.initializeFrom(...):enter.");//      projectName.setText(configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, "unknown"));        // MeposeConstants.ID_PROJECT_NAME was used here.        String projectNameString = configuration.getAttribute(MeposeConstants.ID_PROJECT_NAME, "");        if(projectNameString == null) {            projectNameString = getSelectedJavaProjectName();        }        this.projectNameText.setText(projectNameString);        this.jadFileText.setText(configuration.getAttribute(MIDletLauncherConstants.JAD_FILE, "Generic-Midp2Cldc11-en_US-example.jad"));        this.polishHomeText.setText(configuration.getAttribute(MeposeConstants.ID_POLISH_HOME, "/home/mkoch/J2ME-Polish"));        this.wtkHomeText.setText(configuration.getAttribute(MeposeConstants.ID_WTK_HOME, "/home/mkoch/local/WTK2.2"));        Map attrMap = configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_CONNECT_MAP, (Map) null);        if (attrMap != null)          {            this.hostNameText.setText((String) attrMap.get("hostname"));            this.portText.setText((String) attrMap.get("port"));          }        else          {            // Use default values.            this.hostNameText.setText("localhost");            this.portText.setText("8000");          }      }    catch (CoreException e)      {        // TODO: Implement proper logging here.        e.printStackTrace();      }  }