Mercurial > hg > RemoteEditor > Eclipse
changeset 181:54c438d246a4
*** empty log message ***
author | pin |
---|---|
date | Sun, 31 Aug 2008 11:20:58 +0900 |
parents | e9d711e16633 |
children | f8eab56045c5 |
files | src/remoteeditor/action/RemoteEditorAction.java |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/remoteeditor/action/RemoteEditorAction.java Sat Aug 30 22:21:26 2008 +0900 +++ b/src/remoteeditor/action/RemoteEditorAction.java Sun Aug 31 11:20:58 2008 +0900 @@ -33,6 +33,8 @@ import org.eclipse.ui.PartInitException; import org.eclipse.ui.PlatformUI; import org.eclipse.ui.internal.editors.text.UntitledTextFileWizard; +import org.eclipse.ui.texteditor.ITextEditor; +import org.eclipse.ui.views.IViewDescriptor; //import org.eclipse.ui.internal.Workbench; //import org.eclipse.ui.internal.WorkbenchPage; //import org.eclipse.ui.views.IViewDescriptor; @@ -67,7 +69,7 @@ IEditorPart editorPart = workbenchPage.getActiveEditor(); //System.out.println(editorPart.getEditorInput().toString()); IEditorInput editorinput = editorPart.getEditorInput(); - + workbenchPage.closeEditor(editorPart, true); //エディタの外からファイルバッファへアクセスする方法 // IPath path = new Path(editorinput.getName()); @@ -80,7 +82,6 @@ // ITextFileBuffer buffer = manager.getTextFileBuffer(path); // IDocument document = buffer.getDocument(); - workbenchPage.closeEditor(editorPart, true); try { editorPart = workbenchPage.openEditor(editorinput, "remoteeditor.editors.RemoteEditor"); } catch (PartInitException e) {