|
|
@ -13,6 +13,7 @@ import com.fr.design.designer.beans.actions.FormUndoableAction; |
|
|
|
import com.fr.design.designer.creator.XWAbsoluteBodyLayout; |
|
|
|
import com.fr.design.designer.creator.XWAbsoluteBodyLayout; |
|
|
|
import com.fr.design.gui.controlpane.ShortCut4JControlPane; |
|
|
|
import com.fr.design.gui.controlpane.ShortCut4JControlPane; |
|
|
|
import com.fr.design.gui.controlpane.UIListControlPane; |
|
|
|
import com.fr.design.gui.controlpane.UIListControlPane; |
|
|
|
|
|
|
|
import com.fr.design.gui.icontainer.UIScrollPane; |
|
|
|
import com.fr.design.gui.itoolbar.UIToolBarUI; |
|
|
|
import com.fr.design.gui.itoolbar.UIToolBarUI; |
|
|
|
import com.fr.design.gui.itoolbar.UIToolbar; |
|
|
|
import com.fr.design.gui.itoolbar.UIToolbar; |
|
|
|
import com.fr.design.mainframe.widget.UITreeComboBox; |
|
|
|
import com.fr.design.mainframe.widget.UITreeComboBox; |
|
|
@ -43,7 +44,7 @@ public class FormHierarchyTreePane extends FormDockView implements HierarchyTree |
|
|
|
|
|
|
|
|
|
|
|
private ShortCut4JControlPane[] shorts; |
|
|
|
private ShortCut4JControlPane[] shorts; |
|
|
|
private ComponentTree componentTree; |
|
|
|
private ComponentTree componentTree; |
|
|
|
private UITreeComboBox treeComboBox; |
|
|
|
// private UITreeComboBox treeComboBox;
|
|
|
|
private ChangeNameAction changeVarNameAction; |
|
|
|
private ChangeNameAction changeVarNameAction; |
|
|
|
|
|
|
|
|
|
|
|
public static FormHierarchyTreePane getInstance() { |
|
|
|
public static FormHierarchyTreePane getInstance() { |
|
|
@ -96,9 +97,9 @@ public class FormHierarchyTreePane extends FormDockView implements HierarchyTree |
|
|
|
if(this.componentTree != null) { |
|
|
|
if(this.componentTree != null) { |
|
|
|
this.componentTree.removeAll(); |
|
|
|
this.componentTree.removeAll(); |
|
|
|
} |
|
|
|
} |
|
|
|
if(this.treeComboBox != null) { |
|
|
|
// if(this.treeComboBox != null) {
|
|
|
|
this.treeComboBox.removeAll(); |
|
|
|
// this.treeComboBox.removeAll();
|
|
|
|
} |
|
|
|
// }
|
|
|
|
if (formDesigner == null) { |
|
|
|
if (formDesigner == null) { |
|
|
|
clearDockingView(); |
|
|
|
clearDockingView(); |
|
|
|
return; |
|
|
|
return; |
|
|
@ -129,8 +130,10 @@ public class FormHierarchyTreePane extends FormDockView implements HierarchyTree |
|
|
|
headPane.add(getToolBarPane(), BorderLayout.EAST); |
|
|
|
headPane.add(getToolBarPane(), BorderLayout.EAST); |
|
|
|
|
|
|
|
|
|
|
|
widgetPane.add(headPane, BorderLayout.CENTER); |
|
|
|
widgetPane.add(headPane, BorderLayout.CENTER); |
|
|
|
treeComboBox = new UITreeComboBox(componentTree); |
|
|
|
UIScrollPane scrollPane = new UIScrollPane(componentTree); |
|
|
|
widgetPane.add(treeComboBox, BorderLayout.SOUTH); |
|
|
|
scrollPane.setPreferredSize(new Dimension(210, 170)); |
|
|
|
|
|
|
|
// treeComboBox = new UITreeComboBox(componentTree);
|
|
|
|
|
|
|
|
widgetPane.add(scrollPane, BorderLayout.SOUTH); |
|
|
|
return widgetPane; |
|
|
|
return widgetPane; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|