@API(type=EXTENDABLE,
src=PUBLIC)
public class WSEditorChangeListener
extends java.lang.Object
Constructor and Description |
---|
WSEditorChangeListener() |
Modifier and Type | Method and Description |
---|---|
boolean |
editorAboutToBeClosed(java.net.URL editorLocation)
An editor will be closed.
|
void |
editorAboutToBeOpened(java.net.URL editorLocation)
An editor will be opened.
|
boolean |
editorAboutToBeOpenedVeto(java.net.URL editorLocation)
An editor will be opened.
|
void |
editorActivated(java.net.URL editorLocation)
An editor was activated.
|
void |
editorClosed(java.net.URL editorLocation)
An editor was closed.
|
void |
editorDeactivated(java.net.URL editorLocation)
An editor was de-activated.
|
void |
editorOpened(java.net.URL editorLocation)
An editor was opened.
|
void |
editorPageChanged(java.net.URL editorLocation)
The current page for an editor has changed.
|
void |
editorRelocated(java.net.URL previousEditorLocation,
java.net.URL newEditorLocation)
An editor was relocated to a new location.
|
void |
editorSelected(java.net.URL editorLocation)
An editor was selected in the tabbed pane.
|
public boolean editorAboutToBeOpenedVeto(java.net.URL editorLocation)
false
.
If the open is not rejected then the editorAboutToBeOpened(URL)
and then editorOpened(URL)
methods will be called.
If you want to open another file instead, you must start a thread which calls the API to open the other file and then return false
.
Calling API to open another resource directly on this callback will block Oxygen.
This method is not called in the Eclipse plugin.editorLocation
- The editor's location.true
to proceed with the open, false
to reject the open of the editor.public void editorAboutToBeOpened(java.net.URL editorLocation)
editorOpened(URL)
method will be called.editorLocation
- The editor's locationpublic void editorOpened(java.net.URL editorLocation)
editorLocation
- The editor's locationpublic void editorClosed(java.net.URL editorLocation)
editorLocation
- The editor's locationpublic void editorSelected(java.net.URL editorLocation)
editorLocation
- The editor's locationpublic void editorPageChanged(java.net.URL editorLocation)
editorLocation
- The editor's locationpublic void editorActivated(java.net.URL editorLocation)
editorLocation
- The editor's locationpublic void editorDeactivated(java.net.URL editorLocation)
editorLocation
- The editor's locationpublic boolean editorAboutToBeClosed(java.net.URL editorLocation)
false
.editorLocation
- The editor's locationtrue
to proceed with the close, false
to reject the close of the editor.
This method is not called in the Eclipse plugin.public void editorRelocated(java.net.URL previousEditorLocation, java.net.URL newEditorLocation)
previousEditorLocation
- The previous editor's locationnewEditorLocation
- The current editor's location
In the standalone Oxygen version the listener is called before showing the "Save As" dialog to the user.
This method is not called in the Eclipse plugin.© Copyright SyncRO Soft SRL 2002 - 2014. All rights reserved.