Package org.eclipse.gef.dnd

Examples of org.eclipse.gef.dnd.TemplateTransferDragSourceListener


        // this will enable
        // model element creation by dragging a
        // CombinatedTemplateCreationEntries
        // from the palette into the editor
        // @see ShapesEditor#createTransferDropTargetListener()
        viewer.addDragSourceListener(new TemplateTransferDragSourceListener(
            viewer));
      }
    };
  }
View Full Code Here


  return new PaletteViewerProvider(getEditDomain()) {
    private IMenuListener menuListener;
    protected void configurePaletteViewer(PaletteViewer viewer) {
      super.configurePaletteViewer(viewer);
      viewer.setCustomizer(new LogicPaletteCustomizer());
      viewer.addDragSourceListener(new TemplateTransferDragSourceListener(viewer));
    }
    protected void hookPaletteViewer(PaletteViewer viewer) {
      super.hookPaletteViewer(viewer);
      final CopyTemplateAction copy = (CopyTemplateAction)getActionRegistry()
          .getAction(ActionFactory.COPY.getId());
View Full Code Here

  }

  @Override
  protected void initializePaletteViewer() {
    super.initializePaletteViewer();
    transferSourceListener = new TemplateTransferDragSourceListener(getPaletteViewer());
    getPaletteViewer().addDragSourceListener(transferSourceListener);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.gef.dnd.TemplateTransferDragSourceListener

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.