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


Java GexpressionsPackage类代码示例

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


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

示例1: sequence_GOrExpression

import org.eclipse.gemoc.gexpressions.GexpressionsPackage; //导入依赖的package包/类
/**
 * Contexts:
 *     GExpression returns GOrExpression
 *     GOrExpression returns GOrExpression
 *     GOrExpression.GOrExpression_1_0 returns GOrExpression
 *
 * Constraint:
 *     (leftOperand=GOrExpression_GOrExpression_1_0 operator=GOrOperator rightOperand=GXorExpression)
 */
protected void sequence_GOrExpression(ISerializationContext context, GOrExpression semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, GexpressionsPackage.Literals.GBINARY_OPERATOR_EXPRESSION__LEFT_OPERAND) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GexpressionsPackage.Literals.GBINARY_OPERATOR_EXPRESSION__LEFT_OPERAND));
		if (transientValues.isValueTransient(semanticObject, GexpressionsPackage.Literals.GOR_EXPRESSION__OPERATOR) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GexpressionsPackage.Literals.GOR_EXPRESSION__OPERATOR));
		if (transientValues.isValueTransient(semanticObject, GexpressionsPackage.Literals.GBINARY_OPERATOR_EXPRESSION__RIGHT_OPERAND) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GexpressionsPackage.Literals.GBINARY_OPERATOR_EXPRESSION__RIGHT_OPERAND));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getGOrExpressionAccess().getGOrExpressionLeftOperandAction_1_0(), semanticObject.getLeftOperand());
	feeder.accept(grammarAccess.getGOrExpressionAccess().getOperatorGOrOperatorEnumRuleCall_1_1_0(), semanticObject.getOperator());
	feeder.accept(grammarAccess.getGOrExpressionAccess().getRightOperandGXorExpressionParserRuleCall_1_2_0(), semanticObject.getRightOperand());
	feeder.finish();
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:25,代码来源:AbstractGExpressionsSemanticSequencer.java

示例2: getCreateChildText

import org.eclipse.gemoc.gexpressions.GexpressionsPackage; //导入依赖的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 == GexpressionsPackage.Literals.GBINARY_OPERATOR_EXPRESSION__LEFT_OPERAND ||
		childFeature == GexpressionsPackage.Literals.GBINARY_OPERATOR_EXPRESSION__RIGHT_OPERAND;

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

示例3: addValuePropertyDescriptor

import org.eclipse.gemoc.gexpressions.GexpressionsPackage; //导入依赖的package包/类
/**
 * This adds a property descriptor for the Value feature.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void addValuePropertyDescriptor(Object object) {
	itemPropertyDescriptors.add
		(createItemPropertyDescriptor
			(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
			 getResourceLocator(),
			 getString("_UI_GBooleanExpression_value_feature"),
			 getString("_UI_PropertyDescriptor_description", "_UI_GBooleanExpression_value_feature", "_UI_GBooleanExpression_type"),
			 GexpressionsPackage.Literals.GBOOLEAN_EXPRESSION__VALUE,
			 true,
			 false,
			 false,
			 ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
			 null,
			 null));
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:22,代码来源:GBooleanExpressionItemProvider.java

示例4: sequence_GEqualityExpression

import org.eclipse.gemoc.gexpressions.GexpressionsPackage; //导入依赖的package包/类
/**
 * Contexts:
 *     GExpression returns GEqualityExpression
 *     GOrExpression returns GEqualityExpression
 *     GOrExpression.GOrExpression_1_0 returns GEqualityExpression
 *     GXorExpression returns GEqualityExpression
 *     GXorExpression.GXorExpression_1_0 returns GEqualityExpression
 *     GAndExpression returns GEqualityExpression
 *     GAndExpression.GAndExpression_1_0 returns GEqualityExpression
 *     GEqualityExpression returns GEqualityExpression
 *     GEqualityExpression.GEqualityExpression_1_0 returns GEqualityExpression
 *
 * Constraint:
 *     (leftOperand=GEqualityExpression_GEqualityExpression_1_0 operator=GEqualityOperator rightOperand=GRelationExpression)
 */
protected void sequence_GEqualityExpression(ISerializationContext context, GEqualityExpression semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, GexpressionsPackage.Literals.GBINARY_OPERATOR_EXPRESSION__LEFT_OPERAND) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GexpressionsPackage.Literals.GBINARY_OPERATOR_EXPRESSION__LEFT_OPERAND));
		if (transientValues.isValueTransient(semanticObject, GexpressionsPackage.Literals.GEQUALITY_EXPRESSION__OPERATOR) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GexpressionsPackage.Literals.GEQUALITY_EXPRESSION__OPERATOR));
		if (transientValues.isValueTransient(semanticObject, GexpressionsPackage.Literals.GBINARY_OPERATOR_EXPRESSION__RIGHT_OPERAND) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GexpressionsPackage.Literals.GBINARY_OPERATOR_EXPRESSION__RIGHT_OPERAND));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getGEqualityExpressionAccess().getGEqualityExpressionLeftOperandAction_1_0(), semanticObject.getLeftOperand());
	feeder.accept(grammarAccess.getGEqualityExpressionAccess().getOperatorGEqualityOperatorEnumRuleCall_1_1_0(), semanticObject.getOperator());
	feeder.accept(grammarAccess.getGEqualityExpressionAccess().getRightOperandGRelationExpressionParserRuleCall_1_2_0(), semanticObject.getRightOperand());
	feeder.finish();
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:31,代码来源:AbstractGExpressionsSemanticSequencer.java

示例5: addOperatorPropertyDescriptor

import org.eclipse.gemoc.gexpressions.GexpressionsPackage; //导入依赖的package包/类
/**
 * This adds a property descriptor for the Operator feature.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void addOperatorPropertyDescriptor(Object object) {
	itemPropertyDescriptors.add
		(createItemPropertyDescriptor
			(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
			 getResourceLocator(),
			 getString("_UI_GXorExpression_operator_feature"),
			 getString("_UI_PropertyDescriptor_description", "_UI_GXorExpression_operator_feature", "_UI_GXorExpression_type"),
			 GexpressionsPackage.Literals.GXOR_EXPRESSION__OPERATOR,
			 true,
			 false,
			 false,
			 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
			 null,
			 null));
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:22,代码来源:GXorExpressionItemProvider.java

示例6: addReferencedEObjectPropertyDescriptor

import org.eclipse.gemoc.gexpressions.GexpressionsPackage; //导入依赖的package包/类
/**
 * This adds a property descriptor for the Referenced EObject feature.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void addReferencedEObjectPropertyDescriptor(Object object) {
	itemPropertyDescriptors.add
		(createItemPropertyDescriptor
			(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
			 getResourceLocator(),
			 getString("_UI_GReferenceExpression_referencedEObject_feature"),
			 getString("_UI_PropertyDescriptor_description", "_UI_GReferenceExpression_referencedEObject_feature", "_UI_GReferenceExpression_type"),
			 GexpressionsPackage.Literals.GREFERENCE_EXPRESSION__REFERENCED_EOBJECT,
			 true,
			 false,
			 true,
			 null,
			 null,
			 null));
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:22,代码来源:GReferenceExpressionItemProvider.java

示例7: addOperatorPropertyDescriptor

import org.eclipse.gemoc.gexpressions.GexpressionsPackage; //导入依赖的package包/类
/**
 * This adds a property descriptor for the Operator feature.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void addOperatorPropertyDescriptor(Object object) {
	itemPropertyDescriptors.add
		(createItemPropertyDescriptor
			(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
			 getResourceLocator(),
			 getString("_UI_GRelationExpression_operator_feature"),
			 getString("_UI_PropertyDescriptor_description", "_UI_GRelationExpression_operator_feature", "_UI_GRelationExpression_type"),
			 GexpressionsPackage.Literals.GRELATION_EXPRESSION__OPERATOR,
			 true,
			 false,
			 false,
			 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
			 null,
			 null));
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:22,代码来源:GRelationExpressionItemProvider.java

示例8: addOperatorPropertyDescriptor

import org.eclipse.gemoc.gexpressions.GexpressionsPackage; //导入依赖的package包/类
/**
 * This adds a property descriptor for the Operator feature.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void addOperatorPropertyDescriptor(Object object) {
	itemPropertyDescriptors.add
		(createItemPropertyDescriptor
			(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
			 getResourceLocator(),
			 getString("_UI_GAndExpression_operator_feature"),
			 getString("_UI_PropertyDescriptor_description", "_UI_GAndExpression_operator_feature", "_UI_GAndExpression_type"),
			 GexpressionsPackage.Literals.GAND_EXPRESSION__OPERATOR,
			 true,
			 false,
			 false,
			 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
			 null,
			 null));
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:22,代码来源:GAndExpressionItemProvider.java

示例9: addOperatorPropertyDescriptor

import org.eclipse.gemoc.gexpressions.GexpressionsPackage; //导入依赖的package包/类
/**
 * This adds a property descriptor for the Operator feature.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void addOperatorPropertyDescriptor(Object object) {
	itemPropertyDescriptors.add
		(createItemPropertyDescriptor
			(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
			 getResourceLocator(),
			 getString("_UI_GEqualityExpression_operator_feature"),
			 getString("_UI_PropertyDescriptor_description", "_UI_GEqualityExpression_operator_feature", "_UI_GEqualityExpression_type"),
			 GexpressionsPackage.Literals.GEQUALITY_EXPRESSION__OPERATOR,
			 true,
			 false,
			 false,
			 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
			 null,
			 null));
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:22,代码来源:GEqualityExpressionItemProvider.java

示例10: addImportURIPropertyDescriptor

import org.eclipse.gemoc.gexpressions.GexpressionsPackage; //导入依赖的package包/类
/**
 * This adds a property descriptor for the Import URI feature.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void addImportURIPropertyDescriptor(Object object) {
	itemPropertyDescriptors.add
		(createItemPropertyDescriptor
			(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
			 getResourceLocator(),
			 getString("_UI_GImportStatement_importURI_feature"),
			 getString("_UI_PropertyDescriptor_description", "_UI_GImportStatement_importURI_feature", "_UI_GImportStatement_type"),
			 GexpressionsPackage.Literals.GIMPORT_STATEMENT__IMPORT_URI,
			 true,
			 false,
			 false,
			 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
			 null,
			 null));
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:22,代码来源:GImportStatementItemProvider.java

示例11: addOperatorPropertyDescriptor

import org.eclipse.gemoc.gexpressions.GexpressionsPackage; //导入依赖的package包/类
/**
 * This adds a property descriptor for the Operator feature.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void addOperatorPropertyDescriptor(Object object) {
	itemPropertyDescriptors.add
		(createItemPropertyDescriptor
			(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
			 getResourceLocator(),
			 getString("_UI_GNegationExpression_operator_feature"),
			 getString("_UI_PropertyDescriptor_description", "_UI_GNegationExpression_operator_feature", "_UI_GNegationExpression_type"),
			 GexpressionsPackage.Literals.GNEGATION_EXPRESSION__OPERATOR,
			 true,
			 false,
			 false,
			 ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
			 null,
			 null));
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:22,代码来源:GNegationExpressionItemProvider.java

示例12: basicSetCondition

import org.eclipse.gemoc.gexpressions.GexpressionsPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetCondition(GExpression newCondition, NotificationChain msgs) {
	GExpression oldCondition = condition;
	condition = newCondition;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GexpressionsPackage.GIF_EXPRESSION__CONDITION, oldCondition, newCondition);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:15,代码来源:GIfExpressionImpl.java

示例13: notifyChanged

import org.eclipse.gemoc.gexpressions.GexpressionsPackage; //导入依赖的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(GOrExpression.class)) {
		case GexpressionsPackage.GOR_EXPRESSION__OPERATOR:
			fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
			return;
	}
	super.notifyChanged(notification);
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:19,代码来源:GOrExpressionItemProvider.java

示例14: eIsSet

import org.eclipse.gemoc.gexpressions.GexpressionsPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public boolean eIsSet(int featureID) {
	switch (featureID) {
		case GexpressionsPackage.GINTEGER_EXPRESSION__VALUE:
			return value != VALUE_EDEFAULT;
	}
	return super.eIsSet(featureID);
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:14,代码来源:GIntegerExpressionImpl.java

示例15: setThenExpression

import org.eclipse.gemoc.gexpressions.GexpressionsPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setThenExpression(GExpression newThenExpression) {
	if (newThenExpression != thenExpression) {
		NotificationChain msgs = null;
		if (thenExpression != null)
			msgs = ((InternalEObject)thenExpression).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GexpressionsPackage.GIF_EXPRESSION__THEN_EXPRESSION, null, msgs);
		if (newThenExpression != null)
			msgs = ((InternalEObject)newThenExpression).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GexpressionsPackage.GIF_EXPRESSION__THEN_EXPRESSION, null, msgs);
		msgs = basicSetThenExpression(newThenExpression, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, GexpressionsPackage.GIF_EXPRESSION__THEN_EXPRESSION, newThenExpression, newThenExpression));
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:19,代码来源:GIfExpressionImpl.java


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