net.officefloor.eclipse.extension.officesource.office
Class OfficeModelOfficeSourceExtension

java.lang.Object
  extended by net.officefloor.eclipse.extension.officesource.office.OfficeModelOfficeSourceExtension
All Implemented Interfaces:
OfficeSourceExtension<OfficeModelOfficeSource>

public class OfficeModelOfficeSourceExtension
extends Object
implements OfficeSourceExtension<OfficeModelOfficeSource>

OfficeSourceExtension for the OfficeModel.

Author:
Daniel Sagenschneider

Field Summary
 
Fields inherited from interface net.officefloor.eclipse.extension.officesource.OfficeSourceExtension
EXTENSION_ID
 
Constructor Summary
OfficeModelOfficeSourceExtension()
           
 
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<OfficeModelOfficeSource> getOfficeSourceClass()
          Obtains the class of the OfficeSource being enriched in its usage.
 String getOfficeSourceLabel()
           Obtains the label for the OfficeSource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfficeModelOfficeSourceExtension

public OfficeModelOfficeSourceExtension()
Method Detail

getOfficeSourceClass

public Class<OfficeModelOfficeSource> getOfficeSourceClass()
Description copied from interface: OfficeSourceExtension
Obtains the class of the OfficeSource being enriched in its usage.

Specified by:
getOfficeSourceClass in interface OfficeSourceExtension<OfficeModelOfficeSource>
Returns:
Class of the OfficeSource being enriched in its usage.

getOfficeSourceLabel

public String getOfficeSourceLabel()
Description copied from interface: OfficeSourceExtension

Obtains the label for the OfficeSource.

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

Specified by:
getOfficeSourceLabel in interface OfficeSourceExtension<OfficeModelOfficeSource>
Returns:
Label for the OfficeSource.

createControl

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

Specified by:
createControl in interface OfficeSourceExtension<OfficeModelOfficeSource>
Parameters:
page - Page to be setup for populating the PropertyList.
context - OfficeSourceExtensionContext.


Copyright © 2005-2013. All Rights Reserved.