@Test public void shouldRevertToSaved() { defaultEditorAdapter.doRevertToSaved(); verify(textEditor).doRevertToSaved(); }
@Override public void doRevertToSaved() { this.textEditor.doRevertToSaved(); }
DefaultEditorAdapter extends Composite implements EditorAdapter, FileEventHandler, RequiresResize, UndoableEditor { @Override public void doRevertToSaved() { this.textEditor.doRevertToSaved(); } }
DefaultEditorAdapter extends Composite implements EditorAdapter, FileEventHandler, RequiresResize, UndoableEditor { @Override public void doRevertToSaved() { this.textEditor.doRevertToSaved(); } DefaultEditorAdapter(EventBus eventBus, final WorkspaceAgent workspaceAgent); }
DefaultEditorAdapter extends Composite implements EditorAdapter, FileEventHandler, RequiresResize, UndoableEditor { @Override public void doRevertToSaved() { this.textEditor.doRevertToSaved(); } DefaultEditorAdapter(EventBus eventBus, final WorkspaceAgent workspaceAgent); @Override void close(final boolean save); @Override boolean isEditable(); @Override void doRevertToSaved(); @Override EmbeddedDocument getDocument(); @Override String getContentType(); @Override TextRange getSelectedTextRange(); @Override LinearRange getSelectedLinearRange(); @Override TextPosition getCursorPosition(); @Override int getCursorOffset(); @Override void showMessage(final String message); @Override void init(final EditorInput input); @Override EditorInput getEditorInput(); @Override void doSave(); @Override void doSave(final AsyncCallback<EditorInput> callback); @Override void doSaveAs(); @Override void onFileChanged(); @Override boolean isDirty(); @Override void addCloseHandler(final EditorPartCloseHandler closeHandler); @Override void activate(); @Override String getTitle(); @Override ImageResource getTitleImage(); @Override SVGResource getTitleSVGImage(); @Override SVGImage decorateIcon(final SVGImage svgImage); @Override IsWidget getTitleWidget(); @Override String getTitleToolTip(); @Override int getSize(); @Override void onOpen(); @Override void onClose(final AsyncCallback<Void> callback); @Override Selection< ? > getSelection(); @Override void addPropertyListener(final PropertyListener listener); @Override void removePropertyListener(final PropertyListener listener); @Override void go(final AcceptsOneWidget container); @Override void initialize(final TextEditorConfiguration configuration, final NotificationManager notificationManager); @Override TextEditorConfiguration getConfiguration(); @Override ConfigurableTextEditor getTextEditor(); @Override void setPresenter(final NestablePresenter nestedPresenter); void setTextEditor(final ConfigurableTextEditor configurable); @Override void onResize(); @Override void addKeybinding(final Keybinding keybinding); @Override HandlesUndoRedo getUndoRedo(); @Override void onFileOperation(FileEvent event); }
DefaultEditorAdapter extends Composite implements EditorAdapter, FileEventHandler, RequiresResize, UndoableEditor { @Override public void doRevertToSaved() { this.textEditor.doRevertToSaved(); } DefaultEditorAdapter(EventBus eventBus, final WorkspaceAgent workspaceAgent); @Override void close(final boolean save); @Override boolean isEditable(); @Override void doRevertToSaved(); @Override EmbeddedDocument getDocument(); @Override String getContentType(); @Override TextRange getSelectedTextRange(); @Override LinearRange getSelectedLinearRange(); @Override TextPosition getCursorPosition(); @Override int getCursorOffset(); @Override void showMessage(final String message); @Override void init(final EditorInput input); @Override EditorInput getEditorInput(); @Override void doSave(); @Override void doSave(final AsyncCallback<EditorInput> callback); @Override void doSaveAs(); @Override void onFileChanged(); @Override boolean isDirty(); @Override void addCloseHandler(final EditorPartCloseHandler closeHandler); @Override void activate(); @Override String getTitle(); @Override ImageResource getTitleImage(); @Override SVGResource getTitleSVGImage(); @Override SVGImage decorateIcon(final SVGImage svgImage); @Override IsWidget getTitleWidget(); @Override String getTitleToolTip(); @Override int getSize(); @Override void onOpen(); @Override void onClose(final AsyncCallback<Void> callback); @Override Selection< ? > getSelection(); @Override void addPropertyListener(final PropertyListener listener); @Override void removePropertyListener(final PropertyListener listener); @Override void go(final AcceptsOneWidget container); @Override void initialize(final TextEditorConfiguration configuration, final NotificationManager notificationManager); @Override TextEditorConfiguration getConfiguration(); @Override ConfigurableTextEditor getTextEditor(); @Override void setPresenter(final NestablePresenter nestedPresenter); void setTextEditor(final ConfigurableTextEditor configurable); @Override void onResize(); @Override void addKeybinding(final Keybinding keybinding); @Override HandlesUndoRedo getUndoRedo(); @Override void onFileOperation(FileEvent event);  }