コード例 #1
0
 public void createFieldEditors() {
   profiles = constructComboBox();
   profiles.addListener(listener);
   profileName =
       new StringFieldEditor(
           PreferenceTypeConstants.P_PROFILE_DISPLAY,
           PreferenceStringConstants.PROFILE,
           getFieldEditorParent());
   userName =
       new StringFieldEditor(
           PreferenceTypeConstants.P_JBOSS_USER,
           PreferenceStringConstants.JBOSS_USER,
           getFieldEditorParent());
   password =
       new StringFieldEditor(
           PreferenceTypeConstants.P_JBOSS_PASSWORD,
           PreferenceStringConstants.JBOSS_PASSWORD,
           getFieldEditorParent());
   url =
       new StringFieldEditor(
           PreferenceTypeConstants.P_JBOSS_URL,
           PreferenceStringConstants.JBOSS_URL,
           getFieldEditorParent());
   addField(profiles);
   addField(profileName);
   addField(userName);
   addField(password);
   addField(url);
 }
コード例 #2
0
 private void deleteProfileOption() {
   profiles.deleteCurrentProfile();
 }
コード例 #3
0
 private void updateProfileOption(String profileName, String profileValue) {
   profiles.updateNameValue(getProfileNameValue());
 }