net.officefloor.eclipse.extension.administratorsource.clazz
Class ClassAdministratorSourceExtension

java.lang.Object
  extended by net.officefloor.eclipse.extension.administratorsource.clazz.ClassAdministratorSourceExtension
All Implemented Interfaces:
AdministratorSourceExtension<Object,Indexed,ClassAdministratorSource>, ExtensionClasspathProvider, ExtensionOpener

public class ClassAdministratorSourceExtension
extends Object
implements AdministratorSourceExtension<Object,Indexed,ClassAdministratorSource>, ExtensionClasspathProvider, ExtensionOpener

AdministratorSourceExtension for ClassAdministratorSource.

Author:
Daniel Sagenschneider

Field Summary
 
Fields inherited from interface net.officefloor.eclipse.extension.administratorsource.AdministratorSourceExtension
EXTENSION_ID
 
Fields inherited from interface net.officefloor.eclipse.extension.classpath.ExtensionClasspathProvider
EXTENSION_ID
 
Constructor Summary
ClassAdministratorSourceExtension()
           
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite page, AdministratorSourceExtensionContext context)
          Loads the input page with the necessary Control instances to populate the PropertyList.
 Class<ClassAdministratorSource> getAdministratorSourceClass()
          Obtains the class of the AdministratorSource being enriched in its usage.
 String getAdministratorSourceLabel()
           Obtains the label for the AdministratorSource.
 ClasspathProvision[] getClasspathProvisions()
          Obtains the ClasspathProvision instances for the extension.
 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

ClassAdministratorSourceExtension

public ClassAdministratorSourceExtension()
Method Detail

getAdministratorSourceClass

public Class<ClassAdministratorSource> getAdministratorSourceClass()
Description copied from interface: AdministratorSourceExtension
Obtains the class of the AdministratorSource being enriched in its usage.

Specified by:
getAdministratorSourceClass in interface AdministratorSourceExtension<Object,Indexed,ClassAdministratorSource>
Returns:
Class of the AdministratorSource being enriched in its usage.

getAdministratorSourceLabel

public String getAdministratorSourceLabel()
Description copied from interface: AdministratorSourceExtension

Obtains the label for the AdministratorSource.

This is a descriptive name that can be used other than the fully qualified name of the AdministratorSource.

Specified by:
getAdministratorSourceLabel in interface AdministratorSourceExtension<Object,Indexed,ClassAdministratorSource>
Returns:
Label for the AdministratorSource.

createControl

public void createControl(org.eclipse.swt.widgets.Composite page,
                          AdministratorSourceExtensionContext context)
Description copied from interface: AdministratorSourceExtension
Loads the input page with the necessary Control instances to populate the PropertyList. Also allows notifying of changes to Property instances via the AdministratorSourceExtensionContext.

Specified by:
createControl in interface AdministratorSourceExtension<Object,Indexed,ClassAdministratorSource>
Parameters:
page - Page to be setup for populating the PropertyList.
context - AdministratorSourceExtensionContext.

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.