]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/ContributionViewpointFactory.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.browsing.ui.graph.impl / src / org / simantics / browsing / ui / graph / impl / ContributionViewpointFactory.java
index c6c1241f1269f64ea1e1586d5c8c9cc1003ef00c..07ceb9cb37eb7eaf7e4bc3854efdbad103105545 100644 (file)
@@ -1,49 +1,49 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
- * in 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.graph.impl;\r
-\r
-import java.util.Collection;\r
-\r
-import org.simantics.browsing.ui.NodeContext;\r
-import org.simantics.browsing.ui.PrimitiveQueryUpdater;\r
-import org.simantics.browsing.ui.BuiltinKeys.ViewpointKey;\r
-import org.simantics.browsing.ui.content.Viewpoint;\r
-import org.simantics.browsing.ui.content.ViewpointContributionFactory;\r
-import org.simantics.browsing.ui.content.ViewpointFactory;\r
-\r
-public class ContributionViewpointFactory implements ViewpointFactory {\r
-\r
-    final private String name;\r
-    final private Collection<ViewpointContributionFactory> contributions;\r
-    \r
-    public ContributionViewpointFactory(String name, Collection<ViewpointContributionFactory> contributions) {\r
-        this.name = name;\r
-        this.contributions = contributions;\r
-    }\r
-    \r
-    @Override\r
-    public Viewpoint create(PrimitiveQueryUpdater updater,\r
-            NodeContext context, ViewpointKey key) {\r
-\r
-        assert(updater != null);\r
-        assert(context != null);\r
-\r
-        return new ContributionViewpoint(contributions);\r
-        \r
-    }\r
-    \r
-    @Override\r
-    public String toString() {\r
-        return name;\r
-    }\r
-\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2007, 2010 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.graph.impl;
+
+import java.util.Collection;
+
+import org.simantics.browsing.ui.NodeContext;
+import org.simantics.browsing.ui.PrimitiveQueryUpdater;
+import org.simantics.browsing.ui.BuiltinKeys.ViewpointKey;
+import org.simantics.browsing.ui.content.Viewpoint;
+import org.simantics.browsing.ui.content.ViewpointContributionFactory;
+import org.simantics.browsing.ui.content.ViewpointFactory;
+
+public class ContributionViewpointFactory implements ViewpointFactory {
+
+    final private String name;
+    final private Collection<ViewpointContributionFactory> contributions;
+    
+    public ContributionViewpointFactory(String name, Collection<ViewpointContributionFactory> contributions) {
+        this.name = name;
+        this.contributions = contributions;
+    }
+    
+    @Override
+    public Viewpoint create(PrimitiveQueryUpdater updater,
+            NodeContext context, ViewpointKey key) {
+
+        assert(updater != null);
+        assert(context != null);
+
+        return new ContributionViewpoint(contributions);
+        
+    }
+    
+    @Override
+    public String toString() {
+        return name;
+    }
+
+}