[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [Dltk-dev] How can I integrate DLTK with myself RCP ?
|
Hi Wan,
If script are located in workspace please use following code:
IFile file =
ResourcesPlugin.getDefault().getWorkspace().getRoot().getFileForLocation("/myproc/myfile.tcl");
IWorkbenchPage activePage =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
IDE.openEditor(activePage, file, true);
If script are external please use following code:
FileStoreEditorInput input = new
FileStoreEditorInput(EFS.getStore("file:///temp/file.tcl")
IWorkbenchPage activePage =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
IDE.openEditor(activePage, input, true);
Best regards,
Andrei Sobolev.
> Hi:
>
> When select to open Tcl script in my RCP, I want DLTK-TCL-Editor
> appeared?
>
> How to implement?
>
> ------------------------------------------------------------------------
> Wim Wan
> wwan@xxxxxxxxxxxx <mailto:wwan@xxxxxxxxxxxx>
> Chengdu Jiehua Technologies Co.,LTD.
> Tel:028-85332200-1073
> 2008-03-10 17:01:33
> ------------------------------------------------------------------------
>
> _______________________________________________
> dltk-dev mailing list
> dltk-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/dltk-dev
>