本文整理汇总了Java中org.eclipse.gef.dnd.TemplateTransferDropTargetListener类的典型用法代码示例。如果您正苦于以下问题:Java TemplateTransferDropTargetListener类的具体用法?Java TemplateTransferDropTargetListener怎么用?Java TemplateTransferDropTargetListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TemplateTransferDropTargetListener类属于org.eclipse.gef.dnd包,在下文中一共展示了TemplateTransferDropTargetListener类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createTransferDropTargetListener
import org.eclipse.gef.dnd.TemplateTransferDropTargetListener; //导入依赖的package包/类
/**
* Create a transfer drop target listener. When using a
* CombinedTemplateCreationEntry tool in the palette, this will enable model
* element creation by dragging from the palette.
*
* @see #createPaletteViewerProvider()
*/
public TransferDropTargetListener createTransferDropTargetListener() {
return new TemplateTransferDropTargetListener(getGraphicalViewer()) {
@Override
protected CreationFactory getFactory(Object template) {
return new SimpleFactory((Class) template);
}
};
}
示例2: createTransferDropTargetListener
import org.eclipse.gef.dnd.TemplateTransferDropTargetListener; //导入依赖的package包/类
private TransferDropTargetListener createTransferDropTargetListener() {
return new TemplateTransferDropTargetListener(getGraphicalViewer()) {
protected CreationFactory getFactory(Object template) {
return new SimpleFactory((Class<?>) template);
}
};
}
示例3: createTransferDropTargetListener
import org.eclipse.gef.dnd.TemplateTransferDropTargetListener; //导入依赖的package包/类
/**
* Create a transfer drop target listener. When using a
* CombinedTemplateCreationEntry tool in the palette, this will enable model
* element creation by dragging from the palette.
*
* @see #createPaletteViewerProvider()
*/
private TransferDropTargetListener createTransferDropTargetListener() {
return new TemplateTransferDropTargetListener(getGraphicalViewer()) {
protected CreationFactory getFactory(Object template) {
return new SimpleFactory((Class) template);
}
};
}
示例4: createTemplateTransferDropTargetListener
import org.eclipse.gef.dnd.TemplateTransferDropTargetListener; //导入依赖的package包/类
protected TemplateTransferDropTargetListener createTemplateTransferDropTargetListener(
EditPartViewer viewer )
{
return new LibraryTemplateTransferDropTargetListener( viewer );
}
示例5: createTemplateTransferDropTargetListener
import org.eclipse.gef.dnd.TemplateTransferDropTargetListener; //导入依赖的package包/类
protected TemplateTransferDropTargetListener createTemplateTransferDropTargetListener(
EditPartViewer viewer )
{
return new ReportTemplateTransferDropTargetListener( viewer );
}