Issue #2408 - Add a restore hidden notification menu item to Notification center
Change-Id: If72e2d855b6fc91a8da67294a5436f73b69210a0 Former-commit-id:eabd212954
[formerlyeabd212954
[formerly 6ece820f9e38fe1e7ccb55b83afca04e7e0d989f]] Former-commit-id:fead9cffe5
Former-commit-id:559fbafa96
This commit is contained in:
parent
840c7fbf7e
commit
581495bfb8
2 changed files with 18 additions and 1 deletions
|
@ -101,6 +101,7 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
|
|||
* Apr 25, 2013 1820 mpduff Implemente delete config.
|
||||
* Jun 06, 2013 2030 mpduff Refactored help.
|
||||
* Aug 30, 2013 2314 mpduff Change the reading of the xml. Make load config dlg non-blocking.
|
||||
* Sep 25, 2013 2408 mpduff Added a restore hidden notifications menu.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -184,7 +185,7 @@ public class NotificationDlg extends CaveSWTDialog implements ITableChange,
|
|||
private MenuItem tooltipMI;
|
||||
|
||||
private final Collection<MenuItem> lockableMenuItems = new ArrayList<MenuItem>();
|
||||
|
||||
|
||||
/** Load config dialog */
|
||||
private LoadSaveConfigDlg loadDlg;
|
||||
|
||||
|
@ -406,6 +407,18 @@ public class NotificationDlg extends CaveSWTDialog implements ITableChange,
|
|||
}
|
||||
});
|
||||
|
||||
MenuItem unhideMI = new MenuItem(editMenu, SWT.NONE);
|
||||
lockableMenuItems.add(unhideMI);
|
||||
unhideMI.setText("Show Hidden Notifications");
|
||||
unhideMI.addSelectionListener(new SelectionAdapter() {
|
||||
@Override
|
||||
public void widgetSelected(SelectionEvent e) {
|
||||
tableComp.populateTableDataRows(null);
|
||||
tableComp.populateTable();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
// Create the settings menu
|
||||
MenuItem settingsMenuItem = new MenuItem(menuBar, SWT.CASCADE);
|
||||
settingsMenuItem.setText("&Settings");
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
package com.raytheon.uf.viz.datadelivery.notification;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -58,6 +59,7 @@ import com.raytheon.viz.ui.widgets.duallist.DualListConfig;
|
|||
* Feb 6, 2012 mpduff Initial creation.
|
||||
* Mar 20, 2012 240 jpiatt Updates to filter notification table data.
|
||||
* Jun 1, 2012 645 jpiatt Added tooltips.
|
||||
* Sep 25, 2013 2408 mpduff Added sort to subscription lists.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -377,6 +379,8 @@ public class NotificationFilterDlg extends CaveSWTDialogBase {
|
|||
|
||||
}
|
||||
|
||||
Collections.sort(selectedSubListFinal);
|
||||
Collections.sort(fullSubList);
|
||||
DualListConfig dualConfig = new DualListConfig();
|
||||
dualConfig.setListHeight(120);
|
||||
dualConfig.setListWidth(125);
|
||||
|
|
Loading…
Add table
Reference in a new issue