// addField(new BooleanFieldEditor(
// PreferenceConstants.P_CHAT_OPEN_NEW_WINDOW,
// "Open Chat GUI in New Window (not dockable)",
// getFieldEditorParent()));
RadioGroupFieldEditor editor = new RadioGroupFieldEditor(PreferenceConstants.P_MAIN_WINDOW_STYLE,"Main (ContactList) Window Style (Restart required)",3,
new String[][] {
{ "OS Default", PreferenceConstants.P_MAIN_WINDOW_STYLE_VALUE_OSDEFAULT },
{ "Tool Style", PreferenceConstants.P_MAIN_WINDOW_STYLE_VALUE_TOOL },
{ "No Border", PreferenceConstants.P_MAIN_WINDOW_STYLE_VALUE_NOBORDER }
},getFieldEditorParent());
Control labelControl = editor.getLabelControl(getFieldEditorParent());
labelControl.setToolTipText("Choose style of the GOIM window (requires restart)");
addField(editor);
addField(new RadioGroupFieldEditor(PreferenceConstants.P_CHAT_OPEN_TYPE,
"How to open new Chat Windows ?",
3,new String[][] {
{ "Same Window as Contact List", PreferenceConstants.P_CHAT_OPEN_TYPE_SAMEWINDOW },
{ "All in a New Window", PreferenceConstants.P_CHAT_OPEN_TYPE_NEWWINDOW },
{ "All in a second Tabbed Window", PreferenceConstants.P_CHAT_OPEN_TYPE_NEWTABBEDWINDOW }
},getFieldEditorParent()));
addField(new BooleanFieldEditor(
PreferenceConstants.P_CHAT_ACTIVATE_CHAT_WINDOW,
"Activate (force foreground) Chat Window when New Messages Arrive",
getFieldEditorParent()));
addField(new BooleanFieldEditor(
PreferenceConstants.P_CHAT_ACTIVATE_CHAT_WINDOW_ONLY_IFAVAILABLE,
"Only Activate Chat Window if your status is Online (above option must be enabled)",
getFieldEditorParent()));
addField(new BooleanFieldEditor(
PreferenceConstants.P_CHAT_USE_BROWSER_WIDGET,
"Use Browser Widget in Chat Window",
getFieldEditorParent()));
addField(new BooleanFieldEditor(
PreferenceConstants.P_ENABLE_TRAY_ICON,
"Enable Tray Icon",
getFieldEditorParent()));
String[][] changeStatusToOnGameLaunch = new String[][] {
{ "Don't Change", "" },
{ "Away", Presence.Mode.AWAY.toString() },
{ "Do Not Disturb", Presence.Mode.DO_NOT_DISTURB.toString() }
};
addField(new RadioGroupFieldEditor(PreferenceConstants.P_CHANGE_STATUS_TO_ON_GAME_LAUNCH,
"Change Status When Launching Game To",
1,changeStatusToOnGameLaunch,getFieldEditorParent()));
List<ContactListExtension> lists = ContactListExtensionPoint.getContactListExtensions();
String[][] lists_choose = new String[lists.size()][2];
int i = 0;
for(ContactListExtension contactList : lists) {
lists_choose[i][0] = contactList.name;
lists_choose[i][1] = contactList.viewid;
i++;
}
addField(new RadioGroupFieldEditor(PreferenceConstants.P_CONTACTLIST,"Contact List",1,lists_choose,getFieldEditorParent()));
addField(new BooleanFieldEditor(
PreferenceConstants.P_CONTACTLIST_ALLACCOUNTS,
"All Accounts handled by ONE ContactList",
getFieldEditorParent()));
addField(new BooleanFieldEditor(