Search in sources :

Example 6 with ContentObject

use of org.knime.workbench.explorer.view.ContentObject in project knime-core by knime.

the class MetaNodeTemplateDropTargetListener method handleDrop.

/**
 * {@inheritDoc}
 */
@Override
protected void handleDrop() {
    ContentObject obj = getDragResources(getCurrentEvent());
    AbstractExplorerFileStore store = obj.getObject();
    if (AbstractExplorerFileStore.isWorkflowTemplate(store)) {
        getFactory().setSourceFileStore(store);
        super.handleDrop();
    }
}
Also used : AbstractExplorerFileStore(org.knime.workbench.explorer.filesystem.AbstractExplorerFileStore) ContentObject(org.knime.workbench.explorer.view.ContentObject)

Aggregations

ContentObject (org.knime.workbench.explorer.view.ContentObject)6 AbstractExplorerFileStore (org.knime.workbench.explorer.filesystem.AbstractExplorerFileStore)4 SpaceResourceSelectionDialog (org.knime.workbench.explorer.dialogs.SpaceResourceSelectionDialog)3 AbstractContentProvider (org.knime.workbench.explorer.view.AbstractContentProvider)3 ArrayList (java.util.ArrayList)2 Map (java.util.Map)2 Shell (org.eclipse.swt.widgets.Shell)2 WorkflowManager (org.knime.core.node.workflow.WorkflowManager)2 Validator (org.knime.workbench.explorer.dialogs.Validator)2 AbstractExplorerFileInfo (org.knime.workbench.explorer.filesystem.AbstractExplorerFileInfo)2 MalformedURLException (java.net.MalformedURLException)1 URL (java.net.URL)1 HashSet (java.util.HashSet)1 LinkedList (java.util.LinkedList)1 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)1 AtomicReference (java.util.concurrent.atomic.AtomicReference)1 CoreException (org.eclipse.core.runtime.CoreException)1 Path (org.eclipse.core.runtime.Path)1 Point (org.eclipse.draw2d.geometry.Point)1 PrecisionPoint (org.eclipse.draw2d.geometry.PrecisionPoint)1