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


Java Notification.getNewValue方法代码示例

本文整理汇总了Java中org.eclipse.emf.common.notify.Notification.getNewValue方法的典型用法代码示例。如果您正苦于以下问题:Java Notification.getNewValue方法的具体用法?Java Notification.getNewValue怎么用?Java Notification.getNewValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.emf.common.notify.Notification的用法示例。


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

示例1: updatePart

import org.eclipse.emf.common.notify.Notification; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 * @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification)
 */
public void updatePart(Notification msg) {
	super.updatePart(msg);
	if (editingPart.isVisible()) {
		GeneralPropertiesEditionPart generalPart = (GeneralPropertiesEditionPart)editingPart;
		if (GqamPackage.eINSTANCE.getEndToEndFlow_IsSchedulable().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(GqamViewsRepository.General.Properties.isSchedulable))
			generalPart.setIsSchedulable((Boolean)msg.getNewValue());
		
		if (GqamPackage.eINSTANCE.getEndToEndFlow_SchedulabilitySlack().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(GqamViewsRepository.General.Properties.schedulabilitySlack)) {
			if (msg.getNewValue() != null) {
				generalPart.setSchedulabilitySlack(EcoreUtil.convertToString(EcorePackage.Literals.EDOUBLE, msg.getNewValue()));
			} else {
				generalPart.setSchedulabilitySlack("");
			}
		}
		if (GqamPackage.eINSTANCE.getEndToEndFlow_EndToEndScenario().equals(msg.getFeature()) && generalPart != null && isAccessible(GqamViewsRepository.General.Properties.endToEndScenario))
			generalPart.setEndToEndScenario((EObject)msg.getNewValue());
		if (GqamPackage.eINSTANCE.getEndToEndFlow_EndToEndStimuli().equals(msg.getFeature())  && isAccessible(GqamViewsRepository.General.Properties.endToEndStimuli))
			generalPart.updateEndToEndStimuli();
		
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:26,代码来源:EndToEndFlowGeneralPropertiesEditionComponent.java

示例2: updatePart

import org.eclipse.emf.common.notify.Notification; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 * @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification)
 */
public void updatePart(Notification msg) {
	super.updatePart(msg);
	if (editingPart.isVisible()) {
		RequiredSchedulingParameterPropertiesEditionPart basePart = (RequiredSchedulingParameterPropertiesEditionPart)editingPart;
		if (AnalysisPackage.eINSTANCE.getNamedElement_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && basePart != null && isAccessible(AnalysisViewsRepository.RequiredSchedulingParameter.Properties.name)) {
			if (msg.getNewValue() != null) {
				basePart.setName(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue()));
			} else {
				basePart.setName("");
			}
		}
		if (AnalysisPackage.eINSTANCE.getRequiredSchedulingParameter_Parent().equals(msg.getFeature()) && basePart != null && isAccessible(AnalysisViewsRepository.RequiredSchedulingParameter.Properties.parent_))
			basePart.setParent_((EObject)msg.getNewValue());
		
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:21,代码来源:RequiredSchedulingParameterPropertiesEditionComponent.java

示例3: updatePart

import org.eclipse.emf.common.notify.Notification; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 * @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification)
 */
public void updatePart(Notification msg) {
	super.updatePart(msg);
	if (editingPart.isVisible()) {
		GeneralPropertiesEditionPart generalPart = (GeneralPropertiesEditionPart)editingPart;
		if (GrmPackage.eINSTANCE.getNamedElement_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(SrmViewsRepository.General.Properties.name)) {
			if (msg.getNewValue() != null) {
				generalPart.setName(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue()));
			} else {
				generalPart.setName("");
			}
		}
		if (GrmPackage.eINSTANCE.getResourcePackage_OwnedElement().equals(msg.getFeature()) && isAccessible(SrmViewsRepository.General.Properties.ownedElement))
			generalPart.updateOwnedElement();
		
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:21,代码来源:SoftwareResourcePackagePropertiesEditionComponent.java

示例4: updatePart

import org.eclipse.emf.common.notify.Notification; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 * @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification)
 */
public void updatePart(Notification msg) {
	super.updatePart(msg);
	if (editingPart.isVisible()) {
		GeneralPropertiesEditionPart generalPart = (GeneralPropertiesEditionPart)editingPart;
		if (GrmPackage.eINSTANCE.getNamedElement_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.name)) {
			if (msg.getNewValue() != null) {
				generalPart.setName(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue()));
			} else {
				generalPart.setName("");
			}
		}
		if (GrmPackage.eINSTANCE.getResourcePackage_OwnedElement().equals(msg.getFeature()) && isAccessible(HrmViewsRepository.General.Properties.ownedElement))
			generalPart.updateOwnedElement();
		
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:21,代码来源:HardwareInterfacePackagePropertiesEditionComponent.java

示例5: updatePart

import org.eclipse.emf.common.notify.Notification; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 * @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification)
 */
public void updatePart(Notification msg) {
	super.updatePart(msg);
	if (editingPart.isVisible()) {
		GeneralPropertiesEditionPart generalPart = (GeneralPropertiesEditionPart)editingPart;
		if (GrmPackage.eINSTANCE.getNamedElement_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(GrmViewsRepository.General.Properties.name)) {
			if (msg.getNewValue() != null) {
				generalPart.setName(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue()));
			} else {
				generalPart.setName("");
			}
		}
		if (GrmPackage.eINSTANCE.getResourceInstance_Type().equals(msg.getFeature()) && generalPart != null && isAccessible(GrmViewsRepository.General.Properties.type))
			generalPart.setType((EObject)msg.getNewValue());
		
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:21,代码来源:ResourceInstancePropertiesEditionComponent.java

示例6: updatePart

import org.eclipse.emf.common.notify.Notification; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 * @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification)
 */
public void updatePart(Notification msg) {
	super.updatePart(msg);
	if (editingPart.isVisible()) {
		GeneralPropertiesEditionPart generalPart = (GeneralPropertiesEditionPart)editingPart;
		if (GrmPackage.eINSTANCE.getNamedElement_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.name)) {
			if (msg.getNewValue() != null) {
				generalPart.setName(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue()));
			} else {
				generalPart.setName("");
			}
		}
		if (GrmPackage.eINSTANCE.getResource_OwnedResource().equals(msg.getFeature()) && isAccessible(HrmViewsRepository.General.Properties.ownedResource))
			generalPart.updateOwnedResource();
		if (GrmPackage.eINSTANCE.getResource_ResMult().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.resMult)) {
			if (msg.getNewValue() != null) {
				generalPart.setResMult(EcoreUtil.convertToString(EcorePackage.Literals.EINT, msg.getNewValue()));
			} else {
				generalPart.setResMult("");
			}
		}
		if (GrmPackage.eINSTANCE.getResource_IsProtected().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.isProtected))
			generalPart.setIsProtected((Boolean)msg.getNewValue());
		
		if (GrmPackage.eINSTANCE.getResource_IsActive().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.isActive))
			generalPart.setIsActive((Boolean)msg.getNewValue());
		
		if (GrmPackage.eINSTANCE.getResource_OwnedConnector().equals(msg.getFeature()) && isAccessible(HrmViewsRepository.General.Properties.ownedConnector))
			generalPart.updateOwnedConnector();
		if (GrmPackage.eINSTANCE.getResource_UsedBy().equals(msg.getFeature())  && isAccessible(HrmViewsRepository.General.Properties.usedBy))
			generalPart.updateUsedBy();
		
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:38,代码来源:FirmwareArchitectureGeneralPropertiesEditionComponent.java

示例7: updatePart

import org.eclipse.emf.common.notify.Notification; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 * @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification)
 */
public void updatePart(Notification msg) {
	super.updatePart(msg);
	if (editingPart.isVisible()) {
		GeneralPropertiesEditionPart generalPart = (GeneralPropertiesEditionPart)editingPart;
		if (GrmPackage.eINSTANCE.getNamedElement_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.name)) {
			if (msg.getNewValue() != null) {
				generalPart.setName(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue()));
			} else {
				generalPart.setName("");
			}
		}
		if (GrmPackage.eINSTANCE.getResource_OwnedResource().equals(msg.getFeature()) && isAccessible(HrmViewsRepository.General.Properties.ownedResource))
			generalPart.updateOwnedResource();
		if (GrmPackage.eINSTANCE.getResource_ResMult().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.resMult)) {
			if (msg.getNewValue() != null) {
				generalPart.setResMult(EcoreUtil.convertToString(EcorePackage.Literals.EINT, msg.getNewValue()));
			} else {
				generalPart.setResMult("");
			}
		}
		if (GrmPackage.eINSTANCE.getResource_IsProtected().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.isProtected))
			generalPart.setIsProtected((Boolean)msg.getNewValue());
		
		if (GrmPackage.eINSTANCE.getResource_IsActive().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.isActive))
			generalPart.setIsActive((Boolean)msg.getNewValue());
		
		if (GrmPackage.eINSTANCE.getResource_OwnedConnector().equals(msg.getFeature()) && isAccessible(HrmViewsRepository.General.Properties.ownedConnector))
			generalPart.updateOwnedConnector();
		if (GrmPackage.eINSTANCE.getResource_UsedBy().equals(msg.getFeature())  && isAccessible(HrmViewsRepository.General.Properties.usedBy))
			generalPart.updateUsedBy();
		if (HrmPackage.eINSTANCE.getHardwareChannel_RealizedBy().equals(msg.getFeature())  && isAccessible(HrmViewsRepository.General.Properties.realizedBy))
			generalPart.updateRealizedBy();
		if (GrmPackage.eINSTANCE.getResourceBroker_BrokedResource().equals(msg.getFeature())  && isAccessible(HrmViewsRepository.General.Properties.brokedResource))
			generalPart.updateBrokedResource();
		if (HrmPackage.eINSTANCE.getHardwareArbiter_ControlledMedia().equals(msg.getFeature())  && isAccessible(HrmViewsRepository.General.Properties.controlledMedia))
			generalPart.updateControlledMedia();
		
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:44,代码来源:HardwareArbiterGeneralPropertiesEditionComponent.java

示例8: updatePart

import org.eclipse.emf.common.notify.Notification; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 * @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification)
 */
public void updatePart(Notification msg) {
	super.updatePart(msg);
	if (editingPart.isVisible()) {
		GeneralPropertiesEditionPart generalPart = (GeneralPropertiesEditionPart)editingPart;
		if (GrmPackage.eINSTANCE.getNamedElement_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(GrmViewsRepository.General.Properties.name)) {
			if (msg.getNewValue() != null) {
				generalPart.setName(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue()));
			} else {
				generalPart.setName("");
			}
		}
		if (GrmPackage.eINSTANCE.getResource_OwnedResource().equals(msg.getFeature()) && isAccessible(GrmViewsRepository.General.Properties.ownedResource))
			generalPart.updateOwnedResource();
		if (GrmPackage.eINSTANCE.getResource_ResMult().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(GrmViewsRepository.General.Properties.resMult)) {
			if (msg.getNewValue() != null) {
				generalPart.setResMult(EcoreUtil.convertToString(EcorePackage.Literals.EINT, msg.getNewValue()));
			} else {
				generalPart.setResMult("");
			}
		}
		if (GrmPackage.eINSTANCE.getResource_IsProtected().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(GrmViewsRepository.General.Properties.isPeriodic))
			generalPart.setIsPeriodic((Boolean)msg.getNewValue());
		
		if (GrmPackage.eINSTANCE.getResource_IsActive().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(GrmViewsRepository.General.Properties.isActive))
			generalPart.setIsActive((Boolean)msg.getNewValue());
		
		if (GrmPackage.eINSTANCE.getResource_OwnedPort().equals(msg.getFeature()) && isAccessible(GrmViewsRepository.General.Properties.ownedPort))
			generalPart.updateOwnedPort();
		if (GrmPackage.eINSTANCE.getResource_OwnedConnector().equals(msg.getFeature()) && isAccessible(GrmViewsRepository.General.Properties.ownedConnector))
			generalPart.updateOwnedConnector();
		if (GrmPackage.eINSTANCE.getResource_UsedBy().equals(msg.getFeature())  && isAccessible(GrmViewsRepository.General.Properties.usedBy))
			generalPart.updateUsedBy();
		if (GrmPackage.eINSTANCE.getMutualExclusionResource_Scheduler().equals(msg.getFeature()) && generalPart != null && isAccessible(GrmViewsRepository.General.Properties.scheduler))
			generalPart.setScheduler((EObject)msg.getNewValue());
		if (GrmPackage.eINSTANCE.getMutualExclusionResource_ProtectParams().equals(msg.getFeature()) && isAccessible(GrmViewsRepository.General.Properties.protectParams))
			generalPart.updateProtectParams();
		
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:44,代码来源:MutualExclusionResourceGeneralPropertiesEditionComponent.java

示例9: updatePart

import org.eclipse.emf.common.notify.Notification; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 * @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification)
 */
public void updatePart(Notification msg) {
	super.updatePart(msg);
	if (editingPart.isVisible()) {
		TimingPropertiesEditionPart timingPart = (TimingPropertiesEditionPart)editingPart;
		if (GqamPackage.eINSTANCE.getBehaviorScenario_RespTime().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && timingPart != null && isAccessible(GqamViewsRepository.Timing.TimingProperties.respTime)) {
			if (msg.getNewValue() != null) {
				timingPart.setRespTime(EcoreUtil.convertToString(GqamPackage.Literals.NFP_DURATION, msg.getNewValue()));
			} else {
				timingPart.setRespTime("");
			}
		}
		if (GqamPackage.eINSTANCE.getBehaviorScenario_BestCET().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && timingPart != null && isAccessible(GqamViewsRepository.Timing.TimingProperties.bestCET)) {
			if (msg.getNewValue() != null) {
				timingPart.setBestCET(EcoreUtil.convertToString(GqamPackage.Literals.NFP_DURATION, msg.getNewValue()));
			} else {
				timingPart.setBestCET("");
			}
		}
		if (GqamPackage.eINSTANCE.getBehaviorScenario_WorstCET().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && timingPart != null && isAccessible(GqamViewsRepository.Timing.TimingProperties.worstCET)) {
			if (msg.getNewValue() != null) {
				timingPart.setWorstCET(EcoreUtil.convertToString(GqamPackage.Literals.NFP_DURATION, msg.getNewValue()));
			} else {
				timingPart.setWorstCET("");
			}
		}
		if (GqamPackage.eINSTANCE.getStep_BlockingTime().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && timingPart != null && isAccessible(GqamViewsRepository.Timing.TimingProperties.blockingTime)) {
			if (msg.getNewValue() != null) {
				timingPart.setBlockingTime(EcoreUtil.convertToString(GqamPackage.Literals.NFP_DURATION, msg.getNewValue()));
			} else {
				timingPart.setBlockingTime("");
			}
		}
		
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:40,代码来源:CommunicationStepTimingPropertiesEditionComponent.java

示例10: updatePart

import org.eclipse.emf.common.notify.Notification; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 * @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification)
 */
public void updatePart(Notification msg) {
	super.updatePart(msg);
	if (editingPart.isVisible()) {
		EventModelPropertiesEditionPart basePart = (EventModelPropertiesEditionPart)editingPart;
		if (AnalysisPackage.eINSTANCE.getEventModel_Offsets().equals(msg.getFeature()) && isAccessible(AnalysisViewsRepository.EventModel.Properties.offsets))
			basePart.updateOffsets();
		if (AnalysisPackage.eINSTANCE.getEventModel_Period().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && basePart != null && isAccessible(AnalysisViewsRepository.EventModel.Properties.period)) {
			if (msg.getNewValue() != null) {
				basePart.setPeriod(EcoreUtil.convertToString(AnalysisPackage.Literals.NFP_DURATION, msg.getNewValue()));
			} else {
				basePart.setPeriod("");
			}
		}
		if (AnalysisPackage.eINSTANCE.getEventModel_Jitter().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && basePart != null && isAccessible(AnalysisViewsRepository.EventModel.Properties.jitter)) {
			if (msg.getNewValue() != null) {
				basePart.setJitter(EcoreUtil.convertToString(AnalysisPackage.Literals.NFP_DURATION, msg.getNewValue()));
			} else {
				basePart.setJitter("");
			}
		}
		if (AnalysisPackage.eINSTANCE.getEventModel_Dmin().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && basePart != null && isAccessible(AnalysisViewsRepository.EventModel.Properties.dmin)) {
			if (msg.getNewValue() != null) {
				basePart.setDmin(EcoreUtil.convertToString(AnalysisPackage.Literals.NFP_DURATION, msg.getNewValue()));
			} else {
				basePart.setDmin("");
			}
		}
		if (AnalysisPackage.eINSTANCE.getEventModel_Parent().equals(msg.getFeature()) && basePart != null && isAccessible(AnalysisViewsRepository.EventModel.Properties.parent_))
			basePart.setParent_((EObject)msg.getNewValue());
		if (AnalysisPackage.eINSTANCE.getEventModel_IsSporadic().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && basePart != null && isAccessible(AnalysisViewsRepository.EventModel.Properties.isSporadic))
			basePart.setIsSporadic((Boolean)msg.getNewValue());
		
		
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:40,代码来源:EventModelPropertiesEditionComponent.java

示例11: updatePart

import org.eclipse.emf.common.notify.Notification; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 * @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification)
 */
public void updatePart(Notification msg) {
	super.updatePart(msg);
	if (editingPart.isVisible()) {
		ConveyorBeltPropertiesEditionPart basePart = (ConveyorBeltPropertiesEditionPart)editingPart;
		if (MetamodelPackage.eINSTANCE.getComponent_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && basePart != null && isAccessible(MetamodelViewsRepository.ConveyorBelt.Properties.name)) {
			if (msg.getNewValue() != null) {
				basePart.setName(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue()));
			} else {
				basePart.setName("");
			}
		}
		if (MetamodelPackage.eINSTANCE.getProcess_Duration().equals(msg.getFeature()) && basePart != null && isAccessible(MetamodelViewsRepository.ConveyorBelt.Properties.duration))
			basePart.setDuration((EObject)msg.getNewValue());
		if (MetamodelPackage.eINSTANCE.getProcess_StorageOutputFlow().equals(msg.getFeature())  && isAccessible(MetamodelViewsRepository.ConveyorBelt.Properties.storageOutputFlow))
			basePart.updateStorageOutputFlow();
		if (MetamodelPackage.eINSTANCE.getConveyorBelt_MinimalSeparationBetweenBatches().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && basePart != null && isAccessible(MetamodelViewsRepository.ConveyorBelt.Properties.minimalSeparationBetweenBatches)) {
			if (msg.getNewValue() != null) {
				basePart.setMinimalSeparationBetweenBatches(EcoreUtil.convertToString(MetamodelPackage.Literals.POSITIVE_DOUBLE, msg.getNewValue()));
			} else {
				basePart.setMinimalSeparationBetweenBatches("");
			}
		}
		if (MetamodelPackage.eINSTANCE.getConveyorBelt_Output().equals(msg.getFeature()) && basePart != null && isAccessible(MetamodelViewsRepository.ConveyorBelt.Properties.output))
			basePart.setOutput((EObject)msg.getNewValue());
		
	}
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:32,代码来源:ConveyorBeltPropertiesEditionComponent.java

示例12: updatePart

import org.eclipse.emf.common.notify.Notification; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 * @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification)
 */
public void updatePart(Notification msg) {
	super.updatePart(msg);
	if (editingPart.isVisible()) {
		OtherPropertiesEditionPart otherPart = (OtherPropertiesEditionPart)editingPart;
		if (GrmPackage.eINSTANCE.getCommunicationEndPoint_PacketSize().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && otherPart != null && isAccessible(SrmViewsRepository.Other.Properties.packetSize)) {
			if (msg.getNewValue() != null) {
				otherPart.setPacketSize(EcoreUtil.convertToString(EcorePackage.Literals.EINT, msg.getNewValue()));
			} else {
				otherPart.setPacketSize("");
			}
		}
		if (GrmPackage.eINSTANCE.getResource_PServices().equals(msg.getFeature()) && isAccessible(SrmViewsRepository.Other.Properties.pServices))
			otherPart.updatePServices();
		if (GrmPackage.eINSTANCE.getResource_RServices().equals(msg.getFeature())  && isAccessible(SrmViewsRepository.Other.Properties.rServices))
			otherPart.updateRServices();
		if (SrmPackage.eINSTANCE.getSoftwareResource_CreateServices().equals(msg.getFeature())  && isAccessible(SrmViewsRepository.Other.Properties.createServices))
			otherPart.updateCreateServices();
		if (SrmPackage.eINSTANCE.getSoftwareResource_DeleteServices().equals(msg.getFeature())  && isAccessible(SrmViewsRepository.Other.Properties.deleteServices))
			otherPart.updateDeleteServices();
		if (SrmPackage.eINSTANCE.getSoftwareResource_InitializeServices().equals(msg.getFeature())  && isAccessible(SrmViewsRepository.Other.Properties.initializeServices))
			otherPart.updateInitializeServices();
		if (SrmPackage.eINSTANCE.getSoftwareInteractionResource_IsIntraMemoryPartitionInteraction().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && otherPart != null && isAccessible(SrmViewsRepository.Other.Properties.isIntraMemoryPartitionInteraction))
			otherPart.setIsIntraMemoryPartitionInteraction((Boolean)msg.getNewValue());
		
		if (SrmPackage.eINSTANCE.getSoftwareMutualExclusionResource_AcquireServices().equals(msg.getFeature())  && isAccessible(SrmViewsRepository.Other.Properties.acquireServices))
			otherPart.updateAcquireServices();
		if (SrmPackage.eINSTANCE.getSoftwareMutualExclusionResource_ReleaseServices().equals(msg.getFeature())  && isAccessible(SrmViewsRepository.Other.Properties.releaseServices))
			otherPart.updateReleaseServices();
		
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:36,代码来源:SoftwareMutualExclusionResourceOtherPropertiesEditionComponent.java

示例13: updatePart

import org.eclipse.emf.common.notify.Notification; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 * @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification)
 */
public void updatePart(Notification msg) {
	super.updatePart(msg);
	if (editingPart.isVisible()) {
		GeneralPropertiesEditionPart generalPart = (GeneralPropertiesEditionPart)editingPart;
		if (GrmPackage.eINSTANCE.getNamedElement_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.name)) {
			if (msg.getNewValue() != null) {
				generalPart.setName(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue()));
			} else {
				generalPart.setName("");
			}
		}
		if (GrmPackage.eINSTANCE.getResource_OwnedResource().equals(msg.getFeature()) && isAccessible(HrmViewsRepository.General.Properties.ownedResource))
			generalPart.updateOwnedResource();
		if (GrmPackage.eINSTANCE.getResource_ResMult().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.resMult)) {
			if (msg.getNewValue() != null) {
				generalPart.setResMult(EcoreUtil.convertToString(EcorePackage.Literals.EINT, msg.getNewValue()));
			} else {
				generalPart.setResMult("");
			}
		}
		if (GrmPackage.eINSTANCE.getResource_IsProtected().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.isProtected))
			generalPart.setIsProtected((Boolean)msg.getNewValue());
		
		if (GrmPackage.eINSTANCE.getResource_IsActive().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.isActive))
			generalPart.setIsActive((Boolean)msg.getNewValue());
		
		if (GrmPackage.eINSTANCE.getResource_OwnedConnector().equals(msg.getFeature()) && isAccessible(HrmViewsRepository.General.Properties.ownedConnector))
			generalPart.updateOwnedConnector();
		if (GrmPackage.eINSTANCE.getResource_UsedBy().equals(msg.getFeature())  && isAccessible(HrmViewsRepository.General.Properties.usedBy))
			generalPart.updateUsedBy();
		if (HrmPackage.eINSTANCE.getHardwareMemory_MemorySize().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.memorySize)) {
			if (msg.getNewValue() != null) {
				generalPart.setMemorySize(EcoreUtil.convertToString(EcorePackage.Literals.EINT, msg.getNewValue()));
			} else {
				generalPart.setMemorySize("");
			}
		}
		if (HrmPackage.eINSTANCE.getHardwareMemory_AddressSize().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.addressSize)) {
			if (msg.getNewValue() != null) {
				generalPart.setAddressSize(EcoreUtil.convertToString(EcorePackage.Literals.EINT, msg.getNewValue()));
			} else {
				generalPart.setAddressSize("");
			}
		}
		if (HrmPackage.eINSTANCE.getHardwareMemory_Throughput().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.throughput)) {
			if (msg.getNewValue() != null) {
				generalPart.setThroughput(EcoreUtil.convertToString(EcorePackage.Literals.EINT, msg.getNewValue()));
			} else {
				generalPart.setThroughput("");
			}
		}
		if (HrmPackage.eINSTANCE.getHardwareRam_IsSynchronous().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.isSynchronous))
			generalPart.setIsSynchronous((Boolean)msg.getNewValue());
		
		if (HrmPackage.eINSTANCE.getHardwareRam_IsStatic().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.isStatic))
			generalPart.setIsStatic((Boolean)msg.getNewValue());
		
		if (HrmPackage.eINSTANCE.getHardwareRam_IsNonVolatile().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.isNonVolatile))
			generalPart.setIsNonVolatile((Boolean)msg.getNewValue());
		
		
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:68,代码来源:HardwareRamGeneralPropertiesEditionComponent.java

示例14: updatePart

import org.eclipse.emf.common.notify.Notification; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 * @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification)
 */
public void updatePart(Notification msg) {
	super.updatePart(msg);
	if (editingPart.isVisible()) {
		GeneralPropertiesEditionPart generalPart = (GeneralPropertiesEditionPart)editingPart;
		if (GrmPackage.eINSTANCE.getNamedElement_Name().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.name)) {
			if (msg.getNewValue() != null) {
				generalPart.setName(EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, msg.getNewValue()));
			} else {
				generalPart.setName("");
			}
		}
		if (GrmPackage.eINSTANCE.getResource_OwnedResource().equals(msg.getFeature()) && isAccessible(HrmViewsRepository.General.Properties.ownedResource))
			generalPart.updateOwnedResource();
		if (GrmPackage.eINSTANCE.getResource_ResMult().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.resMult)) {
			if (msg.getNewValue() != null) {
				generalPart.setResMult(EcoreUtil.convertToString(EcorePackage.Literals.EINT, msg.getNewValue()));
			} else {
				generalPart.setResMult("");
			}
		}
		if (GrmPackage.eINSTANCE.getResource_IsProtected().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.isProtected))
			generalPart.setIsProtected((Boolean)msg.getNewValue());
		
		if (GrmPackage.eINSTANCE.getResource_IsActive().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.isActive))
			generalPart.setIsActive((Boolean)msg.getNewValue());
		
		if (GrmPackage.eINSTANCE.getResource_OwnedConnector().equals(msg.getFeature()) && isAccessible(HrmViewsRepository.General.Properties.ownedConnector))
			generalPart.updateOwnedConnector();
		if (GrmPackage.eINSTANCE.getResource_UsedBy().equals(msg.getFeature())  && isAccessible(HrmViewsRepository.General.Properties.usedBy))
			generalPart.updateUsedBy();
		if (GrmPackage.eINSTANCE.getProcessingResource_SpeedFactor().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.speedFactor)) {
			if (msg.getNewValue() != null) {
				generalPart.setSpeedFactor(EcoreUtil.convertToString(EcorePackage.Literals.EFLOAT, msg.getNewValue()));
			} else {
				generalPart.setSpeedFactor("");
			}
		}
		if (GrmPackage.eINSTANCE.getProcessingResource_MainScheduler().equals(msg.getFeature()) && generalPart != null && isAccessible(HrmViewsRepository.General.Properties.mainScheduler))
			generalPart.setMainScheduler((EObject)msg.getNewValue());
		
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:47,代码来源:HardwareSupportGeneralPropertiesEditionComponent.java

示例15: updatePart

import org.eclipse.emf.common.notify.Notification; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 * @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updatePart(org.eclipse.emf.common.notify.Notification)
 */
public void updatePart(Notification msg) {
	super.updatePart(msg);
	if (editingPart.isVisible()) {
		OtherPropertiesEditionPart otherPart = (OtherPropertiesEditionPart)editingPart;
		if (GrmPackage.eINSTANCE.getCommunicationEndPoint_PacketSize().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && otherPart != null && isAccessible(SrmViewsRepository.Other.Properties.packetSize)) {
			if (msg.getNewValue() != null) {
				otherPart.setPacketSize(EcoreUtil.convertToString(EcorePackage.Literals.EINT, msg.getNewValue()));
			} else {
				otherPart.setPacketSize("");
			}
		}
		if (GrmPackage.eINSTANCE.getResource_PServices().equals(msg.getFeature()) && isAccessible(SrmViewsRepository.Other.Properties.pServices))
			otherPart.updatePServices();
		if (GrmPackage.eINSTANCE.getResource_RServices().equals(msg.getFeature())  && isAccessible(SrmViewsRepository.Other.Properties.rServices))
			otherPart.updateRServices();
		if (SrmPackage.eINSTANCE.getSoftwareResource_CreateServices().equals(msg.getFeature())  && isAccessible(SrmViewsRepository.Other.Properties.createServices))
			otherPart.updateCreateServices();
		if (SrmPackage.eINSTANCE.getSoftwareResource_DeleteServices().equals(msg.getFeature())  && isAccessible(SrmViewsRepository.Other.Properties.deleteServices))
			otherPart.updateDeleteServices();
		if (SrmPackage.eINSTANCE.getSoftwareResource_InitializeServices().equals(msg.getFeature())  && isAccessible(SrmViewsRepository.Other.Properties.initializeServices))
			otherPart.updateInitializeServices();
		if (SrmPackage.eINSTANCE.getSoftwareInteractionResource_IsIntraMemoryPartitionInteraction().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && otherPart != null && isAccessible(SrmViewsRepository.Other.Properties.isIntraMemoryPartitionInteraction))
			otherPart.setIsIntraMemoryPartitionInteraction((Boolean)msg.getNewValue());
		
		if (SrmPackage.eINSTANCE.getNotificationResource_FlushServices().equals(msg.getFeature())  && isAccessible(SrmViewsRepository.Other.Properties.flushServices))
			otherPart.updateFlushServices();
		if (SrmPackage.eINSTANCE.getNotificationResource_SignalServices().equals(msg.getFeature())  && isAccessible(SrmViewsRepository.Other.Properties.signalServices))
			otherPart.updateSignalServices();
		if (SrmPackage.eINSTANCE.getNotificationResource_WaitServices().equals(msg.getFeature())  && isAccessible(SrmViewsRepository.Other.Properties.waitServices))
			otherPart.updateWaitServices();
		if (SrmPackage.eINSTANCE.getNotificationResource_ClearServices().equals(msg.getFeature())  && isAccessible(SrmViewsRepository.Other.Properties.clearServices))
			otherPart.updateClearServices();
		if (SrmPackage.eINSTANCE.getNotificationResource_MaskElements().equals(msg.getFeature()) && msg.getNotifier().equals(semanticObject) && otherPart != null && isAccessible(SrmViewsRepository.Other.Properties.maskElements)) {
			if (msg.getNewValue() instanceof EList<?>) {
				otherPart.setMaskElements((EList<?>)msg.getNewValue());
			} else if (msg.getNewValue() == null) {
				otherPart.setMaskElements(new BasicEList<Object>());
			} else {
				BasicEList<Object> newValueAsList = new BasicEList<Object>();
				newValueAsList.add(msg.getNewValue());
				otherPart.setMaskElements(newValueAsList);
			}
		}
		
		
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:52,代码来源:NotificationResourceOtherPropertiesEditionComponent.java


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