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


Java DiPackage类代码示例

本文整理汇总了Java中org.eclipse.dd.di.DiPackage的典型用法代码示例。如果您正苦于以下问题:Java DiPackage类的具体用法?Java DiPackage怎么用?Java DiPackage使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


DiPackage类属于org.eclipse.dd.di包,在下文中一共展示了DiPackage类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: notifyChanged

import org.eclipse.dd.di.DiPackage; //导入依赖的package包/类
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged(Notification notification) {
	updateChildren(notification);

	switch (notification.getFeatureID(Edge.class)) {
	case DiPackage.EDGE__SOURCE:
	case DiPackage.EDGE__TARGET:
		fireNotifyChanged(new ViewerNotification(notification,
				notification.getNotifier(), false, true));
		return;
	case DiPackage.EDGE__WAYPOINT:
		fireNotifyChanged(new ViewerNotification(notification,
				notification.getNotifier(), true, false));
		return;
	}
	super.notifyChanged(notification);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:25,代码来源:EdgeItemProvider.java

示例2: eIsSet

import org.eclipse.dd.di.DiPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public boolean eIsSet(int featureID) {
	switch (featureID) {
	case DiPackage.DIAGRAM__DOCUMENTATION:
		return DOCUMENTATION_EDEFAULT == null ? documentation != null
				: !DOCUMENTATION_EDEFAULT.equals(documentation);
	case DiPackage.DIAGRAM__OWNED_STYLE:
		return ownedStyle != null && !ownedStyle.isEmpty();
	case DiPackage.DIAGRAM__ROOT_ELEMENT:
		return rootElement != null;
	case DiPackage.DIAGRAM__ID:
		return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
	case DiPackage.DIAGRAM__NAME:
		return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT
				.equals(name);
	case DiPackage.DIAGRAM__RESOLUTION:
		return resolution != RESOLUTION_EDEFAULT;
	}
	return super.eIsSet(featureID);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:26,代码来源:DiagramImpl.java

示例3: getChildrenFeatures

import org.eclipse.dd.di.DiPackage; //导入依赖的package包/类
/**
 * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
 * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
 * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Collection<? extends EStructuralFeature> getChildrenFeatures(
		Object object) {
	if (childrenFeatures == null) {
		super.getChildrenFeatures(object);
		childrenFeatures
				.add(DiPackage.Literals.DOCUMENT_ROOT__DIAGRAM_ELEMENT);
		childrenFeatures.add(DiPackage.Literals.DOCUMENT_ROOT__DIAGRAM);
		childrenFeatures.add(DiPackage.Literals.DOCUMENT_ROOT__EDGE);
		childrenFeatures.add(DiPackage.Literals.DOCUMENT_ROOT__LABEL);
		childrenFeatures
				.add(DiPackage.Literals.DOCUMENT_ROOT__LABELED_EDGE);
		childrenFeatures
				.add(DiPackage.Literals.DOCUMENT_ROOT__LABELED_SHAPE);
		childrenFeatures.add(DiPackage.Literals.DOCUMENT_ROOT__NODE);
		childrenFeatures.add(DiPackage.Literals.DOCUMENT_ROOT__PLANE);
		childrenFeatures.add(DiPackage.Literals.DOCUMENT_ROOT__SHAPE);
		childrenFeatures.add(DiPackage.Literals.DOCUMENT_ROOT__STYLE);
	}
	return childrenFeatures;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:30,代码来源:DocumentRootItemProvider.java

示例4: notifyChanged

import org.eclipse.dd.di.DiPackage; //导入依赖的package包/类
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged(Notification notification) {
	updateChildren(notification);

	switch (notification.getFeatureID(DocumentRoot.class)) {
	case DiPackage.DOCUMENT_ROOT__DIAGRAM_ELEMENT:
	case DiPackage.DOCUMENT_ROOT__DIAGRAM:
	case DiPackage.DOCUMENT_ROOT__EDGE:
	case DiPackage.DOCUMENT_ROOT__LABEL:
	case DiPackage.DOCUMENT_ROOT__LABELED_EDGE:
	case DiPackage.DOCUMENT_ROOT__LABELED_SHAPE:
	case DiPackage.DOCUMENT_ROOT__NODE:
	case DiPackage.DOCUMENT_ROOT__PLANE:
	case DiPackage.DOCUMENT_ROOT__SHAPE:
	case DiPackage.DOCUMENT_ROOT__STYLE:
		fireNotifyChanged(new ViewerNotification(notification,
				notification.getNotifier(), true, false));
		return;
	}
	super.notifyChanged(notification);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:29,代码来源:DocumentRootItemProvider.java

示例5: getCreateChildText

import org.eclipse.dd.di.DiPackage; //导入依赖的package包/类
/**
 * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public String getCreateChildText(Object owner, Object feature,
		Object child, Collection<?> selection) {
	Object childFeature = feature;
	Object childObject = child;

	boolean qualify = childFeature == DiPackage.Literals.DOCUMENT_ROOT__DIAGRAM_ELEMENT
			|| childFeature == DiPackage.Literals.DOCUMENT_ROOT__EDGE
			|| childFeature == DiPackage.Literals.DOCUMENT_ROOT__LABELED_EDGE
			|| childFeature == DiPackage.Literals.DOCUMENT_ROOT__LABEL
			|| childFeature == DiPackage.Literals.DOCUMENT_ROOT__NODE
			|| childFeature == DiPackage.Literals.DOCUMENT_ROOT__PLANE
			|| childFeature == DiPackage.Literals.DOCUMENT_ROOT__LABELED_SHAPE
			|| childFeature == DiPackage.Literals.DOCUMENT_ROOT__SHAPE;

	if (qualify) {
		return getString("_UI_CreateChild_text2", new Object[] {
				getTypeText(childObject), getFeatureText(childFeature),
				getTypeText(owner) });
	}
	return super.getCreateChildText(owner, feature, child, selection);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:29,代码来源:DocumentRootItemProvider.java

示例6: basicSetBounds

import org.eclipse.dd.di.DiPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetBounds(Bounds newBounds,
		NotificationChain msgs) {
	Bounds oldBounds = bounds;
	bounds = newBounds;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this,
				Notification.SET, DiPackage.LABEL__BOUNDS, oldBounds,
				newBounds);
		if (msgs == null)
			msgs = notification;
		else
			msgs.add(notification);
	}
	return msgs;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:21,代码来源:LabelImpl.java

示例7: setBounds

import org.eclipse.dd.di.DiPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setBounds(Bounds newBounds) {
	if (newBounds != bounds) {
		NotificationChain msgs = null;
		if (bounds != null)
			msgs = ((InternalEObject) bounds).eInverseRemove(this,
					EOPPOSITE_FEATURE_BASE - DiPackage.LABEL__BOUNDS, null,
					msgs);
		if (newBounds != null)
			msgs = ((InternalEObject) newBounds).eInverseAdd(this,
					EOPPOSITE_FEATURE_BASE - DiPackage.LABEL__BOUNDS, null,
					msgs);
		msgs = basicSetBounds(newBounds, msgs);
		if (msgs != null)
			msgs.dispatch();
	} else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET,
				DiPackage.LABEL__BOUNDS, newBounds, newBounds));
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:24,代码来源:LabelImpl.java

示例8: setBounds

import org.eclipse.dd.di.DiPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setBounds(Bounds newBounds) {
	if (newBounds != bounds) {
		NotificationChain msgs = null;
		if (bounds != null)
			msgs = ((InternalEObject) bounds).eInverseRemove(this,
					EOPPOSITE_FEATURE_BASE - DiPackage.SHAPE__BOUNDS, null,
					msgs);
		if (newBounds != null)
			msgs = ((InternalEObject) newBounds).eInverseAdd(this,
					EOPPOSITE_FEATURE_BASE - DiPackage.SHAPE__BOUNDS, null,
					msgs);
		msgs = basicSetBounds(newBounds, msgs);
		if (msgs != null)
			msgs.dispatch();
	} else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET,
				DiPackage.SHAPE__BOUNDS, newBounds, newBounds));
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:24,代码来源:ShapeImpl.java

示例9: basicSetOwningDiagram

import org.eclipse.dd.di.DiPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetOwningDiagram(Diagram newOwningDiagram,
		NotificationChain msgs) {
	Diagram oldOwningDiagram = owningDiagram;
	owningDiagram = newOwningDiagram;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this,
				Notification.SET,
				DiPackage.DIAGRAM_ELEMENT__OWNING_DIAGRAM,
				oldOwningDiagram, newOwningDiagram);
		if (msgs == null)
			msgs = notification;
		else
			msgs.add(notification);
	}
	return msgs;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:22,代码来源:DiagramElementImpl.java

示例10: basicSetOwningElement

import org.eclipse.dd.di.DiPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetOwningElement(
		DiagramElement newOwningElement, NotificationChain msgs) {
	DiagramElement oldOwningElement = owningElement;
	owningElement = newOwningElement;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this,
				Notification.SET,
				DiPackage.DIAGRAM_ELEMENT__OWNING_ELEMENT,
				oldOwningElement, newOwningElement);
		if (msgs == null)
			msgs = notification;
		else
			msgs.add(notification);
	}
	return msgs;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:22,代码来源:DiagramElementImpl.java

示例11: eIsSet

import org.eclipse.dd.di.DiPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public boolean eIsSet(int featureID) {
	switch (featureID) {
	case DiPackage.DIAGRAM_ELEMENT__OWNING_DIAGRAM:
		return owningDiagram != null;
	case DiPackage.DIAGRAM_ELEMENT__OWNING_ELEMENT:
		return owningElement != null;
	case DiPackage.DIAGRAM_ELEMENT__OWNED_ELEMENT:
		return ownedElement != null && !ownedElement.isEmpty();
	case DiPackage.DIAGRAM_ELEMENT__MODEL_ELEMENT:
		return modelElement != null;
	case DiPackage.DIAGRAM_ELEMENT__STYLE:
		return style != null;
	case DiPackage.DIAGRAM_ELEMENT__ID:
		return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
	}
	return super.eIsSet(featureID);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:24,代码来源:DiagramElementImpl.java

示例12: eGet

import org.eclipse.dd.di.DiPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
	switch (featureID) {
	case DiPackage.EDGE__SOURCE:
		if (resolve)
			return getSource();
		return basicGetSource();
	case DiPackage.EDGE__TARGET:
		if (resolve)
			return getTarget();
		return basicGetTarget();
	case DiPackage.EDGE__WAYPOINT:
		return getWaypoint();
	}
	return super.eGet(featureID, resolve, coreType);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:22,代码来源:EdgeImpl.java

示例13: basicSetRootElement

import org.eclipse.dd.di.DiPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetRootElement(DiagramElement newRootElement,
		NotificationChain msgs) {
	DiagramElement oldRootElement = rootElement;
	rootElement = newRootElement;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this,
				Notification.SET, DiPackage.DIAGRAM__ROOT_ELEMENT,
				oldRootElement, newRootElement);
		if (msgs == null)
			msgs = notification;
		else
			msgs.add(notification);
	}
	return msgs;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:21,代码来源:DiagramImpl.java

示例14: addOwnedLabelPropertyDescriptor

import org.eclipse.dd.di.DiPackage; //导入依赖的package包/类
/**
 * This adds a property descriptor for the Owned Label feature.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void addOwnedLabelPropertyDescriptor(Object object) {
	itemPropertyDescriptors.add(createItemPropertyDescriptor(
			((ComposeableAdapterFactory) adapterFactory)
					.getRootAdapterFactory(),
			getResourceLocator(),
			getString("_UI_LabeledEdge_ownedLabel_feature"),
			getString("_UI_PropertyDescriptor_description",
					"_UI_LabeledEdge_ownedLabel_feature",
					"_UI_LabeledEdge_type"),
			DiPackage.Literals.LABELED_EDGE__OWNED_LABEL, false, false,
			false, null, null, null));
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:19,代码来源:LabeledEdgeItemProvider.java

示例15: addSourcePropertyDescriptor

import org.eclipse.dd.di.DiPackage; //导入依赖的package包/类
/**
 * This adds a property descriptor for the Source feature.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void addSourcePropertyDescriptor(Object object) {
	itemPropertyDescriptors.add(createItemPropertyDescriptor(
			((ComposeableAdapterFactory) adapterFactory)
					.getRootAdapterFactory(),
			getResourceLocator(),
			getString("_UI_Edge_source_feature"),
			getString("_UI_PropertyDescriptor_description",
					"_UI_Edge_source_feature", "_UI_Edge_type"),
			DiPackage.Literals.EDGE__SOURCE, true, false, false, null,
			null, null));
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:18,代码来源:EdgeItemProvider.java


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