org.eclipse.emf.common.notify.AdapterFactory Java Examples

The following examples show how to use org.eclipse.emf.common.notify.AdapterFactory. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ItemPropertyDescriptor2.java    From neoscada with Eclipse Public License 1.0 4 votes vote down vote up
public ItemPropertyDescriptor2 ( final AdapterFactory adapterFactory, final ResourceLocator resourceLocator, final String displayName, final String description, final EReference[] parentReferences, final boolean isSettable, final String category )
{
    super ( adapterFactory, resourceLocator, displayName, description, parentReferences, isSettable, category );
}
 
Example #2
Source File: ItemPropertyDescriptor2.java    From neoscada with Eclipse Public License 1.0 4 votes vote down vote up
public ItemPropertyDescriptor2 ( final AdapterFactory adapterFactory, final String displayName, final String description, final EReference[] parentReferences, final boolean isSettable, final String category, final String[] filterFlags )
{
    super ( adapterFactory, displayName, description, parentReferences, isSettable, category, filterFlags );
}
 
Example #3
Source File: ItemPropertyDescriptor2.java    From neoscada with Eclipse Public License 1.0 4 votes vote down vote up
public ItemPropertyDescriptor2 ( final AdapterFactory adapterFactory, final ResourceLocator resourceLocator, final String displayName, final String description, final EStructuralFeature feature, final boolean isSettable, final Object staticImage, final String category )
{
    super ( adapterFactory, resourceLocator, displayName, description, feature, isSettable, staticImage, category );
}
 
Example #4
Source File: CrossflowDiagramEditorPlugin.java    From scava with Eclipse Public License 2.0 4 votes vote down vote up
/**
* @generated
*/
public AdapterFactory getItemProvidersAdapterFactory() {
	return adapterFactory;
}
 
Example #5
Source File: DriverSelectionDialog.java    From neoscada with Eclipse Public License 1.0 4 votes vote down vote up
protected void createDataModel ( final TreeViewer viewer )
{
    final DataBindingContext dbc = new DataBindingContext ();

    final IObservableFactory listFactory = new IObservableFactory () {

        @Override
        public IObservable createObservable ( final Object target )
        {
            if ( target instanceof IObservableList )
            {
                return (IObservableList)target;
            }

            else if ( target instanceof World )
            {
                return EMFObservables.observeList ( (EObject)target, InfrastructurePackage.Literals.WORLD__NODES );
            }
            else if ( target instanceof SystemNode )
            {
                return EMFObservables.observeList ( (EObject)target, InfrastructurePackage.Literals.SYSTEM_NODE__DRIVERS );
            }

            return null;
        }
    };

    final AdapterFactory adapterFactory = new InfrastructureItemProviderAdapterFactory ();
    final AdapterFactoryLabelProvider labelProvider = new AdapterFactoryLabelProvider ( adapterFactory );

    final ObservableListTreeContentProvider cp = new ObservableListTreeContentProvider ( listFactory, null );
    viewer.setContentProvider ( cp );
    viewer.setLabelProvider ( labelProvider );
    viewer.setInput ( EMFObservables.observeList ( this.world, InfrastructurePackage.Literals.WORLD__NODES ) );

    dbc.bindValue ( ViewersObservables.observeSingleSelection ( viewer ), this.driverValue );
    this.driverValue.addValueChangeListener ( new IValueChangeListener () {

        @Override
        public void handleValueChange ( final ValueChangeEvent event )
        {
            update ();
        }
    } );

    viewer.getControl ().addDisposeListener ( new DisposeListener () {

        @Override
        public void widgetDisposed ( final DisposeEvent e )
        {
            dbc.dispose ();
        }
    } );
}
 
Example #6
Source File: ItemPropertyDescriptor2.java    From neoscada with Eclipse Public License 1.0 4 votes vote down vote up
public ItemPropertyDescriptor2 ( final AdapterFactory adapterFactory, final ResourceLocator resourceLocator, final String displayName, final String description, final EReference[] parentReferences )
{
    super ( adapterFactory, resourceLocator, displayName, description, parentReferences );
}
 
Example #7
Source File: CrossflowElementChooserDialog.java    From scava with Eclipse Public License 2.0 4 votes vote down vote up
/**
* @generated
*/
@Override

public AdapterFactory getAdapterFactory() {
	return CrossflowDiagramEditorPlugin.getInstance().getItemProvidersAdapterFactory();
}
 
Example #8
Source File: DetailViewEditor.java    From neoscada with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ReverseAdapterFactoryContentProvider ( AdapterFactory adapterFactory )
{
    super ( adapterFactory );
}
 
Example #9
Source File: SystemInformationVMStatItemProvider.java    From neoscada with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public SystemInformationVMStatItemProvider ( AdapterFactory adapterFactory )
{
    super ( adapterFactory );
}
 
Example #10
Source File: GridContainerItemProvider.java    From neoscada with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public GridContainerItemProvider ( AdapterFactory adapterFactory )
{
    super ( adapterFactory );
}
 
Example #11
Source File: AverageItemProvider.java    From neoscada with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public AverageItemProvider ( AdapterFactory adapterFactory )
{
    super ( adapterFactory );
}
 
Example #12
Source File: AknProxyItemProvider.java    From neoscada with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public AknProxyItemProvider ( AdapterFactory adapterFactory )
{
    super ( adapterFactory );
}
 
Example #13
Source File: ContainedServiceBindingItemProvider.java    From neoscada with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ContainedServiceBindingItemProvider ( AdapterFactory adapterFactory )
{
    super ( adapterFactory );
}
 
Example #14
Source File: PlainStreamExtractorTypeItemProvider.java    From neoscada with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public PlainStreamExtractorTypeItemProvider ( AdapterFactory adapterFactory )
{
    super ( adapterFactory );
}
 
Example #15
Source File: DaveDriverItemProvider.java    From neoscada with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public DaveDriverItemProvider ( AdapterFactory adapterFactory )
{
    super ( adapterFactory );
}
 
Example #16
Source File: MasterImportConnectionAnalyzerItemProvider.java    From neoscada with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public MasterImportConnectionAnalyzerItemProvider ( AdapterFactory adapterFactory )
{
    super ( adapterFactory );
}
 
Example #17
Source File: DSFileBackendItemProvider.java    From neoscada with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public DSFileBackendItemProvider ( AdapterFactory adapterFactory )
{
    super ( adapterFactory );
}
 
Example #18
Source File: ValueArchiveServerItemProvider.java    From neoscada with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ValueArchiveServerItemProvider ( AdapterFactory adapterFactory )
{
    super ( adapterFactory );
}
 
Example #19
Source File: ProfileItemProvider.java    From neoscada with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ProfileItemProvider ( AdapterFactory adapterFactory )
{
    super ( adapterFactory );
}
 
Example #20
Source File: ScriptItemProvider.java    From neoscada with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ScriptItemProvider ( AdapterFactory adapterFactory )
{
    super ( adapterFactory );
}
 
Example #21
Source File: MovingAverageItemProvider.java    From neoscada with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public MovingAverageItemProvider ( AdapterFactory adapterFactory )
{
    super ( adapterFactory );
}
 
Example #22
Source File: AbstractInputItemProvider.java    From neoscada with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public AbstractInputItemProvider ( AdapterFactory adapterFactory )
{
    super ( adapterFactory );
}
 
Example #23
Source File: RegistrationItemProvider.java    From neoscada with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public RegistrationItemProvider ( AdapterFactory adapterFactory )
{
    super ( adapterFactory );
}
 
Example #24
Source File: XAxisControllerItemProvider.java    From neoscada with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public XAxisControllerItemProvider ( AdapterFactory adapterFactory )
{
    super ( adapterFactory );
}
 
Example #25
Source File: ScriptedTaskItemProvider.java    From scava with Eclipse Public License 2.0 2 votes vote down vote up
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ScriptedTaskItemProvider(AdapterFactory adapterFactory) {
	super(adapterFactory);
}
 
Example #26
Source File: CommandTypeItemProvider.java    From neoscada with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public CommandTypeItemProvider ( AdapterFactory adapterFactory )
{
    super ( adapterFactory );
}
 
Example #27
Source File: OrderedTypeItemProvider.java    From neoscada with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public OrderedTypeItemProvider ( AdapterFactory adapterFactory )
{
    super ( adapterFactory );
}
 
Example #28
Source File: ApplicationConfigurationItemProvider.java    From neoscada with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ApplicationConfigurationItemProvider ( AdapterFactory adapterFactory )
{
    super ( adapterFactory );
}
 
Example #29
Source File: DeploymentEditor.java    From neoscada with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ReverseAdapterFactoryContentProvider ( AdapterFactory adapterFactory )
{
    super ( adapterFactory );
}
 
Example #30
Source File: NodeItemProvider.java    From neoscada with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NodeItemProvider ( AdapterFactory adapterFactory )
{
    super ( adapterFactory );
}