Runtime

org.eclipse.gmf.runtime.diagram.core.providers
Class ViewProviderConfiguration

java.lang.Object
  extended by org.eclipse.gmf.runtime.common.core.service.AbstractProviderConfiguration
      extended by org.eclipse.gmf.runtime.diagram.core.providers.ViewProviderConfiguration

public class ViewProviderConfiguration
extends AbstractProviderConfiguration


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.gmf.runtime.common.core.service.AbstractProviderConfiguration
AbstractProviderConfiguration.ObjectDescriptor
 
Field Summary
 
Fields inherited from class org.eclipse.gmf.runtime.common.core.service.AbstractProviderConfiguration
CLASS, contextParam, ID, METHOD, NAME, NOT_VALUE, NULL, OBJECT, STATIC_METHOD, VALUE
 
Method Summary
static ViewProviderConfiguration parse(IConfigurationElement configElement)
          Builds a new provider contribution descriptor by parsing its configuration element
 boolean supports(java.lang.Class viewKind, IAdaptable semanticAdapter, View containerView, java.lang.String semanticHint)
          Determines if the provider understands the given context The provider understands the request if: 1- There are no listed provider contexts 2- The context matches one of the provider contexts
 
Methods inherited from class org.eclipse.gmf.runtime.common.core.service.AbstractProviderConfiguration
getAdapter, getObjectList, getPluginBundle, getStrings, invokeMethod, invokeStaticMethod, isAssignableTo, loadClass, objectMatches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static ViewProviderConfiguration parse(IConfigurationElement configElement)
Builds a new provider contribution descriptor by parsing its configuration element

Parameters:
configElement - A provider configuration element
Returns:
A provider XML contribution descriptor

supports

public boolean supports(java.lang.Class viewKind,
                        IAdaptable semanticAdapter,
                        View containerView,
                        java.lang.String semanticHint)
Determines if the provider understands the given context The provider understands the request if: 1- There are no listed provider contexts 2- The context matches one of the provider contexts

Parameters:
viewKind - The view kind
semanticAdapter - The semantic adapter
containerView - The container view
semanticHint - the factory hint
Returns:
boolean true if it supports; false otherwise

Runtime

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.