本文整理匯總了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;
}
示例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;
}
示例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;
}
示例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;
}