public void setDefaults(ILaunchConfigurationWorkingCopy config) {
    IPreferenceStore store = Activator.getDefault().getPreferenceStore();
    String dftHost = store.getString(PreferenceConstants.PREF_HOST);
    String dftPort = store.getString(PreferenceConstants.PREF_PORT);
    boolean dftNullInput = store.getBoolean(PreferenceConstants.PREF_NULL_INPUT);
    config.setAttribute(ATTR_COPROC_HOST, dftHost);
    config.setAttribute(ATTR_COPROC_PORT, dftPort);
    config.setAttribute(ATTR_INPUT_XML, DFLT_INPUT_XML);
    config.setAttribute(ATTR_INPUT_XSL, DFLT_INPUT_XSL);
    config.setAttribute(ATTR_NULL_XML, dftNullInput);

    config.setAttribute(ATTR_HEADER_VALUES, defaultHeaderValues);
    config.setAttribute(
        Messages.CoProc2LaunchConfigurationMainTab_HeaderStatusColumnTitle, defaultHeaderStatus);
  }
Exemplo n.º 2
0
 public CoProc2PreferencePage() {
   super(GRID);
   setPreferenceStore(Activator.getDefault().getPreferenceStore());
   setDescription(Messages.CoProc2PreferencePage_Description);
 }