yliu at inria.fr wrote:
> hello
> Would you please tell me how can I add a new action(not definied before)in
> the
> user's interface?
>
> Now i've met with lots of difficulties.
>
> First,I've built a new class in Java in order to display a dialog box with two
> boutons(I named it as "About1Action.class".And then I've changed it in the
> directory "xxe_app/com/xmlmind/xmleditapp/kit/part"
>
> After that I've added the sentences in the file "default.xxe-gui" in order to
> add a new menu that is related to a new action
>
> <!-- Commit menu ========================================================= -->
> <action name="about1Action" label="_Commit">
> <class>com.xmlmind.xmleditapp.kit.part.About1Action</class>
> </action>
>
> <menu name="commitMenu" label="_Commit"
> helpId="commitMenu">
> <action name="about1Action" />
> </menu>
>
> But after that I cannot start my XMLmindXMLEditor .I think there must be somme
> mistakes in the sentences I've added or I must define the action before but I
> am not sure what I should do exactly.
>
>
> There is another problem,that is after using certain softwares to recompile
> the
> files of class to java,I cannot compile the files java any more.It is always
> said that " class not found exception".
>
--> I'm not allowed to answer questions related to programming with the
XXE API in this mailing list. This kind of support is reserved to our
customers.
--> However in your case, the answer is obvious (and clearly indicates
that you are a beginner in Java[tm] programming -- no offense intended:
everybody is a beginner in something at sometime):
If you want class About1Action to be part of package
"com.xmlmind.xmleditapp.kit.part", it's source code must start with:
---
package com.xmlmind.xmleditapp.kit.part;
---
Please, no messing with moving .class files at some places.
Now doing this is a very bad idea because
"com.xmlmind.xmleditapp.kit.part" belongs to XMLmind.
Therefore please add something like:
---
package fr.inria.xxe;
---
at the top of your About1Action.java. Compile it, jar it, etc.
Then declare it as follow:
---
<action name="about1Action" label="_Commit">
<class>fr.inria.xxe.About1Action</class>
</action>
---
--> I would not recommend a beginner in Java[tm] programming to attempt
to write custom parts for XXE. There are many projects far easier and
far more rewarding.