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(
PreferenceConstants.P_CONTACTLIST_AUTOOPEN,
"Automatically Open ContactList(s)",
getFieldEditorParent()));
addField(new BooleanFieldEditor(PreferenceConstants.P_GAMES_ALLOW_SERVER_QUERY,"Allow Query of Game Servers (after you join)",getFieldEditorParent()));
addField(new BooleanFieldEditor(PreferenceConstants.P_STARTSNIFFER, "Start Sniffer",getFieldEditorParent()));
addField(new BooleanFieldEditor(PreferenceConstants.P_ENABLE_SMACK_DEBUGGING,"Enable Smack debugging console",getFieldEditorParent()));
addField(new BooleanFieldEditor(PreferenceConstants.P_MAIN_WINDOW_DISPLAY_MENUBAR,"Display Menubar in Main Window",getFieldEditorParent()));
if(WindowsHelper.hasWindowsXP()) {
useWindowsXPTheme = new Button(getFieldEditorParent(),SWT.CHECK);
useWindowsXPTheme.setText("Use Windows XP Theme (Requires Restart)");
useWindowsXPTheme.setSelection(WindowsHelper.hasXPThemeEnabled());
}