Commit 75c6b575 authored by Stefan Michel's avatar Stefan Michel

- methoden mit static modifier werden nicht mehr im Contextmenu angezeigt

parent 012262b4
......@@ -18,6 +18,7 @@ import model.Terrain;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
......@@ -113,7 +114,7 @@ public class MainViewCreationFX extends VBox {
// hamsterContextMenu
methods.forEach(method -> {
if (method.getAnnotation(Invisible.class) == null) {
if (method.getAnnotation(Invisible.class) == null && !Modifier.isStatic(method.getModifiers())) {
String returnType = method.getReturnType().getSimpleName();
String methodName = method.getName();
Class<?>[] parameterTypes = method.getParameterTypes();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment