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


Java PropertiesEditingProvider.getPolicy方法代码示例

本文整理汇总了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);
		}
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:25,代码来源:HardwareActuatorTimingPropertiesEditionComponent.java

示例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);
		}
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:28,代码来源:WorkloadEventPropertiesEditionComponent.java

示例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();
		}
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:17,代码来源:GeneralPropertiesEditionPartForm.java

示例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();
		}
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:17,代码来源:TimingPropertiesEditionPartForm.java

示例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();
		}
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:17,代码来源:OtherPropertiesEditionPartForm.java

示例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();
		}
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:15,代码来源:GeneralPropertiesEditionPartImpl.java

示例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();
		}
	}
}
 
开发者ID:cetic,项目名称:SimQRI,代码行数:15,代码来源:ConveyorBeltPropertiesEditionPartForm.java

示例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();
		}
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:17,代码来源:OtherPropertiesEditionPartImpl.java

示例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();
		}
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:17,代码来源:OtherPropertiesEditionPartImpl.java

示例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();
		}
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:17,代码来源:GeneralPropertiesEditionPartImpl.java

示例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();
		}
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:17,代码来源:GeneralPropertiesEditionPartImpl.java

示例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();
		}
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:17,代码来源:GeneralPropertiesEditionPartImpl.java

示例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();
		}
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:15,代码来源:OtherPropertiesEditionPartForm.java

示例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();
		}
	}
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:17,代码来源:OtherPropertiesEditionPartForm.java


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