public final class RefactoringHistoryEvent extends Object
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.
Note: this class is not intended to be instantiated by clients.
IRefactoringHistoryListener,
IRefactoringHistoryService| Modifier and Type | Field and Description |
|---|---|
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 stack (value 2)
|
static int |
PUSHED
Event type indicating that a refactoring descriptor has been pushed to
the history stack (value 1)
|
| Constructor and Description |
|---|
RefactoringHistoryEvent(IRefactoringHistoryService service,
int type,
RefactoringDescriptorProxy proxy)
Creates a new refactoring history event.
|
| Modifier and Type | Method and Description |
|---|---|
RefactoringDescriptorProxy |
getDescriptor()
Returns the refactoring descriptor proxy.
|
int |
getEventType()
Returns the event type.
|
IRefactoringHistoryService |
getHistoryService()
Returns the refactoring history service.
|
public static final int ADDED
public static final int DELETED
public static final int POPPED
public static final int PUSHED
public RefactoringHistoryEvent(IRefactoringHistoryService service, int type, RefactoringDescriptorProxy proxy)
service - the refactoring history servicetype - the event typeproxy - the refactoring descriptor proxypublic RefactoringDescriptorProxy getDescriptor()
Depending on the event, this proxy may refer to an inexisting refactoring
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()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.