本文整理匯總了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();
}
}
示例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();
}
}
示例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();
}
}
示例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());
}
}
示例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();
}
}
示例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("");
}
}
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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);
}
}
}
}