{
int selIndex = inbound.getSelectionIndex();
if (selIndex == -1)
return;
String item = inbound.getItem(selIndex);
Player p = (Player)in.get(item);
p.stop();
updateInList();
}
});
stopListening.setImage(AbstractUIPlugin.imageDescriptorFromPlugin("XCDEVoice","icons/pause.png").createImage());
Button resumeListening = new Button(inGroupButtons,SWT.PUSH);
resumeListening.setText("Resume Listening To...");
resumeListening.addListener(SWT.Selection, new Listener()
{
public void handleEvent(Event event)
{
int selIndex = inbound.getSelectionIndex();
if (selIndex == -1)
return;
String item = inbound.getItem(selIndex);
Player player = ((Player)in.get(item));
if (player != null)
player.start();
updateInList();
}
});
resumeListening.setImage(AbstractUIPlugin.imageDescriptorFromPlugin("XCDEVoice","icons/resume.png").createImage());