]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/PartNameProcedure.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.browsing.ui.swt / src / org / simantics / browsing / ui / swt / PartNameProcedure.java
index 302af2462f158f87bce2a942e21d6bb6e2a37429..067a412530670d17d1d2f8f9167c1d29d192eb24 100644 (file)
@@ -1,42 +1,42 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2012 Association for Decentralized Information Management in\r
- * Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.browsing.ui.swt;\r
-\r
-import java.util.function.Consumer;\r
-\r
-import org.simantics.db.procedure.Procedure;\r
-import org.simantics.utils.ui.ErrorLogger;\r
-\r
-/**\r
- * @author Tuukka Lehtonen\r
- */\r
-public class PartNameProcedure implements Procedure<String> {\r
-\r
-    protected final Consumer<String> updateCallback;\r
-\r
-    public PartNameProcedure(Consumer<String> updateCallback) {\r
-        assert updateCallback != null;\r
-        this.updateCallback = updateCallback;\r
-    }\r
-\r
-    @Override\r
-    public void execute(String result) {\r
-        // System.out.println("part name changed: " + result);\r
-        updateCallback.accept(result);\r
-    }\r
-\r
-    @Override\r
-    public void exception(Throwable t) {\r
-        ErrorLogger.defaultLogError(t);\r
-    }\r
-\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2007, 2012 Association for Decentralized Information Management in
+ * Industry THTH ry.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
+package org.simantics.browsing.ui.swt;
+
+import java.util.function.Consumer;
+
+import org.simantics.db.procedure.Procedure;
+import org.simantics.utils.ui.ErrorLogger;
+
+/**
+ * @author Tuukka Lehtonen
+ */
+public class PartNameProcedure implements Procedure<String> {
+
+    protected final Consumer<String> updateCallback;
+
+    public PartNameProcedure(Consumer<String> updateCallback) {
+        assert updateCallback != null;
+        this.updateCallback = updateCallback;
+    }
+
+    @Override
+    public void execute(String result) {
+        // System.out.println("part name changed: " + result);
+        updateCallback.accept(result);
+    }
+
+    @Override
+    public void exception(Throwable t) {
+        ErrorLogger.defaultLogError(t);
+    }
+
+}