/** * 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"); }
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)
if (attribute == selected) complexType.getAttributeContents().remove(attribute.getContainer()); break;
if (attribute == selected) parentGroup.getContents().remove(attribute.getContainer()); break;
/** * 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); }
if (theResolvedAttributeDeclaration.getContainer() == null)
if (((XSDAttributeDeclaration)comp).getContainer() instanceof XSDAttributeUse)
if (theResolvedAttributeDeclaration.getContainer() == null)
if (selection instanceof XSDAttributeDeclaration) selection = ((XSDAttributeDeclaration) selection).getContainer();