|
|
|
@ -13,7 +13,6 @@ import com.fr.design.gui.controlpane.ShortCut4JControlPane;
|
|
|
|
|
import com.fr.design.gui.icontainer.UIScrollPane; |
|
|
|
|
import com.fr.design.gui.itoolbar.UIToolBarUI; |
|
|
|
|
import com.fr.design.gui.itoolbar.UIToolbar; |
|
|
|
|
import com.fr.design.gui.style.BorderPane; |
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.design.menu.ShortCut; |
|
|
|
|
import com.fr.design.menu.ToolBarDef; |
|
|
|
@ -110,18 +109,11 @@ public class FormHierarchyTreePane extends FormDockView implements HierarchyTree
|
|
|
|
|
|
|
|
|
|
add(getWidgetPane(), BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
// 这里要刷新一下,否则控件树中没有任何一个控件处于选中状态
|
|
|
|
|
refreshComponentTree(); |
|
|
|
|
} catch (Throwable th) { |
|
|
|
|
// do nothing
|
|
|
|
|
} |
|
|
|
|
// 这里要刷新一下,否则控件树中没有任何一个控件处于选中状态
|
|
|
|
|
refreshComponentTree(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void refreshComponentTree() { |
|
|
|
|
if (DesignerContext.getDesignerFrame().getSelectedJTemplate() == null) { // 还在初始化状态
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
componentTree.setAndScrollSelectionPath(componentTree.getSelectedTreePath()); |
|
|
|
|
componentTree.refreshUI(); |
|
|
|
|
} |
|
|
|
|