public void initializeValues(PreferencePage propertyPage) {
   this.propertyPage = propertyPage;
   this.fOpenDebugViews.setSelection(
       PHPDebugPreferencesUtil.getBoolean(PHPDebugCorePreferenceNames.OPEN_DEBUG_VIEWS, true));
   this.fOpenInBrowser.setSelection(
       PHPDebugPreferencesUtil.getBoolean(PHPDebugCorePreferenceNames.OPEN_IN_BROWSER, true));
 }
  // Initialize the dialog's values.
  private void internalInitializeValues() {
    // TODO: move to preference manager

    originalPort = PHPDebugPreferencesUtil.getInt(XDebugPreferenceMgr.XDEBUG_PREF_PORT, 0);
    if (originalPort == 0) {
      XDebugPreferenceMgr.setDefaults();
      originalPort = PHPDebugPreferencesUtil.getInt(XDebugPreferenceMgr.XDEBUG_PREF_PORT, 0);
    }
    portTextBox.setText(Integer.toString(originalPort));
    showGlobals.setSelection(
        PHPDebugPreferencesUtil.getBoolean(XDebugPreferenceMgr.XDEBUG_PREF_SHOWSUPERGLOBALS, true));
    useMultiSession.setSelection(
        PHPDebugPreferencesUtil.getBoolean(XDebugPreferenceMgr.XDEBUG_PREF_MULTISESSION, true));
    variableDepth.setSelection(
        PHPDebugPreferencesUtil.getInt(XDebugPreferenceMgr.XDEBUG_PREF_ARRAYDEPTH, 0));
    maxChildren.setSelection(
        PHPDebugPreferencesUtil.getInt(XDebugPreferenceMgr.XDEBUG_PREF_CHILDREN, 0));
    acceptRemoteSession.select(
        PHPDebugPreferencesUtil.getInt(XDebugPreferenceMgr.XDEBUG_PREF_REMOTESESSION, 0));

    // capture output
    captureStdout.select(
        PHPDebugPreferencesUtil.getInt(XDebugPreferenceMgr.XDEBUG_PREF_CAPTURESTDOUT, 0));
    captureStderr.select(
        PHPDebugPreferencesUtil.getInt(XDebugPreferenceMgr.XDEBUG_PREF_CAPTURESTDERR, 0));

    // proxy defaults
    boolean useProxyState =
        PHPDebugPreferencesUtil.getBoolean(XDebugPreferenceMgr.XDEBUG_PREF_USEPROXY, false);
    useProxy.setSelection(useProxyState);
    String ideKey = PHPDebugPreferencesUtil.getString(XDebugPreferenceMgr.XDEBUG_PREF_IDEKEY, null);
    if (StringUtil.isEmpty(ideKey)) {
      ideKey = DBGpProxyHandler.instance.generateIDEKey();
    }
    idekeyTextBox.setText(ideKey);
    proxyTextBox.setText(
        PHPDebugPreferencesUtil.getString(XDebugPreferenceMgr.XDEBUG_PREF_PROXY, StringUtil.EMPTY));
    toggleProxyFields(useProxyState);
  }