diff options
author | rsuen | 2009-05-07 22:03:39 +0000 |
---|---|---|
committer | rsuen | 2009-05-07 22:03:39 +0000 |
commit | 9c92426b9c3f6c1ce782ee25445e723b0a185cb7 (patch) | |
tree | e8237eaec00d0b2f0571c7969649a5f54151956f | |
parent | e456c8b135ec84f82e873fc895982566bdfa8a9a (diff) | |
download | org.eclipse.ecf-9c92426b9c3f6c1ce782ee25445e723b0a185cb7.tar.gz org.eclipse.ecf-9c92426b9c3f6c1ce782ee25445e723b0a185cb7.tar.xz org.eclipse.ecf-9c92426b9c3f6c1ce782ee25445e723b0a185cb7.zip |
Bug 275359 [ui] remove use of deprecated methods
-rw-r--r-- | framework/bundles/org.eclipse.ecf.presence.ui/src/org/eclipse/ecf/presence/ui/chatroom/ChatRoomManagerView.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/framework/bundles/org.eclipse.ecf.presence.ui/src/org/eclipse/ecf/presence/ui/chatroom/ChatRoomManagerView.java b/framework/bundles/org.eclipse.ecf.presence.ui/src/org/eclipse/ecf/presence/ui/chatroom/ChatRoomManagerView.java index 2567c77d7..88e7064d6 100644 --- a/framework/bundles/org.eclipse.ecf.presence.ui/src/org/eclipse/ecf/presence/ui/chatroom/ChatRoomManagerView.java +++ b/framework/bundles/org.eclipse.ecf.presence.ui/src/org/eclipse/ecf/presence/ui/chatroom/ChatRoomManagerView.java @@ -35,6 +35,7 @@ import org.eclipse.ecf.presence.im.IChatMessage; import org.eclipse.ecf.presence.ui.MessagesView; import org.eclipse.jface.action.*; import org.eclipse.jface.dialogs.MessageDialog; +import org.eclipse.jface.preference.IPreferenceStore; import org.eclipse.jface.text.*; import org.eclipse.jface.text.source.SourceViewer; import org.eclipse.jface.util.IPropertyChangeListener; @@ -1054,9 +1055,9 @@ public class ChatRoomManagerView extends ViewPart implements IChatRoomInvitation if (p != null) { ID id = p.getID(); if (id != null) { - Preferences prefs = Activator.getDefault().getPluginPreferences(); + IPreferenceStore store = Activator.getDefault().getPreferenceStore(); - if (prefs.getBoolean(PreferenceConstants.CHATROOM_SHOW_USER_PRESENCE)) + if (store.getBoolean(PreferenceConstants.CHATROOM_SHOW_USER_PRESENCE)) appendText(chatRoomTab, getOutputText(), new ChatLine(NLS.bind(Messages.ChatRoomManagerView_ENTERED_MESSAGE, getUsernameFromID(id)), null)); chatRoomParticipantViewer.add(p); chatRoomParticipantsLabel.setText(NLS.bind(Messages.ChatRoomManagerView_USERS_IN_CHAT_ROOM, String.valueOf(chatRoomContainer.getChatRoomParticipants().length))); @@ -1086,9 +1087,9 @@ public class ChatRoomManagerView extends ViewPart implements IChatRoomInvitation if (p != null) { ID id = p.getID(); if (id != null) { - Preferences prefs = Activator.getDefault().getPluginPreferences(); + IPreferenceStore store = Activator.getDefault().getPreferenceStore(); - if (prefs.getBoolean(PreferenceConstants.CHATROOM_SHOW_USER_PRESENCE)) + if (store.getBoolean(PreferenceConstants.CHATROOM_SHOW_USER_PRESENCE)) appendText(chatRoomTab, getOutputText(), new ChatLine(NLS.bind(Messages.ChatRoomManagerView_LEFT_MESSAGE, getUsernameFromID(id)), null)); chatRoomParticipantViewer.remove(p); chatRoomParticipantsLabel.setText(NLS.bind(Messages.ChatRoomManagerView_USERS_IN_CHAT_ROOM, String.valueOf(chatRoomContainer.getChatRoomParticipants().length))); |