当前位置: 首页>>代码示例>>Java>>正文


Java IEditPartOperation类代码示例

本文整理汇总了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;
}
 
开发者ID:road-framework,项目名称:ROADDesigner,代码行数:25,代码来源:SmcEditPartProvider.java

示例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;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:25,代码来源:RelationalDatabaseEditPartProvider.java

示例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;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:25,代码来源:IStarEditPartProvider.java

示例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;
}
 
开发者ID:d-case,项目名称:d-case_editor,代码行数:25,代码来源:DcaseEditPartProvider.java


注:本文中的org.eclipse.gmf.runtime.diagram.ui.services.editpart.IEditPartOperation类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。