Перенос.
This commit is contained in:
27
src/ProjectData/SapforData/Functions/UI/InlineMenu2.java
Normal file
27
src/ProjectData/SapforData/Functions/UI/InlineMenu2.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package ProjectData.SapforData.Functions.UI;
|
||||
import Common.UI.Menus.SelectionTreeMenu;
|
||||
import Common.UI.Trees.SelectableTree;
|
||||
import ProjectData.SapforData.Functions.FuncCallH;
|
||||
|
||||
import javax.swing.tree.DefaultMutableTreeNode;
|
||||
public class InlineMenu2 extends SelectionTreeMenu {
|
||||
public InlineMenu2(SelectableTree tree_in) {
|
||||
super(tree_in);
|
||||
}
|
||||
@Override
|
||||
public Class getTargetClass() {
|
||||
return FuncCallH.class;
|
||||
}
|
||||
@Override
|
||||
public void SelectAll(boolean select) {
|
||||
if (tree.root.getChildCount() == 1)
|
||||
SelectR(
|
||||
(FuncCallH) ((DefaultMutableTreeNode) (tree.root.getChildAt(0))).getUserObject(),
|
||||
select);
|
||||
}
|
||||
public void SelectR(FuncCallH callH, boolean select) {
|
||||
callH.Select(select);
|
||||
for (FuncCallH child : callH.calls)
|
||||
SelectR(child, select);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user