本文整理汇总了Java中org.eclipse.gmf.runtime.diagram.ui.services.editpart.IEditPartOperation类的典型用法代码示例。如果您正苦于以下问题:Java IEditPartOperation类的具体用法?Java IEditPartOperation怎么用?Java IEditPartOperation使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IEditPartOperation类属于org.eclipse.gmf.runtime.diagram.ui.services.editpart包,在下文中一共展示了IEditPartOperation类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: provides
import org.eclipse.gmf.runtime.diagram.ui.services.editpart.IEditPartOperation; //导入依赖的package包/类
/**
* @generated
*/
public synchronized boolean provides(IOperation operation) {
if (operation instanceof CreateGraphicEditPartOperation) {
View view = ((IEditPartOperation) operation).getView();
if (!SystemEditPart.MODEL_ID.equals(SmcVisualIDRegistry
.getModelID(view))) {
return false;
}
if (isAllowCaching() && getCachedPart(view) != null) {
return true;
}
IGraphicalEditPart part = createEditPart(view);
if (part != null) {
if (isAllowCaching()) {
cachedPart = new WeakReference(part);
cachedView = new WeakReference(view);
}
return true;
}
}
return false;
}
示例2: provides
import org.eclipse.gmf.runtime.diagram.ui.services.editpart.IEditPartOperation; //导入依赖的package包/类
/**
* @generated
*/
public synchronized boolean provides(IOperation operation) {
if (operation instanceof CreateGraphicEditPartOperation) {
View view = ((IEditPartOperation) operation).getView();
if (!RelationalDatabaseEditPart.MODEL_ID
.equals(RelationalDatabaseVisualIDRegistry.getModelID(view))) {
return false;
}
if (isAllowCaching() && getCachedPart(view) != null) {
return true;
}
IGraphicalEditPart part = createEditPart(view);
if (part != null) {
if (isAllowCaching()) {
cachedPart = new WeakReference(part);
cachedView = new WeakReference(view);
}
return true;
}
}
return false;
}
示例3: provides
import org.eclipse.gmf.runtime.diagram.ui.services.editpart.IEditPartOperation; //导入依赖的package包/类
/**
* @generated
*/
public synchronized boolean provides(IOperation operation) {
if (operation instanceof CreateGraphicEditPartOperation) {
View view = ((IEditPartOperation) operation).getView();
if (!IStarEditPart.MODEL_ID.equals(IStarVisualIDRegistry
.getModelID(view))) {
return false;
}
if (isAllowCaching() && getCachedPart(view) != null) {
return true;
}
IGraphicalEditPart part = createEditPart(view);
if (part != null) {
if (isAllowCaching()) {
cachedPart = new WeakReference(part);
cachedView = new WeakReference(view);
}
return true;
}
}
return false;
}
示例4: provides
import org.eclipse.gmf.runtime.diagram.ui.services.editpart.IEditPartOperation; //导入依赖的package包/类
/**
* @generated
*/
public synchronized boolean provides(IOperation operation) {
if (operation instanceof CreateGraphicEditPartOperation) {
View view = ((IEditPartOperation) operation).getView();
if (!ArgumentEditPart.MODEL_ID.equals(DcaseVisualIDRegistry
.getModelID(view))) {
return false;
}
if (isAllowCaching() && getCachedPart(view) != null) {
return true;
}
IGraphicalEditPart part = createEditPart(view);
if (part != null) {
if (isAllowCaching()) {
cachedPart = new WeakReference(part);
cachedView = new WeakReference(view);
}
return true;
}
}
return false;
}