|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swtbot.eclipse.finder.widgets.SWTBotWorkbenchPart<IEditorReference>
org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor
public class SWTBotEditor
This represents an Eclipse workbench editor part.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.swtbot.eclipse.finder.widgets.SWTBotWorkbenchPart |
|---|
bot, log, partReference |
| Constructor Summary | |
|---|---|
SWTBotEditor(IEditorReference editorReference,
SWTWorkbenchBot bot)
Constructs an instance for the given editorReference. |
|
SWTBotEditor(IEditorReference editorReference,
SWTWorkbenchBot bot,
SelfDescribing description)
Constructs an instance for the given editorReference. |
|
| Method Summary | |
|---|---|
void |
close()
Close the partReference. |
boolean |
isActive()
|
boolean |
isDirty()
Returns true if the editor is dirty. |
void |
save()
Save the editor. |
void |
saveAndClose()
Save the editor and close it. |
void |
setFocus()
Sets focus on the current part. |
void |
show()
Shows the editor if it is visible. |
SWTBotEclipseEditor |
toTextEditor()
|
| Methods inherited from class org.eclipse.swtbot.eclipse.finder.widgets.SWTBotWorkbenchPart |
|---|
assertActive, bot, findWidget, findWidgets, getReference, getTitle, getToolbarButtons, getWidget, toolbarButton, toolbarDropDownButton, toolbarPushButton, toolbarRadioButton, toolbarToggleButton |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SWTBotEditor(IEditorReference editorReference,
SWTWorkbenchBot bot)
throws WidgetNotFoundException
editorReference - the editor reference.bot - the instance of SWTWorkbenchBot which will be used to drive operations on behalf of this
object.
WidgetNotFoundException - if the widget is null or widget has been disposed.
public SWTBotEditor(IEditorReference editorReference,
SWTWorkbenchBot bot,
SelfDescribing description)
editorReference - the part reference.bot - the helper bot.description - the description of the editor part.| Method Detail |
|---|
public boolean isActive()
isActive in class SWTBotWorkbenchPart<IEditorReference>true if the part is currently active.public void setFocus()
SWTBotWorkbenchPart
setFocus in class SWTBotWorkbenchPart<IEditorReference>public void saveAndClose()
public void close()
SWTBotWorkbenchPart
close in class SWTBotWorkbenchPart<IEditorReference>public void save()
public void show()
show in class SWTBotWorkbenchPart<IEditorReference>public boolean isDirty()
public SWTBotEclipseEditor toTextEditor()
WidgetNotFoundException - if this is not a text editor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||