|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.ui.refactoring.ui.RenameLinkedMode.FocusEditingSupport
protected class RenameLinkedMode.FocusEditingSupport
Constructor Summary | |
---|---|
protected |
RenameLinkedMode.FocusEditingSupport()
|
Method Summary | |
---|---|
boolean |
isOriginator(org.eclipse.jface.text.DocumentEvent event,
org.eclipse.jface.text.IRegion subjectRegion)
Returns true if the receiver is the originator of a
DocumentEvent and if that event is related
to subjectRegion . |
boolean |
ownsFocusShell()
Returns true if the receiver is showing a shell which has
focus, false if it does not have focus or the helper has
no shell. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected RenameLinkedMode.FocusEditingSupport()
Method Detail |
---|
public boolean ownsFocusShell()
org.eclipse.jface.text.IEditingSupport
true
if the receiver is showing a shell which has
focus, false
if it does not have focus or the helper has
no shell.
ownsFocusShell
in interface org.eclipse.jface.text.IEditingSupport
true
if the support's shell has focus,
false
otherwisepublic boolean isOriginator(org.eclipse.jface.text.DocumentEvent event, org.eclipse.jface.text.IRegion subjectRegion)
org.eclipse.jface.text.IEditingSupport
true
if the receiver is the originator of a
DocumentEvent
and if that event
is related
to subjectRegion
.
The relationship between event
and
subjectRegion
is not always obvious. Often, the main
editing area being monitored by the caller will be at
subjectRegion
, when the receiver modifies the underlying
document at a different location without wanting to interrupt the normal
typing flow of the user.
An example would be an editor that automatically increments the section number of the next section when the user typed in a new section title. In this example, the subject region is the current typing location, while the increment results in a document change further down in the text.
isOriginator
in interface org.eclipse.jface.text.IEditingSupport
event
- the DocumentEvent
in questionsubjectRegion
- the region that the caller is interested in
true
if event
was triggered by the
receiver and relates to subjectRegion
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |