Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Need help: Problem with Deployment
Need help: Problem with Deployment [message #51557] Mon, 30 December 2002 13:12 Go to next message
Eclipse UserFriend
Originally posted by: assisi2000.yahoo.com

I tried to deploy my plugin which is working very well in the
runtime-workbench.

I have done the following:

1. I created a feature-folder in eclipse/features in the same way like
the logic example
2. I created a plugin-folder in eclipse/features in the same way like
the logic example
3. I exported all my class-files & resources to a jar to the
pulgin-folder/runtime
4. I restarted eclipse
5. I got the message that there is a new update
6. I installed it (it looked as if it would be a success)
7. When I tried to acces my plugin with files/new I got the right wizard
8. after the creation of the file I get alwas the following message:

java.lang.NoClassDefFoundError: org/eclipse/gef/internal/SharedImages

The features.xml has the following entry:
<requires>

<import plugin="org.eclipse.gef" version="2.0.1"
match="compatible"/>

</requires>



So I dont understand what is wrong.

I use JRE1.4. Is this the problem?

Who can help?
Re: Need help: Problem with Deployment [message #51580 is a reply to message #51557] Mon, 30 December 2002 14:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hudsonr.us.eye-bee-em.com

The internal packages are not visible at runtime (and shouldn't be when
develop your plugin). It is a limitation of Eclipse that when developing a
pluging, the runtime class visibility is not reproduced.

Which Images do you need access to?

"exquisitus" <assisi2000@yahoo.com> wrote in message
news:aupg11$m7k$1@rogue.oti.com...
> I tried to deploy my plugin which is working very well in the
> runtime-workbench.
>
> I have done the following:
>
> 1. I created a feature-folder in eclipse/features in the same way like
> the logic example
> 2. I created a plugin-folder in eclipse/features in the same way like
> the logic example
> 3. I exported all my class-files & resources to a jar to the
> pulgin-folder/runtime
> 4. I restarted eclipse
> 5. I got the message that there is a new update
> 6. I installed it (it looked as if it would be a success)
> 7. When I tried to acces my plugin with files/new I got the right wizard
> 8. after the creation of the file I get alwas the following message:
>
> java.lang.NoClassDefFoundError: org/eclipse/gef/internal/SharedImages
>
> The features.xml has the following entry:
> <requires>
>
> <import plugin="org.eclipse.gef" version="2.0.1"
> match="compatible"/>
>
> </requires>
>
>
>
> So I dont understand what is wrong.
>
> I use JRE1.4. Is this the problem?
>
> Who can help?
>
>
>
>
Re: Need help: Problem with Deployment [message #51620 is a reply to message #51580] Mon, 30 December 2002 16:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: assisi2000.yahoo.com

Thank you. Now I understood. The reason was, that I tried to implement also
the resizing of width and heigth.
Theirfore I copied the AlignmentAction and changed it. But still I dont
understand why it works in the
runtime-workspace. But this is not important any more.

Now onother question. Is this very common function paned or implemented in
GEF?

Ramin


"Randy Hudson" <hudsonr@us.eye-bee-em.com> schrieb im Newsbeitrag
news:auplos$p54$1@rogue.oti.com...
> The internal packages are not visible at runtime (and shouldn't be when
> develop your plugin). It is a limitation of Eclipse that when developing
a
> pluging, the runtime class visibility is not reproduced.
>
> Which Images do you need access to?
>
> "exquisitus" <assisi2000@yahoo.com> wrote in message
> news:aupg11$m7k$1@rogue.oti.com...
> > I tried to deploy my plugin which is working very well in the
> > runtime-workbench.
> >
> > I have done the following:
> >
> > 1. I created a feature-folder in eclipse/features in the same way like
> > the logic example
> > 2. I created a plugin-folder in eclipse/features in the same way like
> > the logic example
> > 3. I exported all my class-files & resources to a jar to the
> > pulgin-folder/runtime
> > 4. I restarted eclipse
> > 5. I got the message that there is a new update
> > 6. I installed it (it looked as if it would be a success)
> > 7. When I tried to acces my plugin with files/new I got the right wizard
> > 8. after the creation of the file I get alwas the following message:
> >
> > java.lang.NoClassDefFoundError:
org/eclipse/gef/internal/SharedImages
> >
> > The features.xml has the following entry:
> > <requires>
> >
> > <import plugin="org.eclipse.gef" version="2.0.1"
> > match="compatible"/>
> >
> > </requires>
> >
> >
> >
> > So I dont understand what is wrong.
> >
> > I use JRE1.4. Is this the problem?
> >
> > Who can help?
> >
> >
> >
> >
>
>
Re: Need help: Problem with Deployment [message #51696 is a reply to message #51580] Mon, 30 December 2002 17:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: assisi2000.yahoo.com

I have still have deployment problems:



1. I tried to calculate the PluginDirectory. But I also made the mistake to
use internal package.

Is there another way?

PluginDescriptor descriptor =
(PluginDescriptor)V4EPlugin.getDefault().getDescriptor();

v4eLocation = descriptor.getLocation();


2. The same with the acces to the TreeViewer for the parts (to scan it)


public PackageExplorerPart getPackageExplorer(){


return PackageExplorerPart.getFromActivePerspective();

}





what would be the alternative?



Thanks for help and happy new year.



Ramin








"Randy Hudson" <hudsonr@us.eye-bee-em.com> schrieb im Newsbeitrag
news:auplos$p54$1@rogue.oti.com...
> The internal packages are not visible at runtime (and shouldn't be when
> develop your plugin). It is a limitation of Eclipse that when developing
a
> pluging, the runtime class visibility is not reproduced.
>
> Which Images do you need access to?
>
> "exquisitus" <assisi2000@yahoo.com> wrote in message
> news:aupg11$m7k$1@rogue.oti.com...
> > I tried to deploy my plugin which is working very well in the
> > runtime-workbench.
> >
> > I have done the following:
> >
> > 1. I created a feature-folder in eclipse/features in the same way like
> > the logic example
> > 2. I created a plugin-folder in eclipse/features in the same way like
> > the logic example
> > 3. I exported all my class-files & resources to a jar to the
> > pulgin-folder/runtime
> > 4. I restarted eclipse
> > 5. I got the message that there is a new update
> > 6. I installed it (it looked as if it would be a success)
> > 7. When I tried to acces my plugin with files/new I got the right wizard
> > 8. after the creation of the file I get alwas the following message:
> >
> > java.lang.NoClassDefFoundError:
org/eclipse/gef/internal/SharedImages
> >
> > The features.xml has the following entry:
> > <requires>
> >
> > <import plugin="org.eclipse.gef" version="2.0.1"
> > match="compatible"/>
> >
> > </requires>
> >
> >
> >
> > So I dont understand what is wrong.
> >
> > I use JRE1.4. Is this the problem?
> >
> > Who can help?
> >
> >
> >
> >
>
>
Re: Need help: Problem with Deployment [message #51777 is a reply to message #51620] Thu, 02 January 2003 00:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hudsonr.us.eye-bee-em.com

"exquisitus" <assisi2000@yahoo.com> wrote in message
news:aupsii$sfe$1@rogue.oti.com...
> Thank you. Now I understood. The reason was, that I tried to implement
also
> the resizing of width and heigth.
> Theirfore I copied the AlignmentAction and changed it. But still I dont
> understand why it works in the
> runtime-workspace. But this is not important any more.
>
> Now onother question. Is this very common function paned or implemented in
> GEF?

Are you asking for "Match Width" "Match Height"?
>
> Ramin
>
>
> "Randy Hudson" <hudsonr@us.eye-bee-em.com> schrieb im Newsbeitrag
> news:auplos$p54$1@rogue.oti.com...
> > The internal packages are not visible at runtime (and shouldn't be when
> > develop your plugin). It is a limitation of Eclipse that when
developing
> a
> > pluging, the runtime class visibility is not reproduced.
> >
> > Which Images do you need access to?
> >
> > "exquisitus" <assisi2000@yahoo.com> wrote in message
> > news:aupg11$m7k$1@rogue.oti.com...
> > > I tried to deploy my plugin which is working very well in the
> > > runtime-workbench.
> > >
> > > I have done the following:
> > >
> > > 1. I created a feature-folder in eclipse/features in the same way like
> > > the logic example
> > > 2. I created a plugin-folder in eclipse/features in the same way like
> > > the logic example
> > > 3. I exported all my class-files & resources to a jar to the
> > > pulgin-folder/runtime
> > > 4. I restarted eclipse
> > > 5. I got the message that there is a new update
> > > 6. I installed it (it looked as if it would be a success)
> > > 7. When I tried to acces my plugin with files/new I got the right
wizard
> > > 8. after the creation of the file I get alwas the following message:
> > >
> > > java.lang.NoClassDefFoundError:
> org/eclipse/gef/internal/SharedImages
> > >
> > > The features.xml has the following entry:
> > > <requires>
> > >
> > > <import plugin="org.eclipse.gef" version="2.0.1"
> > > match="compatible"/>
> > >
> > > </requires>
> > >
> > >
> > >
> > > So I dont understand what is wrong.
> > >
> > > I use JRE1.4. Is this the problem?
> > >
> > > Who can help?
> > >
> > >
> > >
> > >
> >
> >
>
>
Re: Need help: Problem with Deployment [message #51805 is a reply to message #51696] Thu, 02 January 2003 00:15 Go to previous message
Eclipse UserFriend
Originally posted by: hudsonr.us.eye-bee-em.com

"exquisitus" <assisi2000@yahoo.com> wrote in message
news:auptt0$t4i$1@rogue.oti.com...
> I have still have deployment problems:
>
>
>
> 1. I tried to calculate the PluginDirectory. But I also made the mistake
to
> use internal package.

You should consider anything not available programmatically as internal
also. If you are trying to get to the Icon via its resource, you may be
broken in a future build.

I don't understand which icon could be reused to represent "match width".

>
> Is there another way?
>
> PluginDescriptor descriptor =
> (PluginDescriptor)V4EPlugin.getDefault().getDescriptor();
>
> v4eLocation = descriptor.getLocation();
>
>
> 2. The same with the acces to the TreeViewer for the parts (to scan it)
>
>
> public PackageExplorerPart getPackageExplorer(){
>
>
> return PackageExplorerPart.getFromActivePerspective();
>
> }
>
>
>
>
>
> what would be the alternative?
>
>
>
> Thanks for help and happy new year.
>
>
>
> Ramin
>
>
>
>
>
>
>
>
> "Randy Hudson" <hudsonr@us.eye-bee-em.com> schrieb im Newsbeitrag
> news:auplos$p54$1@rogue.oti.com...
> > The internal packages are not visible at runtime (and shouldn't be when
> > develop your plugin). It is a limitation of Eclipse that when
developing
> a
> > pluging, the runtime class visibility is not reproduced.
> >
> > Which Images do you need access to?
> >
> > "exquisitus" <assisi2000@yahoo.com> wrote in message
> > news:aupg11$m7k$1@rogue.oti.com...
> > > I tried to deploy my plugin which is working very well in the
> > > runtime-workbench.
> > >
> > > I have done the following:
> > >
> > > 1. I created a feature-folder in eclipse/features in the same way like
> > > the logic example
> > > 2. I created a plugin-folder in eclipse/features in the same way like
> > > the logic example
> > > 3. I exported all my class-files & resources to a jar to the
> > > pulgin-folder/runtime
> > > 4. I restarted eclipse
> > > 5. I got the message that there is a new update
> > > 6. I installed it (it looked as if it would be a success)
> > > 7. When I tried to acces my plugin with files/new I got the right
wizard
> > > 8. after the creation of the file I get alwas the following message:
> > >
> > > java.lang.NoClassDefFoundError:
> org/eclipse/gef/internal/SharedImages
> > >
> > > The features.xml has the following entry:
> > > <requires>
> > >
> > > <import plugin="org.eclipse.gef" version="2.0.1"
> > > match="compatible"/>
> > >
> > > </requires>
> > >
> > >
> > >
> > > So I dont understand what is wrong.
> > >
> > > I use JRE1.4. Is this the problem?
> > >
> > > Who can help?
> > >
> > >
> > >
> > >
> >
> >
>
>
Previous Topic:adding connections to the TreeViewer
Next Topic:Question about Figure.translateToAbsolute/translateToRelative
Goto Forum:
  


Current Time: Sun Sep 01 00:02:58 GMT 2024

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

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

Back to the top