|
Re: How to add validation button on my own EMF project [message #429189 is a reply to message #429166] |
Mon, 13 April 2009 11:49 |
|
--=-44gg+qrnIdSu0B/LBJlX
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hi, Haifeng,
That example puts a validation menu action in the EXTLibrary editor's
context menu. See the plugin.xml file in the example plug-in to see how
that is done. You can do it in much the same way in your own editor.
By "button" do you mean specifically a toolbar button? I suggest
reading the "Platform Plug-in Developer Guide / Programmer's Guide"
documentation, the "Plugging into the workbench" section for more
information about adding actions to menus and toolbars:
http://help.eclipse.org/ganymede/index.jsp
It's really quite thorough. There are also articles that may help:
http://www.eclipse.org/articles/
Contributing actions to context menus and toolbars isn't really an EMF
question ...
Cheers,
Christian
On Fri, 2009-04-10 at 20:53 +0000, haifeng.lin wrote:
> To whom it may concenr,
>
> I develop my own EMF project. Now I want to modify the plugin.xml in
> org.eclipse.emf.validation.examples.general, so when I run the "eclplise
> Application", I can have "validation" button.
>
> Best,
> Haifeng
>
--=-44gg+qrnIdSu0B/LBJlX
Content-Type: text/html; charset="utf-8"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.1.1">
</HEAD>
<BODY>
Hi, Haifeng,<BR>
<BR>
That example puts a validation menu action in the EXTLibrary editor's context menu. See the plugin.xml file in the example plug-in to see how that is done. You can do it in much the same way in your own editor.<BR>
<BR>
By "button" do you mean specifically a toolbar button? I suggest reading the "Platform Plug-in Developer Guide / Programmer's Guide" documentation, the "Plugging into the workbench" section for more information about adding actions to menus and toolbars:<BR>
<BR>
<A HREF="http://help.eclipse.org/ganymede/index.jsp">http://help.eclipse.org/ganymede/index.jsp</A><BR>
<BR>
It's really quite thorough. There are also articles that may help:<BR>
<BR>
http://www.eclipse.org/articles/<BR>
<BR>
Contributing actions to context menus and toolbars isn't really an EMF question ...<BR>
<BR>
Cheers,<BR>
<BR>
Christian<BR>
<BR>
On Fri, 2009-04-10 at 20:53 +0000, haifeng.lin wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
To whom it may concenr,
I develop my own EMF project. Now I want to modify the plugin.xml in
org.eclipse.emf.validation.examples.general, so when I run the "eclplise
Application", I can have "validation" button.
Best,
Haifeng
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>
--=-44gg+qrnIdSu0B/LBJlX--
|
|
|
Powered by
FUDForum. Page generated in 0.02835 seconds