Package ru.runa.jbpm.ui.actions

Source Code of ru.runa.jbpm.ui.actions.ShowActionsAction

package ru.runa.jbpm.ui.actions;

import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.jbpm.ui.editor.DesignerEditor;

public class ShowActionsAction extends BaseActionDelegate {

    public void run(IAction action) {
    DesignerEditor editor = getActiveDesignerEditor();
        editor.getDefinition().setShowActions(!editor.getDefinition().isShowActions());
    }

    @Override
    public void selectionChanged(IAction action, ISelection selection) {
        DesignerEditor editor = getActiveDesignerEditor();
        action.setChecked(editor != null && editor.getDefinition().isShowActions());
        action.setEnabled(editor != null);
    }
}
TOP

Related Classes of ru.runa.jbpm.ui.actions.ShowActionsAction

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.