use of org.jivesoftware.sparkplugin.preferences.SipCodecsPreference in project Spark by igniterealtime.
the class SoftPhonePlugin method initialize.
/**
* Called after Spark is loaded to initialize the new plugin. Load
* Configuration from VCard and Instantiate a SoftPhoneManager
*/
public void initialize() {
final SwingWorker initializeThread = new SwingWorker() {
public Object construct() {
PhoneManager.getInstance();
softPhone = SoftPhoneManager.getInstance();
return true;
}
public void finished() {
if (softPhone.isPhoneEnabled()) {
// Add TabHandler
SparkManager.getChatManager().addSparkTabHandler(new SoftPhoneTabHandler());
initializeUI();
}
SipCodecsPreference preference = new SipCodecsPreference();
SparkManager.getPreferenceManager().addPreference(preference);
preference.load();
}
};
initializeThread.start();
}
Aggregations