]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/assist/SCLContentProposal.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scl.ui / src / org / simantics / scl / ui / assist / SCLContentProposal.java
index f111780330419403d38ca56b1fcdfafb3fe6be24..da2186fd8648746a8c750f0dbcc7efdfcdc85a36 100644 (file)
@@ -1,55 +1,55 @@
-package org.simantics.scl.ui.assist;\r
-\r
-import org.eclipse.jface.fieldassist.IContentProposal;\r
-import org.simantics.scl.compiler.common.names.Name;\r
-import org.simantics.scl.compiler.elaboration.modules.SCLValue;\r
-import org.simantics.scl.compiler.types.Type;\r
-\r
-public class SCLContentProposal implements IContentProposal {\r
-\r
-    private final String content;\r
-    private final String name;\r
-    private final String module;\r
-    private final Type type;\r
-    private final String documentation;\r
-    \r
-    public SCLContentProposal(SCLValue value) {\r
-        Name n = value.getName();\r
-        this.name = n.name;\r
-        this.module = n.module;\r
-//        this.content = name.substring(prefixLength-namespaceLength);\r
-        this.content = name;\r
-        this.type = value.getType();\r
-        this.documentation = value.getDocumentation();\r
-    }\r
-    \r
-    public SCLContentProposal(String name, String module, Type type) {\r
-        this.name = name;\r
-        this.module = module;\r
-//        this.content = name.substring(prefixLength-namespaceLength);\r
-        this.content = name;\r
-        this.type = type;\r
-        this.documentation = null;\r
-    }\r
-    \r
-    @Override\r
-    public String getContent() {\r
-        return content;\r
-    }\r
-\r
-    @Override\r
-    public int getCursorPosition() {\r
-        return content.length();\r
-    }\r
-\r
-    @Override\r
-    public String getLabel() {\r
-        return name + " :: " + type + "  (" + module + ")";\r
-    }\r
-\r
-    @Override\r
-    public String getDescription() {\r
-        return documentation;\r
-    }\r
-\r
-}\r
+package org.simantics.scl.ui.assist;
+
+import org.eclipse.jface.fieldassist.IContentProposal;
+import org.simantics.scl.compiler.common.names.Name;
+import org.simantics.scl.compiler.elaboration.modules.SCLValue;
+import org.simantics.scl.compiler.types.Type;
+
+public class SCLContentProposal implements IContentProposal {
+
+    private final String content;
+    private final String name;
+    private final String module;
+    private final Type type;
+    private final String documentation;
+    
+    public SCLContentProposal(SCLValue value) {
+        Name n = value.getName();
+        this.name = n.name;
+        this.module = n.module;
+//        this.content = name.substring(prefixLength-namespaceLength);
+        this.content = name;
+        this.type = value.getType();
+        this.documentation = value.getDocumentation();
+    }
+    
+    public SCLContentProposal(String name, String module, Type type) {
+        this.name = name;
+        this.module = module;
+//        this.content = name.substring(prefixLength-namespaceLength);
+        this.content = name;
+        this.type = type;
+        this.documentation = null;
+    }
+    
+    @Override
+    public String getContent() {
+        return content;
+    }
+
+    @Override
+    public int getCursorPosition() {
+        return content.length();
+    }
+
+    @Override
+    public String getLabel() {
+        return name + " :: " + type + "  (" + module + ")";
+    }
+
+    @Override
+    public String getDescription() {
+        return documentation;
+    }
+
+}