| 
| Help with my version of flowEditor [message #165120] | Fri, 21 January 2005 16:23  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: alan.battersby.ntlworld.com 
 I am creating a project based on the flow example ( I thought that a
 simple icon based programming language for beginners was interesting) so
 to learn more I created a plugin project that was a copy of the
 flowEditor example but in my own package
 (ntu.comp.programming.introduction).
 
 Within this the layout is exactly as flowEditor except that I prefixed
 the actions,dnd,model,ui package classes with ProgrammingIntroduction so
 for example class ProgrammingIntroductionActivity in
 ntu.comp.programming.introduction etc.
 
 I have created a features project and a site update project.
 Everything compiles and builds ok and I can successfully update a test
 version of eclipse 3.1 with my plugin.
 
 However when I try to create an example or open a file in a view I get
 an error message that my plugin was unable to load the required class.
 For example was unable to load class
 ntu.comp.programming.introduction.ui.ProgrammingIntroduction CreationWizard
 This is also the case when I try to run the plugin in the runtime workbench.
 
 I have made an beginners error somewhere but dont know where. Can anyone
 help? I inspected the jar file in the plugin area and the classes appear
 to be there.
 
 Plugin.xml is
 
 <?xml version="1.0" encoding="UTF-8"?>
 <?eclipse version="3.0"?>
 <plugin
 id="ntu.comp.programming.introduction"
 name="Introduction Plug-in"
 version="1.0.0"
 provider-name="Alan Battersby"
 class="ntu.comp.programming.introduction.IntroductionPlugin ">
 
 <runtime>
 <library name="programmingIntroduction.jar">
 <export name="*"/>
 </library>
 </runtime>
 
 <requires>
 <import plugin="org.eclipse.ui"/>
 <import plugin="org.eclipse.ui.views"/>
 <import plugin="org.eclipse.core.runtime"/>
 <import plugin="org.eclipse.core.resources"/>
 <import plugin="org.eclipse.core.runtime.compatibility"/>
 <import plugin="org.eclipse.gef"/>
 <import plugin="org.eclipse.ui.ide"/>
 </requires>
 
 <extension
 point="org.eclipse.ui.editors">
 <editor
 default="true"
 name="Programming Introduction"
 extensions="prog"
 icon="prog.gif"
 
 class=" ntu.comp.programming.introduction.ui.ProgrammingIntroduction Editor "
 
 contributorClass=" ntu.comp.programming.introduction.actions.ProgrammingIntrodu ctionActionBarContributor "
 id="Introductory Programming Editor">
 </editor>
 </extension>
 <extension
 point="org.eclipse.ui.newWizards">
 <category
 name="Programming Introduction"
 parentCategory="org.eclipse.ui.Examples"
 id="org.eclipse.gef.examples">
 </category>
 <wizard
 name="Program Diagram"
 icon="prog.gif"
 category="org.eclipse.ui.Examples/org.eclipse.gef.examples"
 
 class=" ntu.comp.programming.introduction.ui.ProgrammingIntroduction CreationWizard "
 id="ntu.comp.programming.introduction.wizard.new.file">
 <selection
 class="org.eclipse.core.resources.IResource">
 </selection>
 </wizard>
 </extension>
 
 </plugin>
 |  |  |  | 
| 
| Re: Help with my version of flowEditor [message #165152 is a reply to message #165120] | Fri, 21 January 2005 17:33   |  | 
| Eclipse User  |  |  |  |  | Was there a stack trace in the error log? 
 That you're using a jar file tells me you're not setting up the project
 right.  There are a number of things that could have gone wrong.  I'm not an
 expert on this subject, but here's what you should try to setup your
 plug-in.
 
 1) Using Import external plug-ins and fragments dialog, import the flow
 examples plug-in in your workbench with source folder (no linked content).
 2) Make the necessary changes to the project (renaming the project, classes,
 packages, plug-in, updating plug-in.xml etc.).
 3) Launch the runtime workbench.  The runtime workbench should have both
 your plug-in (from the workspace) as well as the flow example plugin (which
 is still in the plug-ins directory of the eclipse installation).
 
 "Alan Battersby" <alan.battersby@ntlworld.com> wrote in message
 news:csrrsv$79t$1@www.eclipse.org...
 > I am creating a project based on the flow example ( I thought that a
 > simple icon based programming language for beginners was interesting) so
 > to learn more I created a plugin project that was a copy of the
 > flowEditor example but in my own package
 > (ntu.comp.programming.introduction).
 >
 > Within this the layout is exactly as flowEditor except that I prefixed
 > the actions,dnd,model,ui package classes with ProgrammingIntroduction so
 > for example class ProgrammingIntroductionActivity in
 > ntu.comp.programming.introduction etc.
 >
 > I have created a features project and a site update project.
 > Everything compiles and builds ok and I can successfully update a test
 > version of eclipse 3.1 with my plugin.
 >
 > However when I try to create an example or open a file in a view I get
 > an error message that my plugin was unable to load the required class.
 > For example was unable to load class
 >  ntu.comp.programming.introduction.ui.ProgrammingIntroduction CreationWizard
 > This is also the case when I try to run the plugin in the runtime
 workbench.
 >
 > I have made an beginners error somewhere but dont know where. Can anyone
 > help? I inspected the jar file in the plugin area and the classes appear
 > to be there.
 >
 > Plugin.xml is
 >
 > <?xml version="1.0" encoding="UTF-8"?>
 > <?eclipse version="3.0"?>
 > <plugin
 >     id="ntu.comp.programming.introduction"
 >     name="Introduction Plug-in"
 >     version="1.0.0"
 >     provider-name="Alan Battersby"
 >     class="ntu.comp.programming.introduction.IntroductionPlugin ">
 >
 >     <runtime>
 >        <library name="programmingIntroduction.jar">
 >           <export name="*"/>
 >        </library>
 >     </runtime>
 >
 >     <requires>
 >        <import plugin="org.eclipse.ui"/>
 >        <import plugin="org.eclipse.ui.views"/>
 >        <import plugin="org.eclipse.core.runtime"/>
 >        <import plugin="org.eclipse.core.resources"/>
 >        <import plugin="org.eclipse.core.runtime.compatibility"/>
 >        <import plugin="org.eclipse.gef"/>
 >        <import plugin="org.eclipse.ui.ide"/>
 >     </requires>
 >
 >     <extension
 >           point="org.eclipse.ui.editors">
 >        <editor
 >              default="true"
 >              name="Programming Introduction"
 >              extensions="prog"
 >              icon="prog.gif"
 >
 > class=" ntu.comp.programming.introduction.ui.ProgrammingIntroduction Editor "
 >
 >
 contributorClass="ntu.comp.programming.introduction.actions.ProgrammingIntro
 ductionActionBarContributor"
 >              id="Introductory Programming Editor">
 >        </editor>
 >     </extension>
 >     <extension
 >           point="org.eclipse.ui.newWizards">
 >        <category
 >              name="Programming Introduction"
 >              parentCategory="org.eclipse.ui.Examples"
 >              id="org.eclipse.gef.examples">
 >        </category>
 >        <wizard
 >              name="Program Diagram"
 >              icon="prog.gif"
 >              category="org.eclipse.ui.Examples/org.eclipse.gef.examples"
 >
 >
 class=" ntu.comp.programming.introduction.ui.ProgrammingIntroduction CreationW
 izard"
 >              id="ntu.comp.programming.introduction.wizard.new.file">
 >           <selection
 >                 class="org.eclipse.core.resources.IResource">
 >           </selection>
 >        </wizard>
 >     </extension>
 >
 > </plugin>
 >
 >
 |  |  |  | 
|  | 
| 
| Re: Help with my version of flowEditor [message #165224 is a reply to message #165160] | Sat, 22 January 2005 17:05  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: alan.battersby.ntlworld.com 
 Pratik,
 Thanks for the advice. I dont know what was wrong with the code so I
 made a copy of the flow example and re-named the packages. That works ok.
 
 Alan
 
 Pratik Shah wrote:
 > Alternatively, you might want to try using the export deployable plug-ins
 > and fragments dialog to export your plug-in, if you had done it manually
 > before.
 >
 > "Alan Battersby" <alan.battersby@ntlworld.com> wrote in message
 > news:csrrsv$79t$1@www.eclipse.org...
 >
 >>I am creating a project based on the flow example ( I thought that a
 >>simple icon based programming language for beginners was interesting) so
 >>to learn more I created a plugin project that was a copy of the
 >>flowEditor example but in my own package
 >>(ntu.comp.programming.introduction).
 >>
 >>Within this the layout is exactly as flowEditor except that I prefixed
 >>the actions,dnd,model,ui package classes with ProgrammingIntroduction so
 >>for example class ProgrammingIntroductionActivity in
 >>ntu.comp.programming.introduction etc.
 >>
 >>I have created a features project and a site update project.
 >>Everything compiles and builds ok and I can successfully update a test
 >>version of eclipse 3.1 with my plugin.
 >>
 >>However when I try to create an example or open a file in a view I get
 >>an error message that my plugin was unable to load the required class.
 >>For example was unable to load class
 >> ntu.comp.programming.introduction.ui.ProgrammingIntroduction CreationWizard
 >>This is also the case when I try to run the plugin in the runtime
 >
 > workbench.
 >
 >>I have made an beginners error somewhere but dont know where. Can anyone
 >>help? I inspected the jar file in the plugin area and the classes appear
 >>to be there.
 >>
 >>Plugin.xml is
 >>
 >><?xml version="1.0" encoding="UTF-8"?>
 >><?eclipse version="3.0"?>
 >><plugin
 >>    id="ntu.comp.programming.introduction"
 >>    name="Introduction Plug-in"
 >>    version="1.0.0"
 >>    provider-name="Alan Battersby"
 >>    class="ntu.comp.programming.introduction.IntroductionPlugin ">
 >>
 >>    <runtime>
 >>       <library name="programmingIntroduction.jar">
 >>          <export name="*"/>
 >>       </library>
 >>    </runtime>
 >>
 >>    <requires>
 >>       <import plugin="org.eclipse.ui"/>
 >>       <import plugin="org.eclipse.ui.views"/>
 >>       <import plugin="org.eclipse.core.runtime"/>
 >>       <import plugin="org.eclipse.core.resources"/>
 >>       <import plugin="org.eclipse.core.runtime.compatibility"/>
 >>       <import plugin="org.eclipse.gef"/>
 >>       <import plugin="org.eclipse.ui.ide"/>
 >>    </requires>
 >>
 >>    <extension
 >>          point="org.eclipse.ui.editors">
 >>       <editor
 >>             default="true"
 >>             name="Programming Introduction"
 >>             extensions="prog"
 >>             icon="prog.gif"
 >>
 >>class=" ntu.comp.programming.introduction.ui.ProgrammingIntroduction Editor "
 >>
 >>
 >
 > contributorClass="ntu.comp.programming.introduction.actions.ProgrammingIntro
 > ductionActionBarContributor"
 >
 >>             id="Introductory Programming Editor">
 >>       </editor>
 >>    </extension>
 >>    <extension
 >>          point="org.eclipse.ui.newWizards">
 >>       <category
 >>             name="Programming Introduction"
 >>             parentCategory="org.eclipse.ui.Examples"
 >>             id="org.eclipse.gef.examples">
 >>       </category>
 >>       <wizard
 >>             name="Program Diagram"
 >>             icon="prog.gif"
 >>             category="org.eclipse.ui.Examples/org.eclipse.gef.examples"
 >>
 >>
 >
 > class=" ntu.comp.programming.introduction.ui.ProgrammingIntroduction CreationW
 > izard"
 >
 >>             id="ntu.comp.programming.introduction.wizard.new.file">
 >>          <selection
 >>                class="org.eclipse.core.resources.IResource">
 >>          </selection>
 >>       </wizard>
 >>    </extension>
 >>
 >></plugin>
 >>
 >>
 >
 >
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.03809 seconds