CDO View Providers

Identifier:
org.eclipse.emf.cdo.viewProviders

Since:
2.0.0

Description:
This extension point is used to define the CDOViewProvider factories that create instances capable of handling URIs according to the defined regular expression. This is registered to a global CDOViewProviderFactory Registry CDOViewProviderFactory.INSTANCE

Configuration Markup:

<!ELEMENT extension (viewProvider+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT viewProvider EMPTY>

<!ATTLIST viewProvider

class    CDATA #REQUIRED

regex    CDATA #REQUIRED

priority CDATA "500">


Examples:
Following is an example of how a URI scheme can be registered:

  <viewprovider factory="org.eclipse.emf.cdo.util.DefaultCDOViewProvider$DefaultCDOViewProviderFactory"
   high_priority="false"
   regex="cdo.*">
  </viewprovider>

API Information:
The value of the class attribute must represent a class that implements org.eclipse.emf.ecore.resource.Resource.Factory.

A URI scheme can be also registered from the source code with the Resource.Factory.Registry.INSTANCE as follows:


  Resource.Factory.Registry.INSTANCE.putFactory(new DefaultCDOViewProviderFactory(), "cdo.*", "false");

Supplied Implementation:
org.eclipse.emf.cdo.util.DefaultCDOViewProvider$DefaultCDOViewProviderFactory provides default stub implementation. org.eclipse.emf.cdo.internal.ui.preferences.PreferencesCDOViewProvider.PreferencesCDOViewProviderFactory creates a provider that opens views according to a preference-page based repository URI list.


Copyright (c) 2008, 2009, 2012 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html