Skip to content

Commit 1c49a51

Browse files
committed
added priority to default tree node factory.
1 parent 5579731 commit 1c49a51

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/com/ss/editor/ui/control/tree/node/factory/impl/DefaultTreeNodeFactory.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
*/
3535
public class DefaultTreeNodeFactory implements TreeNodeFactory {
3636

37+
public static final int PRIORITY = 0;
38+
3739
@Override
3840
@FxThread
3941
public <T, V extends TreeNode<T>> @Nullable V createFor(@Nullable final T element, final long objectId) {
@@ -72,4 +74,9 @@ public class DefaultTreeNodeFactory implements TreeNodeFactory {
7274

7375
return null;
7476
}
77+
78+
@Override
79+
public int getPriority() {
80+
return PRIORITY;
81+
}
7582
}

0 commit comments

Comments
 (0)