Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removed unnecessary event type listener
  • Loading branch information
samuell committed Aug 22, 2011
1 parent d873add commit dd09d10
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -158,7 +158,6 @@ private void createRadioButtonsForParam(Parameter parameter, int i) {
btn.setText(optionValue);
// Event handling stuff
btn.addListener(SWT.Selection, this);
btn.addListener(SWT.MouseUp, this);
btn.setData(parameter);
widgets.add(btn);
}
Expand Down Expand Up @@ -310,7 +309,7 @@ public void widgetSelected(SelectionEvent e) {

@Override
public void handleEvent(Event event) {
if (event.type == SWT.Selection || event.type == SWT.KeyUp || event.type == SWT.MouseUp) {
if (event.type == SWT.Selection || event.type == SWT.KeyUp) {
String tempCommand = currentTool.getCompleteCommand();
for (Widget widget : this.widgets) {
// Get the new value from the widget
Expand Down

0 comments on commit dd09d10

Please sign in to comment.