/*
* File : Sound.java
* Created : 21.01.2006
* By : kahless
*
* GOIM - Gamers Own Instant Messenger
* Copyright (C) 2005-2006 Herbert Poul
* (JabberId: kahless@sphene.net / Email: herbert.poul@gmail.com)
* http://goim.sphene.net
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
package net.sphene.goim.rcp.preferences;
import net.sphene.goim.rcp.GOIMPlugin;
import org.eclipse.jface.preference.BooleanFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
public class Sound extends FieldEditorPreferencePage implements
IWorkbenchPreferencePage {
public Sound() {
super(GRID);
}
@Override
protected void createFieldEditors() {
addField(new BooleanFieldEditor(PreferenceConstants.P_SOUND_PLAY_RECV_MESSAGE,
"Play Sound when receiving message", getFieldEditorParent()));
}
public void init(IWorkbench workbench) {
setPreferenceStore(GOIMPlugin.getDefault().getMyPreferenceStore());
}
}