net.officefloor.eclipse.extension.officesource
Interface OfficeSourceExtension<S extends OfficeSource>

All Known Implementing Classes:
OfficeModelOfficeSourceExtension

public interface OfficeSourceExtension<S extends OfficeSource>

Interface for extension to provide enriched OfficeSource usage.

Author:
Daniel Sagenschneider
See Also:
ExtensionClasspathProvider, ExtensionOpener

Field Summary
static String EXTENSION_ID
          Extension ID.
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite page, OfficeSourceExtensionContext context)
          Loads the input page with the necessary Control instances to populate the PropertyList.
 Class<S> getOfficeSourceClass()
          Obtains the class of the OfficeSource being enriched in its usage.
 String getOfficeSourceLabel()
           Obtains the label for the OfficeSource.
 

Field Detail

EXTENSION_ID

static final String EXTENSION_ID
Extension ID.

Method Detail

getOfficeSourceClass

Class<S> getOfficeSourceClass()
Obtains the class of the OfficeSource being enriched in its usage.

Returns:
Class of the OfficeSource being enriched in its usage.

getOfficeSourceLabel

String getOfficeSourceLabel()

Obtains the label for the OfficeSource.

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

Returns:
Label for the OfficeSource.

createControl

void createControl(org.eclipse.swt.widgets.Composite page,
                   OfficeSourceExtensionContext context)
Loads the input page with the necessary Control instances to populate the PropertyList. Also allows notifying of changes to Property instances via the OfficeSourceExtensionContext.

Parameters:
page - Page to be setup for populating the PropertyList.
context - OfficeSourceExtensionContext.


Copyright © 2005-2013. All Rights Reserved.