diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/DPFavourites.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/DPFavourites.java index 75e9ef60a7..462ef6ab09 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/DPFavourites.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/DPFavourites.java @@ -13,12 +13,13 @@ *****************************************************************************/ package org.adempiere.webui.dashboard; +import static org.compiere.model.SystemIDs.TREE_MENUPRIMARY; + import java.util.Enumeration; import org.adempiere.util.Callback; import org.adempiere.webui.adwindow.ADWindow; import org.adempiere.webui.exception.ApplicationException; -import org.adempiere.webui.panel.TreeSearchPanel; import org.adempiere.webui.session.SessionManager; import org.adempiere.webui.window.FDialog; import org.compiere.model.GridTab; @@ -26,7 +27,6 @@ import org.compiere.model.MMenu; import org.compiere.model.MQuery; import org.compiere.model.MTree; import org.compiere.model.MTreeNode; -import static org.compiere.model.SystemIDs.*; import org.compiere.util.DB; import org.compiere.util.Env; import org.compiere.util.Msg; @@ -38,7 +38,6 @@ import org.zkoss.zk.ui.event.EventListener; import org.zkoss.zk.ui.event.Events; import org.zkoss.zul.A; import org.zkoss.zul.Box; -import org.zkoss.zul.Combobox; import org.zkoss.zul.Hbox; import org.zkoss.zul.Image; import org.zkoss.zul.Label; @@ -217,24 +216,6 @@ public class DPFavourites extends DashboardPanel implements EventListener addItem(treeitem); } - else if(dragged instanceof Combobox) - { - TreeSearchPanel tsp = null; - Component parent = dragged.getParent(); - while(tsp == null && parent != null) { - if (parent instanceof TreeSearchPanel) { - tsp = (TreeSearchPanel) parent; - } else { - parent = parent.getParent(); - } - } - if (tsp != null) { - Treeitem treeitem = tsp.getSelectedItem(); - if (treeitem != null) { - addItem(treeitem); - } - } - } } else if(comp instanceof Image) { @@ -243,7 +224,7 @@ public class DPFavourites extends DashboardPanel implements EventListener A btn = (A) dragged; removeLink(btn); } - } + } } // }