⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 resourceactionset.java

📁 It is all about project scheduling. GanttProject is a tool for creating a project schedule by means
💻 JAVA
字号:
package net.sourceforge.ganttproject.action;import javax.swing.AbstractAction;import javax.swing.Action;import net.sourceforge.ganttproject.GanttProject;import net.sourceforge.ganttproject.IGanttProject;import net.sourceforge.ganttproject.gui.UIFacade;import net.sourceforge.ganttproject.resource.ResourceContext;import net.sourceforge.ganttproject.resource.ResourceManager;import net.sourceforge.ganttproject.roles.RoleManager;public class ResourceActionSet {    private final UIFacade myUIFacade;	private final DeleteHumanAction myDeleteHumanAction;	public ResourceActionSet(IGanttProject project, ResourceContext context,            GanttProject projectFrame, UIFacade uiFacade) {        myManager = project.getHumanResourceManager();        myRoleManager = project.getRoleManager();        myContext = context;        myProjectFrame = projectFrame;        myUIFacade = uiFacade;        myDeleteHumanAction = new DeleteHumanAction(myManager, myContext, myProjectFrame, myUIFacade);    }    public AbstractAction[] getActions() {        if (myActions == null) {            myActions = new AbstractAction[] {                    new NewHumanAction(myManager, myRoleManager,                            myProjectFrame, myProjectFrame),                    myDeleteHumanAction};        }        return myActions;    }    public Action getDeleteHumanAction() {    	return myDeleteHumanAction;    }    private final RoleManager myRoleManager;    private final ResourceManager myManager;    private final ResourceContext myContext;    private final GanttProject myProjectFrame;    private AbstractAction[] myActions;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -