From 9b14afba1dbff7eecb27d8e45d169365d4dd4032 Mon Sep 17 00:00:00 2001 From: weisj <31143295+weisJ@users.noreply.github.com> Date: Mon, 21 Jun 2021 13:46:22 +0200 Subject: [PATCH] Deprecate FileTree as it will be moved to the swing-dsl project. --- .../github/weisj/darklaf/components/filetree/FileNode.java | 4 ++++ .../github/weisj/darklaf/components/filetree/FileTree.java | 4 ++++ .../darklaf/components/filetree/FileTreeCellRenderer.java | 4 ++++ .../weisj/darklaf/components/filetree/FileTreeModel.java | 4 ++++ .../weisj/darklaf/components/filetree/FileTreeNode.java | 4 ++++ .../weisj/darklaf/components/filetree/WatchFileTree.java | 4 ++++ .../weisj/darklaf/components/filetree/WatchFileTreeModel.java | 4 ++++ 7 files changed, 28 insertions(+) diff --git a/core/src/main/java/com/github/weisj/darklaf/components/filetree/FileNode.java b/core/src/main/java/com/github/weisj/darklaf/components/filetree/FileNode.java index a431780b5..743e548b8 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/filetree/FileNode.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/filetree/FileNode.java @@ -34,6 +34,10 @@ import javax.swing.*; import javax.swing.filechooser.FileSystemView; +/** + * @deprecated {@link FileTree} will be moved to https://github.com/weisJ/swing-dsl + */ +@Deprecated public class FileNode implements Comparable { private static final AtomicBoolean LOCKED = new AtomicBoolean(false); diff --git a/core/src/main/java/com/github/weisj/darklaf/components/filetree/FileTree.java b/core/src/main/java/com/github/weisj/darklaf/components/filetree/FileTree.java index 3a83e29fc..f850c3b5d 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/filetree/FileTree.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/filetree/FileTree.java @@ -33,6 +33,10 @@ import javax.swing.tree.TreePath; +/** + * @deprecated {@link FileTree} will be moved to https://github.com/weisJ/swing-dsl + */ +@Deprecated public class FileTree extends JTree { public FileTree() { diff --git a/core/src/main/java/com/github/weisj/darklaf/components/filetree/FileTreeCellRenderer.java b/core/src/main/java/com/github/weisj/darklaf/components/filetree/FileTreeCellRenderer.java index a41eea98a..df14f53d6 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/filetree/FileTreeCellRenderer.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/filetree/FileTreeCellRenderer.java @@ -27,6 +27,10 @@ import javax.swing.filechooser.FileSystemView; import javax.swing.tree.DefaultTreeCellRenderer; +/** + * @deprecated {@link FileTree} will be moved to https://github.com/weisJ/swing-dsl + */ +@Deprecated public class FileTreeCellRenderer extends DefaultTreeCellRenderer { private final FileSystemView fsv; diff --git a/core/src/main/java/com/github/weisj/darklaf/components/filetree/FileTreeModel.java b/core/src/main/java/com/github/weisj/darklaf/components/filetree/FileTreeModel.java index 1a41d9ce0..6e3204ec4 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/filetree/FileTreeModel.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/filetree/FileTreeModel.java @@ -30,6 +30,10 @@ import javax.swing.filechooser.FileSystemView; import javax.swing.tree.DefaultTreeModel; +/** + * @deprecated {@link FileTree} will be moved to https://github.com/weisJ/swing-dsl + */ +@Deprecated public class FileTreeModel extends DefaultTreeModel { protected final FileSystemView fsv; diff --git a/core/src/main/java/com/github/weisj/darklaf/components/filetree/FileTreeNode.java b/core/src/main/java/com/github/weisj/darklaf/components/filetree/FileTreeNode.java index f78556fe2..3fe22954a 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/filetree/FileTreeNode.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/filetree/FileTreeNode.java @@ -36,6 +36,10 @@ import com.github.weisj.darklaf.util.Lambdas; import com.github.weisj.darklaf.util.StreamUtil; +/** + * @deprecated {@link FileTree} will be moved to https://github.com/weisJ/swing-dsl + */ +@Deprecated public class FileTreeNode implements TreeNode, Comparable { protected final FileTreeNode parent; diff --git a/core/src/main/java/com/github/weisj/darklaf/components/filetree/WatchFileTree.java b/core/src/main/java/com/github/weisj/darklaf/components/filetree/WatchFileTree.java index 1152b8d52..559f5ac2b 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/filetree/WatchFileTree.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/filetree/WatchFileTree.java @@ -26,6 +26,10 @@ import javax.swing.*; import javax.swing.filechooser.FileSystemView; +/** + * @deprecated {@link FileTree} will be moved to https://github.com/weisJ/swing-dsl + */ +@Deprecated public class WatchFileTree extends FileTree { public WatchFileTree() { diff --git a/core/src/main/java/com/github/weisj/darklaf/components/filetree/WatchFileTreeModel.java b/core/src/main/java/com/github/weisj/darklaf/components/filetree/WatchFileTreeModel.java index 5752a8c88..478a92576 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/filetree/WatchFileTreeModel.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/filetree/WatchFileTreeModel.java @@ -36,6 +36,10 @@ import com.github.weisj.darklaf.util.LogUtil; +/** + * @deprecated {@link FileTree} will be moved to https://github.com/weisJ/swing-dsl + */ +@Deprecated public class WatchFileTreeModel extends FileTreeModel { private static final Logger LOGGER = LogUtil.getLogger(WatchFileTreeModel.class);