當前位置: 首頁>>代碼示例>>Java>>正文


Java PropertiesEditingProvider類代碼示例

本文整理匯總了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);
		}
	}
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:25,代碼來源:HardwarePlatformTimingPropertiesEditionComponent.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)
 * @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()));
	}
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:31,代碼來源:OffsetPropertiesEditionComponent.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) {
	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()));
		}
	}
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:31,代碼來源:HardwareDriveTimingPropertiesEditionComponent.java

示例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);
		}
	}
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:25,代碼來源:HardwareSensorTimingPropertiesEditionComponent.java

示例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);
		}
	}
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:25,代碼來源:HardwareIpBlockTimingPropertiesEditionComponent.java

示例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);
		}
	}
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:25,代碼來源:HardwareIsaTimingPropertiesEditionComponent.java

示例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();
				}
			}
		}
	}
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:26,代碼來源:ResourceInstancePropertiesEditionComponent.java

示例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);
		}
	}
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:25,代碼來源:HardwareAsicTimingPropertiesEditionComponent.java

示例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);
		}
	}
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:25,代碼來源:HardwareDeviceTimingPropertiesEditionComponent.java

示例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()));
		}
	}
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:31,代碼來源:HardwareMemoryTimingPropertiesEditionComponent.java

示例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);
		}
	}
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:25,代碼來源:HardwarePldTimingPropertiesEditionComponent.java

示例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);
		}
	}
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:28,代碼來源:ResultContainerPropertiesEditionComponent.java

示例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();
		}
	}
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:17,代碼來源:OtherPropertiesEditionPartImpl.java


注:本文中的org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。