Package org.jampa.gui.actions.radio

Examples of org.jampa.gui.actions.radio.PlayRadioAction


          radioMenuItem.setText(radioItem.getName());
          radioMenuItem.setData(radioItem);

          radioMenuItem.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
              new PlayRadioAction((RadioItem) radioMenuItem.getData()).run();
            }
          });
        }
      }
    }
View Full Code Here


          itemToPlay = (RadioItem) ((CategoryRadioItem) selection).getChildren().get(0);
        } else {
          itemToPlay = (RadioItem) selection;
        }       
       
        new PlayRadioAction(itemToPlay).run();       
      }
    });
   
    new MenuItem(_viewMenu, SWT.SEPARATOR);
   
View Full Code Here

    Object selection = ((IStructuredSelection) treeViewer.getSelection()).getFirstElement();
   
    if (selection instanceof CategoryRadioItem) {
      treeViewer.setExpandedState(selection, !treeViewer.getExpandedState(selection));
    } else if (selection instanceof RadioItem) {
      new PlayRadioAction((RadioItem) selection).run();     
    }
  }
View Full Code Here

TOP

Related Classes of org.jampa.gui.actions.radio.PlayRadioAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.