本文整理汇总了Java中org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider.getPolicy方法的典型用法代码示例。如果您正苦于以下问题:Java PropertiesEditingProvider.getPolicy方法的具体用法?Java PropertiesEditingProvider.getPolicy怎么用?Java PropertiesEditingProvider.getPolicy使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider
的用法示例。
在下文中一共展示了PropertiesEditingProvider.getPolicy方法的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) {
HardwareActuator hardwareActuator = (HardwareActuator)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)
*
*/
public void updateSemanticModel(final IPropertiesEditionEvent event) {
HardwareCommunicationResource hardwareCommunicationResource = (HardwareCommunicationResource)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);
}
}
}
开发者ID:polarsys,项目名称:time4sys,代码行数:25,代码来源:HardwareCommunicationResourceTimingPropertiesEditionComponent.java
示例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) {
WorkloadEvent workloadEvent = (WorkloadEvent)semanticObject;
if (GqamViewsRepository.General.Properties.name == event.getAffectedEditor()) {
workloadEvent.setName((java.lang.String)EEFConverterUtil.createFromString(EcorePackage.Literals.ESTRING, (String)event.getNewValue()));
}
if (GqamViewsRepository.General.Properties.effect == event.getAffectedEditor()) {
if (event.getKind() == PropertiesEditionEvent.SET) {
effectSettings.setToReference((BehaviorScenario)event.getNewValue());
} else if (event.getKind() == PropertiesEditionEvent.ADD) {
BehaviorScenario eObject = GqamFactory.eINSTANCE.createBehaviorScenario();
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();
}
}
effectSettings.setToReference(eObject);
}
}
}
示例4: editBrokedResource
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入方法依赖的package包/类
/**
*
*/
protected void editBrokedResource(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();
brokedResource.refresh();
}
}
}
示例5: editAccessTokenElements
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入方法依赖的package包/类
/**
*
*/
protected void editAccessTokenElements(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();
accessTokenElements.refresh();
}
}
}
示例6: editCreateServices
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入方法依赖的package包/类
/**
*
*/
protected void editCreateServices(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();
createServices.refresh();
}
}
}
示例7: editUsedBy
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入方法依赖的package包/类
/**
*
*/
protected void editUsedBy(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();
usedBy.refresh();
}
}
}
示例8: editStorageOutputFlow
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入方法依赖的package包/类
/**
*
*/
protected void editStorageOutputFlow(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();
storageOutputFlow.refresh();
}
}
}
示例9: editRServices
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入方法依赖的package包/类
/**
*
*/
protected void editRServices(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();
rServices.refresh();
}
}
}
示例10: editRoutineDisconnectServices
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入方法依赖的package包/类
/**
*
*/
protected void editRoutineDisconnectServices(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();
routineDisconnectServices.refresh();
}
}
}
示例11: editControlledMedia
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入方法依赖的package包/类
/**
*
*/
protected void editControlledMedia(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();
controlledMedia.refresh();
}
}
}
示例12: editMemories
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入方法依赖的package包/类
/**
*
*/
protected void editMemories(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();
memories.refresh();
}
}
}
示例13: editMessageResources
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入方法依赖的package包/类
/**
*
*/
protected void editMessageResources(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();
messageResources.refresh();
}
}
}
示例14: editRServices
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入方法依赖的package包/类
/**
*
*/
protected void editRServices(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();
rServices.refresh();
}
}
}
示例15: editSendServices
import org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider; //导入方法依赖的package包/类
/**
*
*/
protected void editSendServices(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();
sendServices.refresh();
}
}
}