use of org.eclipse.emf.eef.runtime.policies.PropertiesEditingPolicy in project InformationSystem by ObeoNetwork.
the class UseCasePropertiesEditionPartForm method editDomainClasses.
/**
*/
protected void editDomainClasses(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();
domainClasses.refresh();
}
}
}
use of org.eclipse.emf.eef.runtime.policies.PropertiesEditingPolicy in project InformationSystem by ObeoNetwork.
the class UseCasePropertiesEditionPartForm method editNamespaces.
/**
*/
protected void editNamespaces(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();
namespaces.refresh();
}
}
}
use of org.eclipse.emf.eef.runtime.policies.PropertiesEditingPolicy in project InformationSystem by ObeoNetwork.
the class UseCasePropertiesEditionPartForm method editTasks.
/**
*/
protected void editTasks(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();
tasks.refresh();
}
}
}
use of org.eclipse.emf.eef.runtime.policies.PropertiesEditingPolicy in project InformationSystem by ObeoNetwork.
the class UserActionPropertiesEditionPartForm method editIncomingTransitions.
/**
*/
protected void editIncomingTransitions(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();
incomingTransitions.refresh();
}
}
}
use of org.eclipse.emf.eef.runtime.policies.PropertiesEditingPolicy in project InformationSystem by ObeoNetwork.
the class ActorPropertiesEditionPartForm method editSubActors.
/**
*/
protected void editSubActors(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();
subActors.refresh();
}
}
}
Aggregations