|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ltk.core.refactoring.history.RefactoringHistoryEvent
Event object to communicate refactoring history notifications. These include the addition and removal of refactoring descriptors to the global refactoring history index.
Refactoring history listeners must be prepared to receive notifications from a background thread. Any UI access occurring inside the implementation must be properly synchronized using the techniques specified by the client's widget library.
IRefactoringHistoryListener
,
IRefactoringHistoryService
Field Summary | |
---|---|
static int |
ADDED
Event type indicating that a refactoring descriptor has been added to its associated history (value 4) |
static int |
DELETED
Event type indicating that a refactoring descriptor has been deleted from its associated history (value 3) |
static int |
POPPED
Event type indicating that a refactoring descriptor has been popped from the history (value 2) |
static int |
PUSHED
Event type indicating that a refactoring descriptor has been pushed to the history (value 1) |
Constructor Summary | |
---|---|
RefactoringHistoryEvent(IRefactoringHistoryService service,
int type,
RefactoringDescriptorProxy proxy)
Creates a new refactoring history event. |
Method Summary | |
---|---|
RefactoringDescriptorProxy |
getDescriptor()
Returns the refactoring descriptor proxy. |
int |
getEventType()
Returns the event type. |
IRefactoringHistoryService |
getHistoryService()
Returns the refactoring history service |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ADDED
public static final int DELETED
public static final int POPPED
public static final int PUSHED
Constructor Detail |
public RefactoringHistoryEvent(IRefactoringHistoryService service, int type, RefactoringDescriptorProxy proxy)
service
- the refactoring history servicetype
- the event typeproxy
- the refactoring descriptor proxyMethod Detail |
public RefactoringDescriptorProxy getDescriptor()
Depending on the event, this proxy may not exist and cannot be resolved
to a refactoring descriptor. Clients should also be prepared to receive
notifications for unknown refactorings, which are discriminated by their
special id RefactoringDescriptor.ID_UNKNOWN
;
public int getEventType()
public IRefactoringHistoryService getHistoryService()
|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.