From 958c3d56c0411620facdb85e8d8f5fc4a38f1dcc Mon Sep 17 00:00:00 2001
From: Simon Barner <barner@fortiss.org>
Date: Fri, 16 Oct 2020 09:57:59 +0200
Subject: [PATCH] Reorder methods (no functional change)

Issue-Ref: 4071
Issue-Url: https://af3-developer.fortiss.org/issues/4071

Signed-off-by: Simon Barner <barner@fortiss.org>
---
 .../ui/javafx/control/treetableview/.ratings  |  2 +-
 .../DynamicTreeContentProviderBase.java       | 28 +++++++++----------
 2 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/org.fortiss.tooling.common.ui/src/org/fortiss/tooling/common/ui/javafx/control/treetableview/.ratings b/org.fortiss.tooling.common.ui/src/org/fortiss/tooling/common/ui/javafx/control/treetableview/.ratings
index 13a4027b5..c557c5306 100644
--- a/org.fortiss.tooling.common.ui/src/org/fortiss/tooling/common/ui/javafx/control/treetableview/.ratings
+++ b/org.fortiss.tooling.common.ui/src/org/fortiss/tooling/common/ui/javafx/control/treetableview/.ratings
@@ -1,7 +1,7 @@
 DynamicList.java 786300e2e914826da239329d190abea1710478ea GREEN
 DynamicListContentProvider.java 817cba44f246a361207a88ef9a4e1869215803f7 GREEN
 DynamicStreamContentProvider.java f46e91400609cba54793dd240be0fe2aa0d5cced GREEN
-DynamicTreeContentProviderBase.java e1c46ba3eb7c74c114c8528608e3e6a2ee5c2041 YELLOW
+DynamicTreeContentProviderBase.java 91896b1fb5104d126544c44c1ff8c30f2a13a8d6 YELLOW
 DynamicTreeItem.java 7486071d20e896d6ca9a9101bf105caccf3656d0 GREEN
 DynamicTreeItemBase.java d883066ecc181120302ca32f328538de7a45b093 GREEN
 DynamicTreeTableUIProviderBase.java 1078bd28a6bce5a5a2c60500f2aa1d8b1fdd341b GREEN
diff --git a/org.fortiss.tooling.common.ui/src/org/fortiss/tooling/common/ui/javafx/control/treetableview/DynamicTreeContentProviderBase.java b/org.fortiss.tooling.common.ui/src/org/fortiss/tooling/common/ui/javafx/control/treetableview/DynamicTreeContentProviderBase.java
index e1c46ba3e..91896b1fb 100644
--- a/org.fortiss.tooling.common.ui/src/org/fortiss/tooling/common/ui/javafx/control/treetableview/DynamicTreeContentProviderBase.java
+++ b/org.fortiss.tooling.common.ui/src/org/fortiss/tooling/common/ui/javafx/control/treetableview/DynamicTreeContentProviderBase.java
@@ -33,6 +33,11 @@ public abstract class DynamicTreeContentProviderBase<T> {
 	/** The current filter expression. */
 	private String filterExpression = null;
 
+	/** Returns the sorter comparator. */
+	protected Comparator<T> getSortingComparator() {
+		return (o1, o2) -> 0;
+	}
+
 	/** Sets the filter expression. */
 	public void setFilterExpression(String filterExpression) {
 		this.filterExpression = filterExpression;
@@ -46,17 +51,6 @@ public abstract class DynamicTreeContentProviderBase<T> {
 		return filterExpression;
 	}
 
-	/**
-	 * Creates a filter predicate for the filter expression returned by
-	 * {@link #getFilterExpression()}. To customize the filter, subclasses may override
-	 * {@link #getFilterExpression()} and {@link #filter(Object, String)}.
-	 */
-	private Predicate<T> getFilterPredicate() {
-		return (o) -> {
-			return filter(o, getFilterExpression());
-		};
-	}
-
 	/** Sub-classes may override to implement simple filter behavior. */
 	protected boolean filter(T element, String filterValue) {
 		if(element == null) {
@@ -68,9 +62,15 @@ public abstract class DynamicTreeContentProviderBase<T> {
 		return element.toString().toLowerCase().contains(filterValue.toLowerCase());
 	}
 
-	/** Returns the sorter comparator. */
-	protected Comparator<T> getSortingComparator() {
-		return (o1, o2) -> 0;
+	/**
+	 * Creates a filter predicate for the filter expression returned by
+	 * {@link #getFilterExpression()}. To customize the filter, subclasses may override
+	 * {@link #getFilterExpression()} and {@link #filter(Object, String)}.
+	 */
+	private Predicate<T> getFilterPredicate() {
+		return (o) -> {
+			return filter(o, getFilterExpression());
+		};
 	}
 
 	/** Returns the filtered children of the given element. */
-- 
GitLab