Issue #2936 - Remove the join alert from the nws collaboration feed

Change-Id: Icf246e86cc7d7d04ed56d1aefafe0e27d1292840

Former-commit-id: eacc161ee4 [formerly fd31ea7fa5] [formerly ca27ceac1f [formerly ca47cb349b4749edaac6afe0648c18cb06a9f9df]]
Former-commit-id: ca27ceac1f
Former-commit-id: fc7a71889c
This commit is contained in:
Mike Duff 2014-03-24 14:59:33 -05:00
parent 5b0f8f631f
commit 86fc8d74d5
3 changed files with 3 additions and 34 deletions

View file

@ -33,6 +33,7 @@ package com.raytheon.uf.viz.collaboration.ui.prefs;
* Jan 27, 2014 2700 bclement added auto accept subscribe
* Feb 3, 2014 2699 bclement added handle preferences
* Feb 18, 2014 2631 mpduff Add constants for room change events.
* Mar 24, 2014 2936 mpduff Remove INCLUDE_NWS_FEED_FIELD_EDITOR_ID.
*
* </pre>
*
@ -69,9 +70,6 @@ public class CollabPrefConstants {
/** Join file field editor id */
public static final String JOIN_FILE_FIELD_EDITOR_ID = "roomJoinSoundFile";
/** Include nws feed field editor id */
public static final String INCLUDE_NWS_FEED_FIELD_EDITOR_ID = "includeNwsFeed";
public class HttpCollaborationConfiguration {
public static final String P_SESSION_CONFIGURED = "http.sessionConfigured";

View file

@ -46,6 +46,7 @@ import com.raytheon.uf.viz.collaboration.ui.Activator;
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* Feb 18, 2014 2631 mpduff Initial creation.
* Mar 24, 2014 2936 mpduff Remove join alerts from feed view.
*
* </pre>
*
@ -55,8 +56,6 @@ import com.raytheon.uf.viz.collaboration.ui.Activator;
public class CollaborationRoomChangePreferencePage extends
FieldEditorPreferencePage implements IWorkbenchPreferencePage {
/** Include nws-collaboration feed controls */
private BooleanFieldEditor includeFeed;
/** Join event controls */
private FileFieldEditor joinFileEditor;
@ -99,17 +98,9 @@ public class CollaborationRoomChangePreferencePage extends
joinFileEditor.setFilterPath(file.getFile());
this.addField(joinFileEditor);
// Apply to nws collaboration feed if checked
includeFeed = new BooleanFieldEditor(
CollabPrefConstants.INCLUDE_NWS_FEED_FIELD_EDITOR_ID,
"Apply to NWS-collaboration feed", BooleanFieldEditor.DEFAULT,
getFieldEditorParent());
this.addField(includeFeed);
boolean enabled = this.getPreferenceStore().getBoolean(
CollabPrefConstants.ENABLE_JOIN_EVENTS_FIELD_EDITOR_ID);
joinFileEditor.setEnabled(enabled, getFieldEditorParent());
includeFeed.setEnabled(enabled, getFieldEditorParent());
if (!joinFileEditor.isValid()) {
joinFileEditor.setStringValue("");
@ -129,7 +120,6 @@ public class CollaborationRoomChangePreferencePage extends
if (event.getSource().equals(this.enableJoinAlerts)) {
boolean enabled = (Boolean) event.getNewValue();
joinFileEditor.setEnabled(enabled, getFieldEditorParent());
includeFeed.setEnabled(enabled, getFieldEditorParent());
} else if (event.getSource().equals(this.joinFileEditor)) {
if (enableJoinAlerts.getBooleanValue()) {
super.propertyChange(event);

View file

@ -73,6 +73,7 @@ import com.raytheon.uf.viz.core.icon.IconUtil;
* Mar 06, 2014 2751 bclement moved users table refresh logic to refreshParticipantList()
* Mar 18, 2014 2798 mpduff Fixed issue with user changing site and participant list not
* having the color update to reflect the change.
* Mar 24, 2014 2936 mpduff Remove join alerts from feed view.
*
* </pre>
*
@ -432,7 +433,6 @@ public class SessionFeedView extends SessionView {
message.append(" ").append(roleName).append(" ")
.append(siteName);
sendSystemMessage(message);
processJoinAlert();
}
}
@ -464,25 +464,6 @@ public class SessionFeedView extends SessionView {
}
}
/*
* (non-Javadoc)
*
* @see
* com.raytheon.uf.viz.collaboration.ui.session.SessionView#processJoinAlert
* ()
*/
@Override
protected void processJoinAlert() {
boolean includeFeed = Activator
.getDefault()
.getPreferenceStore()
.getBoolean(
CollabPrefConstants.INCLUDE_NWS_FEED_FIELD_EDITOR_ID);
if (includeFeed) {
super.processJoinAlert();
}
}
/*
* (non-Javadoc)
*