X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.browsing.ui%2Fsrc%2Forg%2Fsimantics%2Fbrowsing%2Fui%2FSelectionDataResolver.java;h=0bd3c8d9669a16f436061fb07bd7599e8e47b2e5;hp=0d5bd3213e1649e8ed5a0c46c6455cd421d4bc0e;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=969bd23cab98a79ca9101af33334000879fb60c5 diff --git a/bundles/org.simantics.browsing.ui/src/org/simantics/browsing/ui/SelectionDataResolver.java b/bundles/org.simantics.browsing.ui/src/org/simantics/browsing/ui/SelectionDataResolver.java index 0d5bd3213..0bd3c8d96 100644 --- a/bundles/org.simantics.browsing.ui/src/org/simantics/browsing/ui/SelectionDataResolver.java +++ b/bundles/org.simantics.browsing.ui/src/org/simantics/browsing/ui/SelectionDataResolver.java @@ -1,46 +1,46 @@ -/******************************************************************************* - * 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. - * - *

- * This interface is needed to externalize the logic of converting external - * Workbench selections into GraphExplorer selections, so that GraphExplorer - * itself can stay generic. - *

- * - * @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 - * null if nothing could be resolved. - */ - Object resolve(Object selectionElement); - -} +/******************************************************************************* + * 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. + * + *

+ * This interface is needed to externalize the logic of converting external + * Workbench selections into GraphExplorer selections, so that GraphExplorer + * itself can stay generic. + *

+ * + * @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 + * null if nothing could be resolved. + */ + Object resolve(Object selectionElement); + +}