net.officefloor.eclipse.extension.administratorsource
Interface AdministratorSourceExtensionContext

All Known Implementing Classes:
AdministratorSourceInstance

public interface AdministratorSourceExtensionContext

Context for the AdministratorSourceExtension.

Author:
Daniel Sagenschneider

Method Summary
 org.eclipse.core.resources.IProject getProject()
          Obtains the IProject that is adding the Administrator.
 PropertyList getPropertyList()
           Obtains the PropertyList.
 void notifyPropertiesChanged()
           Notifies of a change to the PropertyList.
 void setErrorMessage(String message)
          Specifies an error message.
 void setTitle(String title)
          Specifies the title.
 

Method Detail

setTitle

void setTitle(String title)
Specifies the title.

Parameters:
title - Title.

getPropertyList

PropertyList getPropertyList()

Obtains the PropertyList. All changes to Property instances for the AdministratorSource are to be done on this PropertyList.

The PropertyList may be in any state:

  1. no value PropertyList populated from the AdministratorSourceSpecification (creating a Administrator)
  2. any changed state based on editing of the Administrator (editing Administrator)

Returns:
PropertyList.

notifyPropertiesChanged

void notifyPropertiesChanged()

Notifies of a change to the PropertyList.

This allows for to report issues in attempting to source the AdministratorType from the AdministratorSource with the PropertyList.


setErrorMessage

void setErrorMessage(String message)
Specifies an error message. Calling this after notifying of property changes allows for overriding the error message reported to the user.

Parameters:
message - Error message. null indicating no error.

getProject

org.eclipse.core.resources.IProject getProject()
Obtains the IProject that is adding the Administrator.

Returns:
IProject that is adding the Administrator.


Copyright © 2005-2013. All Rights Reserved.