use of org.jivesoftware.spark.ui.status.StatusBar in project Spark by igniterealtime.
the class SparkSystemTray method addStatusMenuItems.
/**
* Add all Registered DND's to MenuItems.
*/
private void addStatusMenuItems() {
Workspace workspace = SparkManager.getWorkspace();
StatusBar statusBar = workspace.getStatusBar();
for (Object o : statusBar.getStatusList()) {
StatusItem item = (StatusItem) o;
final JMenuItem menuItem = new JMenuItem(item.getText());
menuItem.addActionListener(this);
statusMenu.add(menuItem);
}
}
Aggregations