當前位置: 首頁>>代碼示例>>Java>>正文


Java CreateGraphicEditPartOperation類代碼示例

本文整理匯總了Java中org.eclipse.gmf.runtime.diagram.ui.services.editpart.CreateGraphicEditPartOperation的典型用法代碼示例。如果您正苦於以下問題:Java CreateGraphicEditPartOperation類的具體用法?Java CreateGraphicEditPartOperation怎麽用?Java CreateGraphicEditPartOperation使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


CreateGraphicEditPartOperation類屬於org.eclipse.gmf.runtime.diagram.ui.services.editpart包,在下文中一共展示了CreateGraphicEditPartOperation類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: provides

import org.eclipse.gmf.runtime.diagram.ui.services.editpart.CreateGraphicEditPartOperation; //導入依賴的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.CreateGraphicEditPartOperation; //導入依賴的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.CreateGraphicEditPartOperation; //導入依賴的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.CreateGraphicEditPartOperation; //導入依賴的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.CreateGraphicEditPartOperation類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。