|
Faceted Project Framework Version 1.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFacetedProjectFrameworkListener
This interface is implemented by those who wish to receive events when a faceted project is
changed. There are three ways to register a listener: (a) using methods on IFacetedProject
, (b) using methods on FacetedProjectFramework
, or (c) using the provided
extension point. Method (a) catches only events for a specific faceted project while methods
(b) and (c) catch events for all faceted projects in the workspace.
Method Summary | |
---|---|
void |
handleEvent(IFacetedProjectFrameworkEvent event)
This method is called by the framework to notify the listener that an event has occurred. |
Method Detail |
---|
void handleEvent(IFacetedProjectFrameworkEvent event)
All events except for PROJECT_MODIFIED
of this type are triggered in the
lock context of the operation that caused the original change. This guarantees that the
project has not changed further from the state it was in after the change was complete,
however the listener is unable to call any modifier methods on the IFacetedProject
interface. To do so, the listener must spin off a thread.
It is highly advised that any listener that performs non-critical or long-running tasks that can be performed in the background (such as updating UI) do so asynchronously by spinning off a thread, scheduling a job, etc. This allows the original modification to complete faster resulting in better perceived responsiveness.
event
- the object describing the event
|
Faceted Project Framework Version 1.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |