Regarding TCL Editor [message #27955] |
Thu, 10 July 2008 08:46  |
Eclipse User |
|
|
|
Hi All,
I need to have use the editor of TCL alone in my application.Is it
possible to invoke the editor alone when I install the DLTK with the TCL
part in my eclipse.
-Shiva.S
|
|
|
Re: Regarding TCL Editor [message #28910 is a reply to message #27955] |
Wed, 16 July 2008 03:13  |
Eclipse User |
|
|
|
Hi Shiva,
Yes it is possibly.
You could use following code to do it.
Code:
import org.eclipse.core.resources.IFile;
import org.eclipse.dltk.core.DLTKCore;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IEditorSite;
import org.eclipse.ui.IFileEditorInput;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.part.FileEditorInput;
....
IFile file = ...;
FileEditorInput editorInput = new FileEditorInput((IFile) input);
IWorkbenchPage p = DLTKUIPlugin.getActivePage();
if (p != null) {
IEditorPart editorPart = p.openEditor(editorInput, "org.eclipse.dltk.tcl.ui.editor.TclEditor", true);
}
Best regards,
Andrei Sobolev.
> Hi All,
>
> I need to have use the editor of TCL alone in my application.Is it
> possible to invoke the editor alone when I install the DLTK with the TCL
> part in my eclipse.
>
> -Shiva.S
>
|
|
|
Powered by
FUDForum. Page generated in 0.04029 seconds