org.eclipse.xsd.XSDAttributeDeclaration.getContainer()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(80)

本文整理了Java中org.eclipse.xsd.XSDAttributeDeclaration.getContainer()方法的一些代码示例,展示了XSDAttributeDeclaration.getContainer()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSDAttributeDeclaration.getContainer()方法的具体详情如下:
包路径:org.eclipse.xsd.XSDAttributeDeclaration
类名称:XSDAttributeDeclaration
方法名:getContainer

XSDAttributeDeclaration.getContainer介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.emf/org.eclipse.xsd.edit

/**
 * This returns XSDAttributeDeclaration.gif.
 */
@Override
public Object getImage(Object object)
{
 XSDAttributeDeclaration xsdAttributeDeclaration = ((XSDAttributeDeclaration)object);
 XSDAttributeDeclaration resolvedAttributeDeclaration = xsdAttributeDeclaration.getResolvedAttributeDeclaration();
 return 
  XSDEditPlugin.INSTANCE.getImage
   (resolvedAttributeDeclaration.getContainer() == null ?
    "full/obj16/XSDAttributeUnresolved" :
    xsdAttributeDeclaration.getResolvedAttributeDeclaration() == xsdAttributeDeclaration ?
     "full/obj16/XSDAttributeDeclaration" :
     "full/obj16/XSDAttributeUse");
}

代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui

XSDConcreteComponent parent = ((XSDAttributeDeclaration) previousRefComponent).getContainer().getContainer();
if (closerSibling == BELOW_IS_CLOSER)
 parent = ((XSDAttributeDeclaration) nextRefComponent).getContainer().getContainer();
XSDConcreteComponent parent = ((XSDAttributeDeclaration) nextRefComponent).getContainer().getContainer();
if (closerSibling == ABOVE_IS_CLOSER)
XSDConcreteComponent parent = ((XSDAttributeDeclaration) previousRefComponent).getContainer().getContainer();
if (closerSibling == ABOVE_IS_CLOSER)

代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui

if (attribute == selected)
 complexType.getAttributeContents().remove(attribute.getContainer());
 break;

代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui

if (attribute == selected)
 parentGroup.getContents().remove(attribute.getContainer());
 break;

代码示例来源:origin: org.eclipse.emf/org.eclipse.xsd.edit

/**
 * This handles notification by calling {@link #fireNotifyChanged fireNotifyChanged}.
 */
@Override
public void notifyChanged(Notification msg) 
{
 XSDAttributeDeclaration xsdAttributeDeclaration = (XSDAttributeDeclaration)msg.getNotifier();
 if (msg.getFeature() == xsdPackage.getXSDAttributeDeclaration_TypeDefinition() || 
    msg.getFeature() == xsdPackage.getXSDAttributeDeclaration_AnonymousTypeDefinition() || 
    msg.getFeature() == xsdPackage.getXSDAttributeDeclaration_ResolvedAttributeDeclaration() ||
    msg.getFeature() == xsdPackage.getXSDAttributeDeclaration_Annotation())
 {
  fireNotifyChanged(msg);
  XSDConcreteComponent container = xsdAttributeDeclaration.getContainer();
  if (container instanceof XSDAttributeUse)
  {
   ((ItemProviderAdapter)adapterFactory.adapt(container, IItemLabelProvider.class)).fireNotifyChanged
    (new ENotificationImpl
     ((InternalEObject)container, 
      msg.getEventType(), 
      (EStructuralFeature)msg.getFeature(), 
      msg.getOldValue(), 
      msg.getNewValue(), 
      msg.getPosition()));
  }
  return;
 }
 super.notifyChanged(msg);
}

代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd

if (theResolvedAttributeDeclaration.getContainer() == null)

代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui

if (((XSDAttributeDeclaration)comp).getContainer() instanceof XSDAttributeUse)

代码示例来源:origin: org.eclipse/org.eclipse.xsd

if (theResolvedAttributeDeclaration.getContainer() == null)

代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui

if (selection instanceof XSDAttributeDeclaration)
 selection = ((XSDAttributeDeclaration) selection).getContainer();

相关文章

微信公众号

最新文章

更多