本文整理汇总了Java中org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider类的典型用法代码示例。如果您正苦于以下问题:Java PropertiesEditingProvider类的具体用法?Java PropertiesEditingProvider怎么用?Java PropertiesEditingProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PropertiesEditingProvider类属于org.eclipse.emf.eef.runtime.providers包,在下文中一共展示了PropertiesEditingProvider类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateSemanticModel
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入依赖的package包/类
/**
* {@inheritDoc}
* @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updateSemanticModel(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent)
*
*/
public void updateSemanticModel(final IPropertiesEditionEvent event) {
HardwarePlatform hardwarePlatform = (HardwarePlatform)semanticObject;
if (HrmViewsRepository.Timing.TimingProperties.clock == event.getAffectedEditor()) {
if (event.getKind() == PropertiesEditionEvent.SET) {
clockSettings.setToReference((HardwareClock)event.getNewValue());
} else if (event.getKind() == PropertiesEditionEvent.ADD) {
HardwareClock eObject = HrmFactory.eINSTANCE.createHardwareClock();
EObjectPropertiesEditionContext context = new EObjectPropertiesEditionContext(editingContext, this, eObject, editingContext.getAdapterFactory());
PropertiesEditingProvider provider = (PropertiesEditingProvider)editingContext.getAdapterFactory().adapt(eObject, PropertiesEditingProvider.class);
if (provider != null) {
PropertiesEditingPolicy policy = provider.getPolicy(context);
if (policy != null) {
policy.execute();
}
}
clockSettings.setToReference(eObject);
}
}
}
示例2: updateSemanticModel
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入依赖的package包/类
/**
* {@inheritDoc}
* @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updateSemanticModel(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent)
* @generated
*/
public void updateSemanticModel(final IPropertiesEditionEvent event) {
Offset offset = (Offset)semanticObject;
if (AnalysisViewsRepository.Offset.Properties.eventModel == event.getAffectedEditor()) {
if (event.getKind() == PropertiesEditionEvent.SET) {
eventModelSettings.setToReference((EventModel)event.getNewValue());
} else if (event.getKind() == PropertiesEditionEvent.ADD) {
EventModel eObject = AnalysisFactory.eINSTANCE.createEventModel();
EObjectPropertiesEditionContext context = new EObjectPropertiesEditionContext(editingContext, this, eObject, editingContext.getAdapterFactory());
PropertiesEditingProvider provider = (PropertiesEditingProvider)editingContext.getAdapterFactory().adapt(eObject, PropertiesEditingProvider.class);
if (provider != null) {
PropertiesEditingPolicy policy = provider.getPolicy(context);
if (policy != null) {
policy.execute();
}
}
eventModelSettings.setToReference(eObject);
}
}
if (AnalysisViewsRepository.Offset.Properties.value == event.getAffectedEditor()) {
offset.setValue((org.polarsys.time4sys.marte.nfp.Duration)EEFConverterUtil.createFromString(AnalysisPackage.Literals.NFP_DURATION, (String)event.getNewValue()));
}
if (AnalysisViewsRepository.Offset.Properties.reference == event.getAffectedEditor()) {
offset.setReference((java.lang.String)EEFConverterUtil.createFromString(EcorePackage.Literals.ESTRING, (String)event.getNewValue()));
}
}
示例3: updateSemanticModel
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入依赖的package包/类
/**
* {@inheritDoc}
* @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updateSemanticModel(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent)
*
*/
public void updateSemanticModel(final IPropertiesEditionEvent event) {
HardwareDrive hardwareDrive = (HardwareDrive)semanticObject;
if (HrmViewsRepository.Timing.TimingProperties.clock == event.getAffectedEditor()) {
if (event.getKind() == PropertiesEditionEvent.SET) {
clockSettings.setToReference((HardwareClock)event.getNewValue());
} else if (event.getKind() == PropertiesEditionEvent.ADD) {
HardwareClock eObject = HrmFactory.eINSTANCE.createHardwareClock();
EObjectPropertiesEditionContext context = new EObjectPropertiesEditionContext(editingContext, this, eObject, editingContext.getAdapterFactory());
PropertiesEditingProvider provider = (PropertiesEditingProvider)editingContext.getAdapterFactory().adapt(eObject, PropertiesEditingProvider.class);
if (provider != null) {
PropertiesEditingPolicy policy = provider.getPolicy(context);
if (policy != null) {
policy.execute();
}
}
clockSettings.setToReference(eObject);
}
}
if (HrmViewsRepository.Timing.TimingProperties.timings == event.getAffectedEditor()) {
if (event.getKind() == PropertiesEditionEvent.SET) {
hardwareDrive.getTimings().clear();
hardwareDrive.getTimings().addAll(((EList) event.getNewValue()));
}
}
}
示例4: updateSemanticModel
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入依赖的package包/类
/**
* {@inheritDoc}
* @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updateSemanticModel(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent)
*
*/
public void updateSemanticModel(final IPropertiesEditionEvent event) {
HardwareSensor hardwareSensor = (HardwareSensor)semanticObject;
if (HrmViewsRepository.Timing.TimingProperties.clock == event.getAffectedEditor()) {
if (event.getKind() == PropertiesEditionEvent.SET) {
clockSettings.setToReference((HardwareClock)event.getNewValue());
} else if (event.getKind() == PropertiesEditionEvent.ADD) {
HardwareClock eObject = HrmFactory.eINSTANCE.createHardwareClock();
EObjectPropertiesEditionContext context = new EObjectPropertiesEditionContext(editingContext, this, eObject, editingContext.getAdapterFactory());
PropertiesEditingProvider provider = (PropertiesEditingProvider)editingContext.getAdapterFactory().adapt(eObject, PropertiesEditingProvider.class);
if (provider != null) {
PropertiesEditingPolicy policy = provider.getPolicy(context);
if (policy != null) {
policy.execute();
}
}
clockSettings.setToReference(eObject);
}
}
}
示例5: updateSemanticModel
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入依赖的package包/类
/**
* {@inheritDoc}
* @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updateSemanticModel(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent)
*
*/
public void updateSemanticModel(final IPropertiesEditionEvent event) {
HardwareIpBlock hardwareIpBlock = (HardwareIpBlock)semanticObject;
if (HrmViewsRepository.Timing.TimingProperties.clock == event.getAffectedEditor()) {
if (event.getKind() == PropertiesEditionEvent.SET) {
clockSettings.setToReference((HardwareClock)event.getNewValue());
} else if (event.getKind() == PropertiesEditionEvent.ADD) {
HardwareClock eObject = HrmFactory.eINSTANCE.createHardwareClock();
EObjectPropertiesEditionContext context = new EObjectPropertiesEditionContext(editingContext, this, eObject, editingContext.getAdapterFactory());
PropertiesEditingProvider provider = (PropertiesEditingProvider)editingContext.getAdapterFactory().adapt(eObject, PropertiesEditingProvider.class);
if (provider != null) {
PropertiesEditingPolicy policy = provider.getPolicy(context);
if (policy != null) {
policy.execute();
}
}
clockSettings.setToReference(eObject);
}
}
}
示例6: updateSemanticModel
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入依赖的package包/类
/**
* {@inheritDoc}
* @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updateSemanticModel(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent)
*
*/
public void updateSemanticModel(final IPropertiesEditionEvent event) {
HardwareIsa hardwareIsa = (HardwareIsa)semanticObject;
if (HrmViewsRepository.Timing.TimingProperties.clock == event.getAffectedEditor()) {
if (event.getKind() == PropertiesEditionEvent.SET) {
clockSettings.setToReference((HardwareClock)event.getNewValue());
} else if (event.getKind() == PropertiesEditionEvent.ADD) {
HardwareClock eObject = HrmFactory.eINSTANCE.createHardwareClock();
EObjectPropertiesEditionContext context = new EObjectPropertiesEditionContext(editingContext, this, eObject, editingContext.getAdapterFactory());
PropertiesEditingProvider provider = (PropertiesEditingProvider)editingContext.getAdapterFactory().adapt(eObject, PropertiesEditingProvider.class);
if (provider != null) {
PropertiesEditingPolicy policy = provider.getPolicy(context);
if (policy != null) {
policy.execute();
}
}
clockSettings.setToReference(eObject);
}
}
}
示例7: updateSemanticModel
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入依赖的package包/类
/**
* {@inheritDoc}
* @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updateSemanticModel(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent)
* @generated
*/
public void updateSemanticModel(final IPropertiesEditionEvent event) {
RequiredSchedulingParameter requiredSchedulingParameter = (RequiredSchedulingParameter)semanticObject;
if (AnalysisViewsRepository.RequiredSchedulingParameter.Properties.name == event.getAffectedEditor()) {
requiredSchedulingParameter.setName((java.lang.String)EEFConverterUtil.createFromString(EcorePackage.Literals.ESTRING, (String)event.getNewValue()));
}
if (AnalysisViewsRepository.RequiredSchedulingParameter.Properties.parent_ == event.getAffectedEditor()) {
if (event.getKind() == PropertiesEditionEvent.SET) {
parent_Settings.setToReference((Scheduler)event.getNewValue());
} else if (event.getKind() == PropertiesEditionEvent.ADD) {
Scheduler eObject = AnalysisFactory.eINSTANCE.createScheduler();
EObjectPropertiesEditionContext context = new EObjectPropertiesEditionContext(editingContext, this, eObject, editingContext.getAdapterFactory());
PropertiesEditingProvider provider = (PropertiesEditingProvider)editingContext.getAdapterFactory().adapt(eObject, PropertiesEditingProvider.class);
if (provider != null) {
PropertiesEditingPolicy policy = provider.getPolicy(context);
if (policy != null) {
policy.execute();
}
}
parent_Settings.setToReference(eObject);
}
}
}
开发者ID:polarsys,项目名称:time4sys,代码行数:28,代码来源:RequiredSchedulingParameterPropertiesEditionComponent.java
示例8: updateSemanticModel
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入依赖的package包/类
/**
* {@inheritDoc}
* @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updateSemanticModel(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent)
*
*/
public void updateSemanticModel(final IPropertiesEditionEvent event) {
ResourceInstance resourceInstance = (ResourceInstance)semanticObject;
if (GrmViewsRepository.General.Properties.name == event.getAffectedEditor()) {
resourceInstance.setName((java.lang.String)EEFConverterUtil.createFromString(EcorePackage.Literals.ESTRING, (String)event.getNewValue()));
}
if (GrmViewsRepository.General.Properties.type == event.getAffectedEditor()) {
if (event.getKind() == PropertiesEditionEvent.SET) {
typeSettings.setToReference((Resource)event.getNewValue());
} else if (event.getKind() == PropertiesEditionEvent.ADD) {
EReferencePropertiesEditionContext context = new EReferencePropertiesEditionContext(editingContext, this, typeSettings, editingContext.getAdapterFactory());
PropertiesEditingProvider provider = (PropertiesEditingProvider)editingContext.getAdapterFactory().adapt(semanticObject, PropertiesEditingProvider.class);
if (provider != null) {
PropertiesEditingPolicy policy = provider.getPolicy(context);
if (policy instanceof CreateEditingPolicy) {
policy.execute();
}
}
}
}
}
示例9: updateSemanticModel
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入依赖的package包/类
/**
* {@inheritDoc}
* @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updateSemanticModel(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent)
*
*/
public void updateSemanticModel(final IPropertiesEditionEvent event) {
HardwareAsic hardwareAsic = (HardwareAsic)semanticObject;
if (HrmViewsRepository.Timing.TimingProperties.clock == event.getAffectedEditor()) {
if (event.getKind() == PropertiesEditionEvent.SET) {
clockSettings.setToReference((HardwareClock)event.getNewValue());
} else if (event.getKind() == PropertiesEditionEvent.ADD) {
HardwareClock eObject = HrmFactory.eINSTANCE.createHardwareClock();
EObjectPropertiesEditionContext context = new EObjectPropertiesEditionContext(editingContext, this, eObject, editingContext.getAdapterFactory());
PropertiesEditingProvider provider = (PropertiesEditingProvider)editingContext.getAdapterFactory().adapt(eObject, PropertiesEditingProvider.class);
if (provider != null) {
PropertiesEditingPolicy policy = provider.getPolicy(context);
if (policy != null) {
policy.execute();
}
}
clockSettings.setToReference(eObject);
}
}
}
示例10: updateSemanticModel
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入依赖的package包/类
/**
* {@inheritDoc}
* @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updateSemanticModel(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent)
* @generated
*/
public void updateSemanticModel(final IPropertiesEditionEvent event) {
RequiredProtectionParameter requiredProtectionParameter = (RequiredProtectionParameter)semanticObject;
if (AnalysisViewsRepository.RequiredProtectionParameter.Properties.name == event.getAffectedEditor()) {
requiredProtectionParameter.setName((java.lang.String)EEFConverterUtil.createFromString(EcorePackage.Literals.ESTRING, (String)event.getNewValue()));
}
if (AnalysisViewsRepository.RequiredProtectionParameter.Properties.parent_ == event.getAffectedEditor()) {
if (event.getKind() == PropertiesEditionEvent.SET) {
parent_Settings.setToReference((ProtectionProtocol)event.getNewValue());
} else if (event.getKind() == PropertiesEditionEvent.ADD) {
ProtectionProtocol eObject = AnalysisFactory.eINSTANCE.createProtectionProtocol();
EObjectPropertiesEditionContext context = new EObjectPropertiesEditionContext(editingContext, this, eObject, editingContext.getAdapterFactory());
PropertiesEditingProvider provider = (PropertiesEditingProvider)editingContext.getAdapterFactory().adapt(eObject, PropertiesEditingProvider.class);
if (provider != null) {
PropertiesEditingPolicy policy = provider.getPolicy(context);
if (policy != null) {
policy.execute();
}
}
parent_Settings.setToReference(eObject);
}
}
}
开发者ID:polarsys,项目名称:time4sys,代码行数:28,代码来源:RequiredProtectionParameterPropertiesEditionComponent.java
示例11: updateSemanticModel
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入依赖的package包/类
/**
* {@inheritDoc}
* @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updateSemanticModel(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent)
*
*/
public void updateSemanticModel(final IPropertiesEditionEvent event) {
HardwareDevice hardwareDevice = (HardwareDevice)semanticObject;
if (HrmViewsRepository.Timing.TimingProperties.clock == event.getAffectedEditor()) {
if (event.getKind() == PropertiesEditionEvent.SET) {
clockSettings.setToReference((HardwareClock)event.getNewValue());
} else if (event.getKind() == PropertiesEditionEvent.ADD) {
HardwareClock eObject = HrmFactory.eINSTANCE.createHardwareClock();
EObjectPropertiesEditionContext context = new EObjectPropertiesEditionContext(editingContext, this, eObject, editingContext.getAdapterFactory());
PropertiesEditingProvider provider = (PropertiesEditingProvider)editingContext.getAdapterFactory().adapt(eObject, PropertiesEditingProvider.class);
if (provider != null) {
PropertiesEditingPolicy policy = provider.getPolicy(context);
if (policy != null) {
policy.execute();
}
}
clockSettings.setToReference(eObject);
}
}
}
示例12: updateSemanticModel
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入依赖的package包/类
/**
* {@inheritDoc}
* @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updateSemanticModel(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent)
*
*/
public void updateSemanticModel(final IPropertiesEditionEvent event) {
HardwareMemory hardwareMemory = (HardwareMemory)semanticObject;
if (HrmViewsRepository.Timing.TimingProperties.clock == event.getAffectedEditor()) {
if (event.getKind() == PropertiesEditionEvent.SET) {
clockSettings.setToReference((HardwareClock)event.getNewValue());
} else if (event.getKind() == PropertiesEditionEvent.ADD) {
HardwareClock eObject = HrmFactory.eINSTANCE.createHardwareClock();
EObjectPropertiesEditionContext context = new EObjectPropertiesEditionContext(editingContext, this, eObject, editingContext.getAdapterFactory());
PropertiesEditingProvider provider = (PropertiesEditingProvider)editingContext.getAdapterFactory().adapt(eObject, PropertiesEditingProvider.class);
if (provider != null) {
PropertiesEditingPolicy policy = provider.getPolicy(context);
if (policy != null) {
policy.execute();
}
}
clockSettings.setToReference(eObject);
}
}
if (HrmViewsRepository.Timing.TimingProperties.timings == event.getAffectedEditor()) {
if (event.getKind() == PropertiesEditionEvent.SET) {
hardwareMemory.getTimings().clear();
hardwareMemory.getTimings().addAll(((EList) event.getNewValue()));
}
}
}
示例13: updateSemanticModel
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入依赖的package包/类
/**
* {@inheritDoc}
* @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updateSemanticModel(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent)
*
*/
public void updateSemanticModel(final IPropertiesEditionEvent event) {
HardwarePld hardwarePld = (HardwarePld)semanticObject;
if (HrmViewsRepository.Timing.TimingProperties.clock == event.getAffectedEditor()) {
if (event.getKind() == PropertiesEditionEvent.SET) {
clockSettings.setToReference((HardwareClock)event.getNewValue());
} else if (event.getKind() == PropertiesEditionEvent.ADD) {
HardwareClock eObject = HrmFactory.eINSTANCE.createHardwareClock();
EObjectPropertiesEditionContext context = new EObjectPropertiesEditionContext(editingContext, this, eObject, editingContext.getAdapterFactory());
PropertiesEditingProvider provider = (PropertiesEditingProvider)editingContext.getAdapterFactory().adapt(eObject, PropertiesEditingProvider.class);
if (provider != null) {
PropertiesEditingPolicy policy = provider.getPolicy(context);
if (policy != null) {
policy.execute();
}
}
clockSettings.setToReference(eObject);
}
}
}
示例14: updateSemanticModel
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入依赖的package包/类
/**
* {@inheritDoc}
* @see org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updateSemanticModel(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent)
* @generated
*/
public void updateSemanticModel(final IPropertiesEditionEvent event) {
ResultContainer resultContainer = (ResultContainer)semanticObject;
if (AnalysisViewsRepository.ResultContainer.Properties.name == event.getAffectedEditor()) {
resultContainer.setName((java.lang.String)EEFConverterUtil.createFromString(EcorePackage.Literals.ESTRING, (String)event.getNewValue()));
}
if (AnalysisViewsRepository.ResultContainer.Properties.analyzedSystem == event.getAffectedEditor()) {
if (event.getKind() == PropertiesEditionEvent.SET) {
analyzedSystemSettings.setToReference((AnalyzedSystem)event.getNewValue());
} else if (event.getKind() == PropertiesEditionEvent.ADD) {
AnalyzedSystem eObject = AnalysisFactory.eINSTANCE.createAnalyzedSystem();
EObjectPropertiesEditionContext context = new EObjectPropertiesEditionContext(editingContext, this, eObject, editingContext.getAdapterFactory());
PropertiesEditingProvider provider = (PropertiesEditingProvider)editingContext.getAdapterFactory().adapt(eObject, PropertiesEditingProvider.class);
if (provider != null) {
PropertiesEditingPolicy policy = provider.getPolicy(context);
if (policy != null) {
policy.execute();
}
}
analyzedSystemSettings.setToReference(eObject);
}
}
}
示例15: editInitializeServices
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入依赖的package包/类
/**
*
*/
protected void editInitializeServices(EObject element) {
EObjectPropertiesEditionContext context = new EObjectPropertiesEditionContext(
propertiesEditionComponent.getEditingContext(), propertiesEditionComponent, element, adapterFactory);
PropertiesEditingProvider provider = (PropertiesEditingProvider) adapterFactory.adapt(element,
PropertiesEditingProvider.class);
if (provider != null) {
PropertiesEditingPolicy policy = provider.getPolicy(context);
if (policy != null) {
policy.execute();
initializeServices.refresh();
}
}
}