]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.project/src/org/simantics/project/management/FeatureInfo.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.project / src / org / simantics / project / management / FeatureInfo.java
index 4d2ba3be1b2b3f833acb9e16e13212815cbb4a37..c1abb262d0eb7bfc9c907cc69ec92f4ce4f29704 100644 (file)
@@ -1,89 +1,89 @@
-/*******************************************************************************\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.project.management;\r
-\r
-import org.eclipse.equinox.p2.metadata.IVersionedId;\r
-import org.eclipse.equinox.p2.metadata.Version;\r
-\r
-/**\r
- * Project Feature is a end-user installable unit.\r
- * \r
- *\r
- * @author Toni Kalajainen <toni.kalajainen@vtt.fi>\r
- */\r
-public class FeatureInfo implements IVersionedId {\r
-\r
-       public String name;\r
-       public String URI;\r
-       \r
-       /** ID to the transferable graph */\r
-       public IVersionedId vid;\r
-       \r
-       public FeatureInfo(String name, String URI, IVersionedId vid) {\r
-               this.name = name;\r
-               this.URI = URI;\r
-               this.vid = vid;\r
-       }\r
-\r
-       public String getName() {\r
-               return name;\r
-       }\r
-\r
-       public void setName(String name) {\r
-               this.name = name;\r
-       }\r
-\r
-       public String getURI() {\r
-               return URI;\r
-       }\r
-\r
-       public void setURI(String uRI) {\r
-               URI = uRI;\r
-       }\r
-\r
-       public IVersionedId getVid() {\r
-               return vid;\r
-       }\r
-\r
-       public void setVid(IVersionedId vid) {\r
-               this.vid = vid;\r
-       }\r
-\r
-       @Override\r
-       public int hashCode() {\r
-               return vid.getId().hashCode() * 31 + vid.getVersion().hashCode();\r
-       }\r
-       \r
-       @Override\r
-       public boolean equals(Object obj) {\r
-               if (this == obj)\r
-                       return true;\r
-\r
-               if (!(obj instanceof IVersionedId))\r
-                       return false;\r
-\r
-               IVersionedId vname = (IVersionedId) obj;\r
-               return vid.getId().equals(vname.getId()) && vid.getVersion().equals(vname.getVersion());\r
-       }\r
-\r
-       @Override\r
-       public String getId() {\r
-               return vid.getId();\r
-       }\r
-\r
-       @Override\r
-       public Version getVersion() {\r
-               return vid.getVersion();\r
-       }\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.project.management;
+
+import org.eclipse.equinox.p2.metadata.IVersionedId;
+import org.eclipse.equinox.p2.metadata.Version;
+
+/**
+ * Project Feature is a end-user installable unit.
+ * 
+ *
+ * @author Toni Kalajainen <toni.kalajainen@vtt.fi>
+ */
+public class FeatureInfo implements IVersionedId {
+
+       public String name;
+       public String URI;
+       
+       /** ID to the transferable graph */
+       public IVersionedId vid;
+       
+       public FeatureInfo(String name, String URI, IVersionedId vid) {
+               this.name = name;
+               this.URI = URI;
+               this.vid = vid;
+       }
+
+       public String getName() {
+               return name;
+       }
+
+       public void setName(String name) {
+               this.name = name;
+       }
+
+       public String getURI() {
+               return URI;
+       }
+
+       public void setURI(String uRI) {
+               URI = uRI;
+       }
+
+       public IVersionedId getVid() {
+               return vid;
+       }
+
+       public void setVid(IVersionedId vid) {
+               this.vid = vid;
+       }
+
+       @Override
+       public int hashCode() {
+               return vid.getId().hashCode() * 31 + vid.getVersion().hashCode();
+       }
+       
+       @Override
+       public boolean equals(Object obj) {
+               if (this == obj)
+                       return true;
+
+               if (!(obj instanceof IVersionedId))
+                       return false;
+
+               IVersionedId vname = (IVersionedId) obj;
+               return vid.getId().equals(vname.getId()) && vid.getVersion().equals(vname.getVersion());
+       }
+
+       @Override
+       public String getId() {
+               return vid.getId();
+       }
+
+       @Override
+       public Version getVersion() {
+               return vid.getVersion();
+       }
+       
+}
+