Package org.jampa.gui.handlers.playlists

Source Code of org.jampa.gui.handlers.playlists.NewPlaylistHandler

package org.jampa.gui.handlers.playlists;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.IHandler;
import org.eclipse.ui.handlers.HandlerUtil;
import org.jampa.gui.actions.playlist.NewPlaylistAction;


public class NewPlaylistHandler extends AbstractHandler implements IHandler {

  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
   
    new NewPlaylistAction(HandlerUtil.getActiveWorkbenchWindow(event).getShell()).run();
   
    return null;
  }

}
TOP

Related Classes of org.jampa.gui.handlers.playlists.NewPlaylistHandler

TOP
Copyright © 2018 www.massapi.com. 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.