]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/ProceduralComponentTypeCodeEditor.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / componentTypeEditor / ProceduralComponentTypeCodeEditor.java
index 7b5e96f90e09e73707916213a2c261a7aa6a506f..eebe3b0474b6e495f883cdce02f0422d25e4e7b7 100644 (file)
@@ -1,58 +1,58 @@
-/*******************************************************************************\r
- * Copyright (c) 2013, 2015 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
- *     Semantum Oy - adaption to SCLModuleEditor/TextEditor\r
- *******************************************************************************/\r
-package org.simantics.modeling.ui.componentTypeEditor;\r
-\r
-import org.eclipse.swt.widgets.Display;\r
-import org.eclipse.ui.PlatformUI;\r
-import org.simantics.db.common.request.ParametrizedRead;\r
-import org.simantics.db.layer0.request.combinations.Combinators;\r
-import org.simantics.layer0.Layer0;\r
-import org.simantics.scl.ui.editor.SCLSourceViewerConfigurationNew;\r
-import org.simantics.scl.ui.editor.SharedTextColorsNew;\r
-import org.simantics.ui.workbench.IResourceEditorInput;\r
-import org.simantics.ui.workbench.editor.input.InputValidationCombinators;\r
-\r
-/**\r
- * @author Hannu Niemistö\r
- * @author Tuukka Lehtonen (extended from SCLModuleEditor)\r
- */\r
-public class ProceduralComponentTypeCodeEditor extends SCLModuleEditor {\r
-\r
-    private ParametrizedRead<IResourceEditorInput, Boolean> INPUT_VALIDATOR =\r
-            Combinators.compose(\r
-                    InputValidationCombinators.hasURI(),\r
-                    Combinators.compose(\r
-                            InputValidationCombinators.partialFunction(Layer0.URIs.PropertyOf),\r
-                            InputValidationCombinators.extractInputResource()\r
-                    )\r
-            );\r
-\r
-    public ProceduralComponentTypeCodeEditor() {\r
-        super();\r
-    }\r
-\r
-    @Override\r
-    protected void preInitialize() {\r
-        //showOverviewRuler();\r
-        Display display = PlatformUI.getWorkbench().getDisplay();\r
-        SCLSourceViewerConfigurationNew sourceViewerConfiguration = new SCLSourceViewerConfigurationNew(resourceManager);\r
-        setDocumentProvider(new ProceduralComponentTypeCodeDocumentProvider(sourceViewerConfiguration, display, this));\r
-        setSourceViewerConfiguration(sourceViewerConfiguration);\r
-        \r
-    }\r
-\r
-    protected ParametrizedRead<IResourceEditorInput, Boolean> getInputValidator() {\r
-        return INPUT_VALIDATOR;\r
-    }\r
-\r
+/*******************************************************************************
+ * Copyright (c) 2013, 2015 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
+ *     Semantum Oy - adaption to SCLModuleEditor/TextEditor
+ *******************************************************************************/
+package org.simantics.modeling.ui.componentTypeEditor;
+
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.simantics.db.common.request.ParametrizedRead;
+import org.simantics.db.layer0.request.combinations.Combinators;
+import org.simantics.layer0.Layer0;
+import org.simantics.scl.ui.editor.SCLSourceViewerConfigurationNew;
+import org.simantics.scl.ui.editor.SharedTextColorsNew;
+import org.simantics.ui.workbench.IResourceEditorInput;
+import org.simantics.ui.workbench.editor.input.InputValidationCombinators;
+
+/**
+ * @author Hannu Niemist&ouml;
+ * @author Tuukka Lehtonen (extended from SCLModuleEditor)
+ */
+public class ProceduralComponentTypeCodeEditor extends SCLModuleEditor {
+
+    private ParametrizedRead<IResourceEditorInput, Boolean> INPUT_VALIDATOR =
+            Combinators.compose(
+                    InputValidationCombinators.hasURI(),
+                    Combinators.compose(
+                            InputValidationCombinators.partialFunction(Layer0.URIs.PropertyOf),
+                            InputValidationCombinators.extractInputResource()
+                    )
+            );
+
+    public ProceduralComponentTypeCodeEditor() {
+        super();
+    }
+
+    @Override
+    protected void preInitialize() {
+        //showOverviewRuler();
+        Display display = PlatformUI.getWorkbench().getDisplay();
+        SCLSourceViewerConfigurationNew sourceViewerConfiguration = new SCLSourceViewerConfigurationNew(resourceManager);
+        setDocumentProvider(new ProceduralComponentTypeCodeDocumentProvider(sourceViewerConfiguration, display, this));
+        setSourceViewerConfiguration(sourceViewerConfiguration);
+        
+    }
+
+    protected ParametrizedRead<IResourceEditorInput, Boolean> getInputValidator() {
+        return INPUT_VALIDATOR;
+    }
+
 }
\ No newline at end of file