Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Regarding TCL Editor
Regarding TCL Editor [message #27955] Thu, 10 July 2008 08:46 Go to next message
Shiva Selvadurai is currently offline Shiva SelvaduraiFriend
Messages: 25
Registered: July 2009
Location: Bangalore
Junior Member
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 Go to previous message
Andrei Sobolev is currently offline Andrei SobolevFriend
Messages: 72
Registered: July 2009
Member
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
>
Previous Topic:ASTListNode.printNode(CorePrinter)
Next Topic:[BUILD] R1.0
Goto Forum:
  


Current Time: Fri Apr 12 18:59:18 GMT 2024

Powered by FUDForum. Page generated in 0.04301 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top