]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.event/src/org/simantics/event/view/contribution/EventTypeImageDescriptorRequest.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.event / src / org / simantics / event / view / contribution / EventTypeImageDescriptorRequest.java
index 611da728dc3c563e8ab6dee8c7a08c7de44bfa94..d5f84eaae7129ed4e74f6595628eba0bf3e1d593 100644 (file)
@@ -1,40 +1,40 @@
-/*******************************************************************************\r
- * Copyright (c) 2013 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
- *     Semantum Oy - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.event.view.contribution;\r
-\r
-import org.eclipse.jface.resource.ImageDescriptor;\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.common.request.ResourceRead;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.ui.icons.GraphImageDescriptor;\r
-import org.simantics.viewpoint.ontology.ViewpointResource;\r
-\r
-/**\r
- * @author Tuukka Lehtonen\r
- */\r
-public class EventTypeImageDescriptorRequest extends ResourceRead<ImageDescriptor> {\r
-\r
-    public EventTypeImageDescriptorRequest(Resource eventType) {\r
-        super(eventType);\r
-    }\r
-\r
-    @Override\r
-    public ImageDescriptor perform(ReadGraph graph) throws DatabaseException {\r
-        ViewpointResource VP = ViewpointResource.getInstance(graph);\r
-        Resource image = graph.getPossibleObject(resource, VP.ConstantImageRule_HasImage);\r
-        if (image == null)\r
-            return null;\r
-        return new GraphImageDescriptor(graph, image);\r
-    }\r
-\r
+/*******************************************************************************
+ * Copyright (c) 2013 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:
+ *     Semantum Oy - initial API and implementation
+ *******************************************************************************/
+package org.simantics.event.view.contribution;
+
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.common.request.ResourceRead;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.ui.icons.GraphImageDescriptor;
+import org.simantics.viewpoint.ontology.ViewpointResource;
+
+/**
+ * @author Tuukka Lehtonen
+ */
+public class EventTypeImageDescriptorRequest extends ResourceRead<ImageDescriptor> {
+
+    public EventTypeImageDescriptorRequest(Resource eventType) {
+        super(eventType);
+    }
+
+    @Override
+    public ImageDescriptor perform(ReadGraph graph) throws DatabaseException {
+        ViewpointResource VP = ViewpointResource.getInstance(graph);
+        Resource image = graph.getPossibleObject(resource, VP.ConstantImageRule_HasImage);
+        if (image == null)
+            return null;
+        return new GraphImageDescriptor(graph, image);
+    }
+
 }
\ No newline at end of file