/** @param parent */ protected Composite createFlatreferencetableOptionalPropertyFlatReferencesTable( Composite parent) { createDescription( parent, EefnrViewsRepository.FlatReferenceTableSample.Properties.flatreferencetableOptionalProperty, EefnrMessages .FlatReferenceTableSamplePropertiesEditionPart_FlatreferencetableOptionalPropertyLabel); flatreferencetableOptionalProperty = new FlatReferencesTable(parent); flatreferencetableOptionalProperty.setLabelProvider( new AdapterFactoryLabelProvider(adapterFactory)); flatreferencetableOptionalProperty.addSelectionChangedListener( new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) { if (event.getSelection() instanceof StructuredSelection) propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( FlatReferenceTableSamplePropertiesEditionPartImpl.this, EefnrViewsRepository.FlatReferenceTableSample.Properties .flatreferencetableOptionalProperty, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, ((StructuredSelection) event.getSelection()).toList())); } }); GridData flatreferencetableOptionalPropertyData = new GridData(GridData.FILL_HORIZONTAL); flatreferencetableOptionalProperty.setLayoutData(flatreferencetableOptionalPropertyData); flatreferencetableOptionalProperty.setID( EefnrViewsRepository.FlatReferenceTableSample.Properties .flatreferencetableOptionalProperty); SWTUtils.createHelpButton( parent, propertiesEditionComponent.getHelpContent( EefnrViewsRepository.FlatReferenceTableSample.Properties .flatreferencetableOptionalProperty, EefnrViewsRepository.SWT_KIND), null); //$NON-NLS-1$ return parent; }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.eefnr.parts.FlatReferenceTableSamplePropertiesEditionPart#isContainedInFlatreferencetableOptionalPropertyTable(EObject * element) */ public boolean isContainedInFlatreferencetableOptionalPropertyTable(EObject element) { return ((ReferencesTableSettings) flatreferencetableOptionalProperty.getInput()) .contains(element); }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.eefnr.parts.FlatReferenceTableSamplePropertiesEditionPart#addBusinessFilterFlatreferencetableOptionalProperty(ViewerFilter * filter) */ public void addBusinessFilterToFlatreferencetableOptionalProperty(ViewerFilter filter) { flatreferencetableOptionalProperty.addBusinessRuleFilter(filter); }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.eefnr.parts.FlatReferenceTableSamplePropertiesEditionPart#updateFlatreferencetableOptionalProperty() */ public void updateFlatreferencetableOptionalProperty() { flatreferencetableOptionalProperty.refresh(); }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.eefnr.parts.FlatReferenceTableSamplePropertiesEditionPart#initFlatreferencetableOptionalProperty(ReferencesTableSettings) */ public void initFlatreferencetableOptionalProperty(ReferencesTableSettings settings) { if (current.eResource() != null && current.eResource().getResourceSet() != null) this.resourceSet = current.eResource().getResourceSet(); flatreferencetableOptionalProperty.setInput(settings); }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.eefnr.parts.FlatReferenceTableSamplePropertiesEditionPart#addFilterFlatreferencetableRequiredProperty(ViewerFilter * filter) */ public void addFilterToFlatreferencetableRequiredProperty(ViewerFilter filter) { flatreferencetableRequiredProperty.addFilter(filter); }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.eefnr.parts.FlatReferenceTableSamplePropertiesEditionPart#updateFlatreferencetableRequiredProperty() */ public void updateFlatreferencetableRequiredProperty() { flatreferencetableRequiredProperty.refresh(); }