Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [Dltk-dev] ToggleCommentAction usage

Hi Alex!

Where is created the ToggleCommentAction?

The line 1068 on ScriptEditor always return null
>> Line 1068:        action = "" //$NON-NLS-1$

The method createActions doesn't create it. DLTK-0.95

Thanks!


On Thu, Sep 25, 2008 at 1:24 PM, Alex Panchenko <alex@xxxxxxxxx> wrote:
Hi Edgar,

ToggleCommentAction is already created in ScriptEditor, the comment sequence is specified by getCommentPrefix() method of the ScriptSourceViewerConfiguration class. If your comment sequence is different this method should be overridden.

Regards,
Alex

----- Original Message -----
From: "Edgar Espina" <espina.edgar@xxxxxxxxx>
To: "DLTK Developer Discussions" <dltk-dev@xxxxxxxxxxx>
Sent: Thursday, September 25, 2008 10:50:44 PM GMT +06:00 Almaty, Novosibirsk
Subject: [Dltk-dev] ToggleCommentAction usage



Hi all,
How can I add comment action to my editor?
Can I use org.eclipse.dltk.internal.ui.editor.ToggleCommentAction?

thanks!
--
edgar

_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev
_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev



--
edgar

Back to the top