Examples of AdapterFactory


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

   */
  public IPropertySource getPropertySource(Object object) {
    if (object instanceof IPropertySource) {
      return (IPropertySource) object;
    }
    AdapterFactory af = getAdapterFactory(object);
    if (af != null) {
      IItemPropertySource ips = (IItemPropertySource) af.adapt(object,
          IItemPropertySource.class);
      if (ips != null) {
        return new PropertySource(object, ips);
      }
    }
View Full Code Here

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

   */
  public IPropertySource getPropertySource(Object object) {
    if (object instanceof IPropertySource) {
      return (IPropertySource) object;
    }
    AdapterFactory af = getAdapterFactory(object);
    if (af != null) {
      IItemPropertySource ips = (IItemPropertySource) af.adapt(object,
          IItemPropertySource.class);
      if (ips != null) {
        return new PropertySource(object, ips);
      }
    }
View Full Code Here

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

   */
  public IPropertySource getPropertySource(Object object) {
    if (object instanceof IPropertySource) {
      return (IPropertySource) object;
    }
    AdapterFactory af = getAdapterFactory(object);
    if (af != null) {
      IItemPropertySource ips = (IItemPropertySource) af.adapt(object,
          IItemPropertySource.class);
      if (ips != null) {
        return new PropertySource(object, ips);
      }
    }
View Full Code Here

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

        List<URIHandler> uriHandlers) throws IOException {
        ResourceSet resourceSet = new ResourceSetImpl();
       
        //add the specialized schema location resolvers
        if ((resolvers != null) && !resolvers.isEmpty()) {
           AdapterFactory adapterFactory = new SchemaLocationResolverAdapterFactory(resolvers);
           resourceSet.getAdapterFactories().add(adapterFactory);
        }
       
        //add the specialized schema locators as adapters
        if ((locators != null) && !locators.isEmpty()) {
            AdapterFactory adapterFactory = new SchemaLocatorAdapterFactory(locators);
            resourceSet.getAdapterFactories().add(adapterFactory);
        }

        //add the specifialized uri handlers
        if (uriHandlers != null && !uriHandlers.isEmpty()) {
View Full Code Here

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

                }
               
                return null;
            }
        });
        AdapterFactory adapterFactory = new SchemaLocatorAdapterFactory(locators);
        resource.getResourceSet().getAdapterFactories().add( adapterFactory );
        return imprt;
    }
View Full Code Here

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

        adapter = (Adapter) invocation.getArguments()[0];
        return null;
      }

    });
    AdapterFactory adapterFactory = mock(AdapterFactory.class);
    IStructuredItemContentProvider contentProvider = mock(IStructuredItemContentProvider.class);
    when(adapterFactory.adapt(any(), any())).thenReturn(contentProvider);
    AdapterFactoryObservableList observableList = new AdapterFactoryObservableList(
        adapterFactory, notifier);
    observableList.elements = elements;

    // make sure that notification are forwarded
View Full Code Here

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

public class ContactsListView {

  @Inject
  public ContactsListView(BorderPane parent, final MApplication application, final ContactsManager contactsManager) {
    EditingDomain editingDomain = contactsManager.getEditingDomain();
    AdapterFactory adapterFactory = contactsManager.getAdapterFactory();
   
    ListView<Object> listView = new ListView<>();

    parent.setCenter(listView);
View Full Code Here

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

  @Inject
  @SuppressWarnings("unchecked")
  public ContactsTableView(BorderPane parent, final MApplication application, final ContactsManager contactsManager) {
    EditingDomain editingDomain = contactsManager.getEditingDomain();
    AdapterFactory adapterFactory = contactsManager.getAdapterFactory();

    TableView<Object> tableView = new TableView<>();

    parent.setCenter(tableView);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.