-/*******************************************************************************\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;\r
-\r
-\r
-\r
-\r
-/**\r
- * This is an interface for resolvers whose purpose is to adapt data stored in\r
- * Eclipse workbench's {@link ISelection} instances into the input data objects\r
- * that are stored within GraphExplorer's {@link NodeContext} instances.\r
- * \r
- * <p>\r
- * This interface is needed to externalize the logic of converting external\r
- * Workbench selections into GraphExplorer selections, so that GraphExplorer\r
- * itself can stay generic.\r
- * </p>\r
- * \r
- * @author Tuukka Lehtonen\r
- */\r
-public interface SelectionDataResolver {\r
-\r
- /**\r
- * Converts the specified selection element into the real data object contained by\r
- * the selection to allow the GraphExplorer to generically look for those\r
- * data objects within the input objects stored by {@link NodeContext}'s\r
- * (see {@link BuiltinKeys#INPUT} and\r
- * {@link NodeContext#getConstant(org.simantics.browsing.ui.NodeContext.ConstantKey)}\r
- * ).\r
- * \r
- * @param selection a workbench selection\r
- * @return an array of data objects resolved from the specified selection or\r
- * <code>null</code> if nothing could be resolved.\r
- */\r
- Object resolve(Object selectionElement);\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;
+
+
+
+
+/**
+ * This is an interface for resolvers whose purpose is to adapt data stored in
+ * Eclipse workbench's {@link ISelection} instances into the input data objects
+ * that are stored within GraphExplorer's {@link NodeContext} instances.
+ *
+ * <p>
+ * This interface is needed to externalize the logic of converting external
+ * Workbench selections into GraphExplorer selections, so that GraphExplorer
+ * itself can stay generic.
+ * </p>
+ *
+ * @author Tuukka Lehtonen
+ */
+public interface SelectionDataResolver {
+
+ /**
+ * Converts the specified selection element into the real data object contained by
+ * the selection to allow the GraphExplorer to generically look for those
+ * data objects within the input objects stored by {@link NodeContext}'s
+ * (see {@link BuiltinKeys#INPUT} and
+ * {@link NodeContext#getConstant(org.simantics.browsing.ui.NodeContext.ConstantKey)}
+ * ).
+ *
+ * @param selection a workbench selection
+ * @return an array of data objects resolved from the specified selection or
+ * <code>null</code> if nothing could be resolved.
+ */
+ Object resolve(Object selectionElement);
+
+}