net.officefloor.eclipse.extension.managedobjectsource
Interface ManagedObjectSourceExtensionContext

All Known Implementing Classes:
ManagedObjectSourceInstance

public interface ManagedObjectSourceExtensionContext

Context for the ManagedObjectSourceExtension.

Author:
Daniel Sagenschneider

Method Summary
 ClassLoader getClassLoader()
          Obtains the ClassLoader for adding the ManagedObjectSource.
 org.eclipse.core.resources.IProject getProject()
          Obtains the IProject that is adding the ManagedObjectSource.
 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 ManagedObjectSource are to be done on this PropertyList.

The PropertyList may be in any state:

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

Returns:
PropertyList.

notifyPropertiesChanged

void notifyPropertiesChanged()

Notifies of a change to the PropertyList.

This allows for to report issues in attempting to source the ManagedObjectType from the ManagedObjectSource 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 ManagedObjectSource.

Returns:
IProject that is adding the ManagedObjectSource.

getClassLoader

ClassLoader getClassLoader()
Obtains the ClassLoader for adding the ManagedObjectSource.

Returns:
ClassLoader for adding the ManagedObjectSource.


Copyright © 2005-2013. All Rights Reserved.