Package org.eclipse.dltk.internal.ui.refactoring.reorg

Examples of org.eclipse.dltk.internal.ui.refactoring.reorg.ReorgCopyStarter


  private void handleDropCopy(final Object target) throws ModelException,
      InvocationTargetException, InterruptedException {
    List elements = ((IStructuredSelection) getSelection()).toList();
    IModelElement[] modelElements = ReorgUtils.getModelElements(elements);
    IResource[] resources = getResources(modelElements);
    ReorgCopyStarter starter = null;
    if (target instanceof IModelElement) {
      starter = ReorgCopyStarter.create(modelElements, resources,
          (IModelElement) target);
    } else if (target instanceof IResource) {
      starter = ReorgCopyStarter.create(modelElements, resources,
          (IResource) target);
    }

    if (starter != null)
      starter.run(this.getViewer().getControl().getShell());
  }
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.internal.ui.refactoring.reorg.ReorgCopyStarter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.