diff --git a/designer_base/src/com/fr/design/actions/ToolbarActionManager.java b/designer_base/src/com/fr/design/actions/ToolbarActionManager.java deleted file mode 100644 index 74d5364d77..0000000000 --- a/designer_base/src/com/fr/design/actions/ToolbarActionManager.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright(c) 2001-2010, FineReport Inc, All Rights Reserved. - */ -package com.fr.design.actions; - -import java.util.ArrayList; -import java.util.List; - -import com.fr.design.menu.MenuDef; - -public class ToolbarActionManager { - - private static ToolbarActionManager toolbarActionManager = null; //key map - //所有的Action Map. - private List actionList = new ArrayList(); - private List menuList=new ArrayList(); - - private ToolbarActionManager() { - } - - public static ToolbarActionManager createToolbarActionManager() { - if (toolbarActionManager == null) { - toolbarActionManager = new ToolbarActionManager(); - } - return toolbarActionManager; - } - - public void registerAction(UpdateAction updateAction) { - actionList.add(updateAction); - } - - public void registerAction(MenuDef menuDef) { - menuList.add(menuDef); - } - - public void update() { - int actionCount = actionList.size(); - for (int i = 0; i < actionCount; i++) { - UpdateAction action = actionList.get(i); - if (action != null) { - action.update(); - } - } - actionCount=menuList.size(); - for(int i=0;i