Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » TCL Editor templates
TCL Editor templates [message #634969] Mon, 25 October 2010 09:42 Go to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 5
Registered: October 2010
Junior Member
I'm developing an eclipse plugin that displays all editor templates for tcl in a list in a view. But I don't know how to access the editor templates that are created in the preferences. I know that they are stored in a pref file in the workspaces metadata, but there has to be an extension point to access them. Does anybody know this extension point?

[Updated on: Thu, 19 January 2012 14:02]

Report message to a moderator

Re: TCL Editor templates [message #635440 is a reply to message #634969] Tue, 26 October 2010 19:20 Go to previous messageGo to next message
Alex Panchenko is currently offline Alex PanchenkoFriend
Messages: 342
Registered: July 2009
Senior Member
Hi,

The Tcl templates are accessible via org.eclipse.dltk.tcl.internal.ui.templates.TclTemplateAccess class.
Btw, eclipse already provides "Templates" view showing available templates from the active editor.
I've just committed support for it in DLTK, so next integration build (will be available in a few hours) should have it built-in.

If this doesn't answer your question please provide addtional details.

Regards,
Alex
Re: TCL Editor templates [message #637657 is a reply to message #634969] Mon, 08 November 2010 09:12 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 5
Registered: October 2010
Junior Member
Thanks for the reply! It works fine for me.
But I wanted to test the integration build and I think I am going to freak out... Always when I try to install the build I get the following errors:
Cannot complete the install because of a conflicting dependency.
  Software being installed: Dynamic Languages Toolkit - Core Frameworks SDK 3.0.0.v20101025-2100-77--90a46JIDxZhXz-jlz0N_xcKC (org.eclipse.dltk.core.sdk.feature.group 3.0.0.v20101025-2100-77--90a46JIDxZhXz-jlz0N_xcKC)
  Software being installed: Dynamic Languages Toolkit - TCL Development Tools 2.0.0.v20100505-1154-7M0-EC3wSaZYTsDEmBuL (org.eclipse.dltk.tcl.feature.group 2.0.0.v20100505-1154-7M0-EC3wSaZYTsDEmBuL)
  Only one of the following can be installed at once: 
    Dynamic Languages Toolkit Debug Core 1.0.0.v20090613-1432 (org.eclipse.dltk.debug 1.0.0.v20090613-1432)
    Dynamic Languages Toolkit Debug Core 2.0.0.v20101102-1808 (org.eclipse.dltk.debug 2.0.0.v20101102-1808)
    Dynamic Languages Toolkit Debug Core (Incubation) 0.95.1.v20080903-1434 (org.eclipse.dltk.debug 0.95.1.v20080903-1434)
    Dynamic Languages Toolkit Debug Core 2.0.0.v20091110-1532 (org.eclipse.dltk.debug 2.0.0.v20091110-1532)
    Dynamic Languages Toolkit Debug Core (Incubation) 0.95.0.v20080616-1622 (org.eclipse.dltk.debug 0.95.0.v20080616-1622)
    Dynamic Languages Toolkit Debug Core (Incubation) 0.9.0.v20070621 (org.eclipse.dltk.debug 0.9.0.v20070621)
  Cannot satisfy dependency:
    From: Dynamic Languages Toolkit - Core Frameworks 2.0.0.v20100518-1923-7L--EAAoOVMSMc4AWEvJ (org.eclipse.dltk.core.feature.group 2.0.0.v20100518-1923-7L--EAAoOVMSMc4AWEvJ)
    To: org.eclipse.dltk.debug [2.0.0.v20091110-1532]
  Cannot satisfy dependency:
    From: Dynamic Languages Toolkit - Core Frameworks 2.0.0.v20100518-1923-7L-0EAAoOVMSUaEAZ8w_ (org.eclipse.dltk.core.feature.group 2.0.0.v20100518-1923-7L-0EAAoOVMSUaEAZ8w_)
    To: org.eclipse.dltk.debug [2.0.0.v20091110-1532]
  Cannot satisfy dependency:
    From: Dynamic Languages Toolkit - Core Frameworks 3.0.0.v20101102-1808-7R--EB7sQeQeeQyChva3 (org.eclipse.dltk.core.feature.group 3.0.0.v20101102-1808-7R--EB7sQeQeeQyChva3)
    To: org.eclipse.dltk.debug [2.0.0.v20101102-1808]
  Cannot satisfy dependency:
    From: Dynamic Languages Toolkit - Core Frameworks SDK 3.0.0.v20101025-2100-77--90a46JIDxZhXz-jlz0N_xcKC (org.eclipse.dltk.core.sdk.feature.group 3.0.0.v20101025-2100-77--90a46JIDxZhXz-jlz0N_xcKC)
    To: org.eclipse.dltk.core.feature.group [3.0.0.v20101102-1808-7R--EB7sQeQeeQyChva3]
  Cannot satisfy dependency:
    From: Dynamic Languages Toolkit - TCL Development Tools 2.0.0.v20100505-1154-7M0-EC3wSaZYTsDEmBuL (org.eclipse.dltk.tcl.feature.group 2.0.0.v20100505-1154-7M0-EC3wSaZYTsDEmBuL)
    To: org.eclipse.dltk.core.feature.group [2.0.0,3.0.0)


I deleted my eclipse folder, downloaded the actual version, and used the update manager and the last entry of this site:

http://download.eclipse.org/technology/dltk/downloads/drops/ R3.0/I-I201011060003-201011060003/

Am I doing something wrong? I have no dltk plugin installed at the moment. When I install version 2.0 from the dltk update site and try to update with the integration build, I get the same errors...

Re: TCL Editor templates [message #638681 is a reply to message #637657] Fri, 12 November 2010 07:48 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 5
Registered: October 2010
Junior Member
Another question: Did you have to extend the tclEditor class to add support for the default TemplatesView?
Re: TCL Editor templates [message #641572 is a reply to message #638681] Fri, 26 November 2010 07:16 Go to previous messageGo to next message
Alex Panchenko is currently offline Alex PanchenkoFriend
Messages: 342
Registered: July 2009
Senior Member
Hello,

The latest uploaded build should work (just not all versions were updated from 2.0 to 3.0).

Implementation details: ScriptEditor.getAdapter() method creates the instance of org.eclipse.dltk.internal.ui.editor.ScriptTemplatesPage and returns it.

Regards,
Alex
Re: TCL Editor templates [message #646230 is a reply to message #634969] Wed, 22 December 2010 19:50 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 5
Registered: October 2010
Junior Member
Thank you very much!

By the way: Is there any way that I could participate developing the tcl plugin?
Re: TCL Editor templates [message #647049 is a reply to message #634969] Tue, 04 January 2011 10:57 Go to previous message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 5
Registered: October 2010
Junior Member
Seems it doesn't work yet... Is there a tutorial or any other info how to write patches? Then I could try to fix it...
Previous Topic:DLTK Python interpreter recognition problems
Next Topic:ruby remote debugging
Goto Forum:
  


Current Time: Sat Apr 20 00:35:39 GMT 2024

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

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

Back to the top