protected void createNamedElement(Composite container) { IPropertiesEditionPartProvider provider = PropertiesEditionPartProviderService.getInstance() .getProvider(MiddlenonregViewsRepository.class); namedElementPropertiesEditionPart = (NamedElementPropertiesEditionPart) provider.getPropertiesEditionPart( MiddlenonregViewsRepository.NamedElement.class, MiddlenonregViewsRepository.SWT_KIND, propertiesEditionComponent); ((ISWTPropertiesEditionPart) namedElementPropertiesEditionPart).createControls(container); }
protected Composite createFilterProperties(FormToolkit widgetFactory, Composite container) { IPropertiesEditionPartProvider provider = PropertiesEditionPartProviderService.getInstance() .getProvider(MappingViewsRepository.class); filterPropertiesPropertiesEditionPart = (FilterPropertiesPropertiesEditionPart) provider.getPropertiesEditionPart( MappingViewsRepository.FilterProperties.class, MappingViewsRepository.FORM_KIND, propertiesEditionComponent); ((IFormPropertiesEditionPart) filterPropertiesPropertiesEditionPart) .createControls(widgetFactory, container); return container; }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#getPropertiesEditionPart * (java.lang.String, java.lang.String) */ public IPropertiesEditionPart getPropertiesEditionPart(int kind, String key) { if (talk != null && BASE_PART.equals(key)) { if (basePart == null) { IPropertiesEditionPartProvider provider = PropertiesEditionPartProviderService.getInstance() .getProvider(NonregViewsRepository.class); if (provider != null) { basePart = (ComboPropertiesEditionPart) provider.getPropertiesEditionPart(NonregViewsRepository.Combo.class, kind, this); addListener((IPropertiesEditionListener) basePart); } } return (IPropertiesEditionPart) basePart; } return null; }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#getPropertiesEditionPart * (java.lang.String, java.lang.String) */ public IPropertiesEditionPart getPropertiesEditionPart(int kind, String key) { if (game != null && GAMEPLAYERS_PART.equals(key)) { if (gamePlayersPart == null) { IPropertiesEditionPartProvider provider = PropertiesEditionPartProviderService.getInstance() .getProvider(TarotViewsRepository.class); if (provider != null) { gamePlayersPart = (GamePlayersPropertiesEditionPart) provider.getPropertiesEditionPart( TarotViewsRepository.GamePlayers.class, kind, this); addListener((IPropertiesEditionListener) gamePlayersPart); } } return (IPropertiesEditionPart) gamePlayersPart; } return null; }