本文整理汇总了Java中org.eclipse.gef.dnd.AbstractTransferDragSourceListener类的典型用法代码示例。如果您正苦于以下问题:Java AbstractTransferDragSourceListener类的具体用法?Java AbstractTransferDragSourceListener怎么用?Java AbstractTransferDragSourceListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AbstractTransferDragSourceListener类属于org.eclipse.gef.dnd包,在下文中一共展示了AbstractTransferDragSourceListener类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createControl
import org.eclipse.gef.dnd.AbstractTransferDragSourceListener; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void createControl(final Composite parent) {
sash = new SashForm(parent, SWT.VERTICAL);
// コンストラクタで指定したビューワの作成
viewer.createControl(sash);
// EditPartFactory の設定
final ERDiagramOutlineEditPartFactory editPartFactory = new ERDiagramOutlineEditPartFactory();
viewer.setEditPartFactory(editPartFactory);
// グラフィカル・エディタのルート・モデルをツリー・ビューワにも設定
viewer.setContents(diagram);
final Canvas canvas = new Canvas(sash, SWT.BORDER);
// サムネイル・フィギュアを配置する為の LightweightSystem
lws = new LightweightSystem(canvas);
resetView(registry);
final AbstractTransferDragSourceListener dragSourceListener = new ERDiagramTransferDragSourceListener(viewer, TemplateTransfer.getInstance());
viewer.addDragSourceListener(dragSourceListener);
diagram.refreshOutline();
}
开发者ID:roundrop,项目名称:ermasterr,代码行数:29,代码来源:ERDiagramOutlinePage.java
示例2: createControl
import org.eclipse.gef.dnd.AbstractTransferDragSourceListener; //导入依赖的package包/类
@Override
public void createControl(Composite parent) {
this.sash = new SashForm(parent, SWT.VERTICAL);
viewer.createControl(sash);
editPartFactory = new ERDiagramOutlineEditPartFactory();
editPartFactory.setQuickMode(quickMode);
viewer.setEditPartFactory(editPartFactory);
viewer.setContents(diagram);
if (!quickMode) {
final Canvas canvas = new Canvas(sash, SWT.BORDER);
lws = new LightweightSystem(canvas);
}
resetView(registry);
final AbstractTransferDragSourceListener dragSourceListener =
new ERDiagramTransferDragSourceListener(viewer, TemplateTransfer.getInstance());
viewer.addDragSourceListener(dragSourceListener);
expandVirturalDiagramTree();
}
开发者ID:dbflute-session,项目名称:erflute,代码行数:20,代码来源:ERDiagramOutlinePage.java
示例3: initDragAndDrop
import org.eclipse.gef.dnd.AbstractTransferDragSourceListener; //导入依赖的package包/类
private void initDragAndDrop(final GraphicalViewer viewer) {
final AbstractTransferDragSourceListener dragSourceListener = new ERDiagramTransferDragSourceListener(viewer, TemplateTransfer.getInstance());
viewer.addDragSourceListener(dragSourceListener);
final AbstractTransferDropTargetListener dropTargetListener = new ERDiagramTransferDropTargetListener(viewer, TemplateTransfer.getInstance());
viewer.addDropTargetListener(dropTargetListener);
}
开发者ID:roundrop,项目名称:ermasterr,代码行数:9,代码来源:ERDiagramEditor.java
示例4: createControl
import org.eclipse.gef.dnd.AbstractTransferDragSourceListener; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void createControl(Composite parent) {
this.sash = new SashForm(parent, SWT.VERTICAL);
// コンストラクタで指定したビューワの作成
this.viewer.createControl(this.sash);
// EditPartFactory の設定
ERDiagramOutlineEditPartFactory editPartFactory = new ERDiagramOutlineEditPartFactory();
this.viewer.setEditPartFactory(editPartFactory);
// グラフィカル・エディタのルート・モデルをツリー・ビューワにも設定
this.viewer.setContents(this.diagram);
Canvas canvas = new Canvas(this.sash, SWT.BORDER);
// サムネイル・フィギュアを配置する為の LightweightSystem
this.lws = new LightweightSystem(canvas);
this.resetView(this.registry);
AbstractTransferDragSourceListener dragSourceListener = new ERDiagramTransferDragSourceListener(
this.viewer, TemplateTransfer.getInstance());
this.viewer.addDragSourceListener(dragSourceListener);
this.diagram.refreshOutline();
}
开发者ID:kozake,项目名称:ermaster-k,代码行数:30,代码来源:ERDiagramOutlinePage.java
示例5: initDragAndDrop
import org.eclipse.gef.dnd.AbstractTransferDragSourceListener; //导入依赖的package包/类
private void initDragAndDrop(GraphicalViewer viewer) {
AbstractTransferDragSourceListener dragSourceListener = new ERDiagramTransferDragSourceListener(
viewer, TemplateTransfer.getInstance());
viewer.addDragSourceListener(dragSourceListener);
AbstractTransferDropTargetListener dropTargetListener = new ERDiagramTransferDropTargetListener(
viewer, TemplateTransfer.getInstance());
viewer.addDropTargetListener(dropTargetListener);
}
开发者ID:kozake,项目名称:ermaster-k,代码行数:11,代码来源:ERDiagramEditor.java
示例6: initDragAndDrop
import org.eclipse.gef.dnd.AbstractTransferDragSourceListener; //导入依赖的package包/类
protected void initDragAndDrop(GraphicalViewer viewer) {
final AbstractTransferDragSourceListener dragSourceListener =
new ERDiagramTransferDragSourceListener(viewer, TemplateTransfer.getInstance());
viewer.addDragSourceListener(dragSourceListener);
final AbstractTransferDropTargetListener dropTargetListener =
new ERDiagramTransferDropTargetListener(viewer, TemplateTransfer.getInstance());
viewer.addDropTargetListener(dropTargetListener);
}
开发者ID:dbflute-session,项目名称:erflute,代码行数:9,代码来源:MainDiagramEditor.java
注:本文中的org.eclipse.gef.dnd.AbstractTransferDragSourceListener类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论