net.officefloor.eclipse.extension.managedobjectsource.clazz
Class ClassManagedObjectSourceExtension

java.lang.Object
  extended by net.officefloor.eclipse.extension.managedobjectsource.clazz.ClassManagedObjectSourceExtension
All Implemented Interfaces:
ExtensionClasspathProvider, ManagedObjectSourceExtension<Indexed,Indexed,ClassManagedObjectSource>, ExtensionOpener

public class ClassManagedObjectSourceExtension
extends Object
implements ManagedObjectSourceExtension<Indexed,Indexed,ClassManagedObjectSource>, ExtensionClasspathProvider, ExtensionOpener

ManagedObjectSourceExtension for ClassManagedObjectSource.

Author:
Daniel Sagenschneider

Field Summary
 
Fields inherited from interface net.officefloor.eclipse.extension.managedobjectsource.ManagedObjectSourceExtension
EXTENSION_ID
 
Fields inherited from interface net.officefloor.eclipse.extension.classpath.ExtensionClasspathProvider
EXTENSION_ID
 
Constructor Summary
ClassManagedObjectSourceExtension()
           
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite page, ManagedObjectSourceExtensionContext context)
          Populates the input page with the necessary Control instances to obtain the properties.
 ClasspathProvision[] getClasspathProvisions()
          Obtains the ClasspathProvision instances for the extension.
 Class<ClassManagedObjectSource> getManagedObjectSourceClass()
          Obtains the class of the ManagedObjectSource being enriched in its usage.
 String getManagedObjectSourceLabel()
          Obtains the display name.
 String getSuggestedManagedObjectSourceName(PropertyList properties)
          Obtains the suggested name of the ManagedObjectSource.
 void openSource(ExtensionOpenerContext context)
          Opens the source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassManagedObjectSourceExtension

public ClassManagedObjectSourceExtension()
Method Detail

getManagedObjectSourceClass

public Class<ClassManagedObjectSource> getManagedObjectSourceClass()
Description copied from interface: ManagedObjectSourceExtension
Obtains the class of the ManagedObjectSource being enriched in its usage.

Specified by:
getManagedObjectSourceClass in interface ManagedObjectSourceExtension<Indexed,Indexed,ClassManagedObjectSource>
Returns:
Class of the ManagedObjectSource being enriched in its usage.

getManagedObjectSourceLabel

public String getManagedObjectSourceLabel()
Description copied from interface: ManagedObjectSourceExtension
Obtains the display name. This is a descriptive name that can be used other than the fully qualified name of the ManagedObjectSource.

Specified by:
getManagedObjectSourceLabel in interface ManagedObjectSourceExtension<Indexed,Indexed,ClassManagedObjectSource>
Returns:
Display name.

createControl

public void createControl(org.eclipse.swt.widgets.Composite page,
                          ManagedObjectSourceExtensionContext context)
Description copied from interface: ManagedObjectSourceExtension
Populates the input page with the necessary Control instances to obtain the properties. Also allows notifying of changes to properties via the ManagedObjectSourceExtensionContext.

Specified by:
createControl in interface ManagedObjectSourceExtension<Indexed,Indexed,ClassManagedObjectSource>
Parameters:
page - Page to be setup for obtaining the properties.
context - ManagedObjectSourceExtensionContext.

getSuggestedManagedObjectSourceName

public String getSuggestedManagedObjectSourceName(PropertyList properties)
Description copied from interface: ManagedObjectSourceExtension
Obtains the suggested name of the ManagedObjectSource.

Specified by:
getSuggestedManagedObjectSourceName in interface ManagedObjectSourceExtension<Indexed,Indexed,ClassManagedObjectSource>
Parameters:
properties - Populate PropertyList.
Returns:
Suggested ManagedObjectSource name or null if no suggestion.

getClasspathProvisions

public ClasspathProvision[] getClasspathProvisions()
Description copied from interface: ExtensionClasspathProvider
Obtains the ClasspathProvision instances for the extension.

Specified by:
getClasspathProvisions in interface ExtensionClasspathProvider
Returns:
ClasspathProvision instances for the extension.

openSource

public void openSource(ExtensionOpenerContext context)
                throws Exception
Description copied from interface: ExtensionOpener
Opens the source.

Specified by:
openSource in interface ExtensionOpener
Parameters:
context - ExtensionOpenerContext.
Throws:
Exception - If fails to open the source.


Copyright © 2005-2013. All Rights Reserved.