Package bndtools.editor.pages

Source Code of bndtools.editor.pages.RunAction

package bndtools.editor.pages;

import org.eclipse.jface.action.Action;
import org.eclipse.swt.SWT;
import org.eclipse.ui.IEditorPart;

import bndtools.launch.RunShortcut;

public class RunAction extends Action {

    private final IEditorPart editor;
    private final String mode;

    public RunAction(IEditorPart editor, String mode) {
        super("Run OSGi", SWT.RIGHT);
        this.editor = editor;
        this.mode = mode;
    }

    @Override
    public void run() {
        new RunShortcut().launch(editor, mode);
    }
}
TOP

Related Classes of bndtools.editor.pages.RunAction

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.