Package org.freeplane.plugin.workspace.actions

Source Code of org.freeplane.plugin.workspace.actions.WorkspaceExpandAction

package org.freeplane.plugin.workspace.actions;

import java.awt.event.ActionEvent;

import org.freeplane.plugin.workspace.WorkspaceController;
import org.freeplane.plugin.workspace.components.IWorkspaceView;
import org.freeplane.plugin.workspace.components.TreeView;

public class WorkspaceExpandAction extends AWorkspaceAction {

  /**
   *
   */
  private static final long serialVersionUID = 1L;

  public WorkspaceExpandAction() {
    super("workspace.action.all.expand");
  }
 
  public void actionPerformed(final ActionEvent e) {
        IWorkspaceView view = WorkspaceController.getCurrentModeExtension().getView();
        if(view instanceof TreeView) {
          ((TreeView) view).expandAll(getNodeFromActionEvent(e));
        }
    }
}
TOP

Related Classes of org.freeplane.plugin.workspace.actions.WorkspaceExpandAction

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.