Xcos: put ANNOTATION at the end on sortAndFill
[scilab.git] / scilab / modules / xcos / src / java / org / scilab / modules / xcos / JavaController.java
index 52f8ce7..d9d64d2 100644 (file)
@@ -13,30 +13,30 @@ import java.util.TreeMap;
 
 public class JavaController extends Controller {
 
-    // will contain all registered JavaViews to prevent garbage-collection
-    private static Map<String, View> references = new TreeMap<String, View>();
-
-    private static long add_reference(String name, View v) {
-        references.put(name, v);
-        return View.getCPtr(v);
-    }
-
-    private static View remove_reference(View v) {
-        references.values().remove(v);
-        return v;
-    }
-
-    public static View lookup_view(String name) {
-        return references.get(name);
-    }
-
-    public static void register_view(String name, View view) {
-        JavaControllerJNI.register_view(name, add_reference(name, view), view);
-    }
-
-    public static void unregister_view(View view) {
-        JavaControllerJNI.unregister_view(View.getCPtr(view), view);
-        remove_reference(view);
-    }
+  // will contain all registered JavaViews to prevent garbage-collection
+  private static Map<String, View> references = new TreeMap<String, View>();
+
+  private static long add_reference(String name, View v) {
+    references.put(name, v);
+    return View.getCPtr(v);
+  }
+
+  private static View remove_reference(View v) {
+    references.values().remove(v);
+    return v;
+  }
+
+  public static View lookup_view(String name) {
+    return references.get(name);
+  }
+
+  public static void register_view(String name, View view) {
+    JavaControllerJNI.register_view(name, add_reference(name, view), view);
+  }
+
+  public static void unregister_view(View view) {
+    JavaControllerJNI.unregister_view(View.getCPtr(view), view);
+    remove_reference(view);
+  }
 
 }