]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/modelBrowser/model/Composite.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / modelBrowser / model / Composite.java
index 1a14852dd1763d390e81fab9d404b522d6be0939..3a35b44c79ac590710cc773a52785880b2f9933a 100644 (file)
@@ -1,56 +1,56 @@
-/*******************************************************************************\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.modeling.ui.modelBrowser.model;\r
-\r
-import java.util.ArrayList;\r
-import java.util.Collection;\r
-\r
-import org.eclipse.core.runtime.IAdaptable;\r
-import org.eclipse.jface.dialogs.MessageDialog;\r
-import org.eclipse.jface.resource.ImageDescriptor;\r
-import org.eclipse.jface.viewers.ISelection;\r
-import org.eclipse.jface.viewers.IStructuredSelection;\r
-import org.eclipse.ui.PlatformUI;\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.Session;\r
-import org.simantics.db.WriteGraph;\r
-import org.simantics.db.common.request.WriteRequest;\r
-import org.simantics.db.common.utils.NameUtils;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.layer0.Layer0;\r
-import org.simantics.layer0.utils.direct.GraphUtils;\r
-import org.simantics.modeling.ModelingUtils;\r
-import org.simantics.modeling.ui.Activator;\r
-\r
-@Deprecated\r
-public class Composite extends Node {\r
-       \r
-       public Composite(ReadGraph g, Resource resource) {\r
-               super(resource);\r
-       }\r
-\r
-       @Override\r
-       public Collection<?> getChildren(ReadGraph g) throws DatabaseException {\r
-               Collection<INode> ret = new ArrayList<INode>();\r
-       Layer0 b = Layer0.getInstance(g);\r
-               for(Resource r : g.getObjects(resource, b.ConsistsOf))\r
-                       ret.add(g.adapt(r, INode.class));\r
-               return ret;\r
-       }\r
-\r
-       @Override\r
-       public ImageDescriptor getImage(ReadGraph g) {\r
-               return Activator.COMPOSITE_ICON;\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.modeling.ui.modelBrowser.model;
+
+import java.util.ArrayList;
+import java.util.Collection;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.ui.PlatformUI;
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.Session;
+import org.simantics.db.WriteGraph;
+import org.simantics.db.common.request.WriteRequest;
+import org.simantics.db.common.utils.NameUtils;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.layer0.Layer0;
+import org.simantics.layer0.utils.direct.GraphUtils;
+import org.simantics.modeling.ModelingUtils;
+import org.simantics.modeling.ui.Activator;
+
+@Deprecated
+public class Composite extends Node {
+       
+       public Composite(ReadGraph g, Resource resource) {
+               super(resource);
+       }
+
+       @Override
+       public Collection<?> getChildren(ReadGraph g) throws DatabaseException {
+               Collection<INode> ret = new ArrayList<INode>();
+       Layer0 b = Layer0.getInstance(g);
+               for(Resource r : g.getObjects(resource, b.ConsistsOf))
+                       ret.add(g.adapt(r, INode.class));
+               return ret;
+       }
+
+       @Override
+       public ImageDescriptor getImage(ReadGraph g) {
+               return Activator.COMPOSITE_ICON;
+       }
+               
 }
\ No newline at end of file