Home » Eclipse Projects » Eclipse Platform » Eliminating Plugin-dependencies.
| | |
Re: Eliminating Plugin-dependencies. [message #328589 is a reply to message #328587] |
Tue, 27 May 2008 23:05 |
Francis Upton IV Messages: 472 Registered: July 2009 Location: Oakland, CA |
Senior Member |
|
|
It should just work automatically, but I think the thing you might be
missing is using the plugin development environment.
Your application code itself should be in a plugin (do a create plugin
project). Then in the plugin manifest (open the created manifest.mf or
plugin.xml file) you will have a place to add the plugins that you
depend on. Add o.e.core.commands (you don't need the srouce).
Then you should be able to just find the classes in that plug the normal
way.
It will also take care of your Java classpath and everything else. It's
really easy once you know how.
Francis
John J Barton wrote:
> Thanks Francis. I have two plugins, org.eclipse.core.commands and
> org.eclipse.core.commands.source. The "add to java search" was available
> on the first one, but did nothing when I selected it.
>
> Plus is this really the supported way to do this? It seems crazy, there
> are hundreds of plugins. Why should I read the class name, then search
> for that name in a huge list, set some obscure option?? Eclipse has the
> class name and the plugin, it should just Do The Right Thing!
>
> I have tried
> Import as binary project
> Import as project with linked content
> Import as source project
> Add to java search (Thanks Francis)
> StackFrame -> Context menu Edit Source Lookup
> StackFrame -> Context menu Lookup Source
> Build Path link source
> Build Path Add Folder
> Nada
>
> Thanks
> John.
>
> Francis Upton (News) wrote:
>> Try opening the plugin view and for the desired plugin select the "add
>> to java search" option in the right-click menu.
>>
>> Then search for your class (using the normal means) and the source
>> should be there. (assuming you are running from a normal build that
>> has the source included).
>>
>> Francis
>>
>> John J Barton wrote:
>>> Since I cannot figure out how to get ganymede to display source code
>>> for eclipse components, I'm getting desperate. The Class File Editor
>>> proclaims:
>>>
>>> The JAR of this class file belongs to a container 'Plug-in
>>> Dependencies' which does not allow modification to source attachments
>>> on its entries.
>>>
>>> So I'm thinking about deleting 'Plug-in Dependencies' and trying to
>>> get the app to build with a class path given on the command line.
>>> Anyone have any experience with this?
>>>
>>> Thanks,
>>> John.
Platform UI Committer for Common Navigator
http://wiki.eclipse.org/index.php/Common_Navigator_Framework
http://help.eclipse.org/galileo/topic/org.eclipse.platform.d oc.isv/guide/cnf.htm
|
|
|
Re: Eliminating Plugin-dependencies. [message #328593 is a reply to message #328589] |
Wed, 28 May 2008 00:51 |
John J. Barton Messages: 311 Registered: July 2009 |
Senior Member |
|
|
Yes I know it should just work. I've used the plugin development
environment for several years. Which is why it is so frustrating that it
fails in Ganymede. I assumed something this basic would work in the new
version.
But thanks for your perspective. I guess the answer is clear, I have to
develop in Europa and test in Ganymede.
John
Francis Upton (News) wrote:
> It should just work automatically, but I think the thing you might be
> missing is using the plugin development environment.
>
> Your application code itself should be in a plugin (do a create plugin
> project). Then in the plugin manifest (open the created manifest.mf or
> plugin.xml file) you will have a place to add the plugins that you
> depend on. Add o.e.core.commands (you don't need the srouce).
>
> Then you should be able to just find the classes in that plug the normal
> way.
>
> It will also take care of your Java classpath and everything else. It's
> really easy once you know how.
>
> Francis
>
> John J Barton wrote:
>> Thanks Francis. I have two plugins, org.eclipse.core.commands and
>> org.eclipse.core.commands.source. The "add to java search" was
>> available on the first one, but did nothing when I selected it.
>>
>> Plus is this really the supported way to do this? It seems crazy,
>> there are hundreds of plugins. Why should I read the class name, then
>> search for that name in a huge list, set some obscure option?? Eclipse
>> has the class name and the plugin, it should just Do The Right Thing!
>>
>> I have tried
>> Import as binary project
>> Import as project with linked content
>> Import as source project
>> Add to java search (Thanks Francis)
>> StackFrame -> Context menu Edit Source Lookup
>> StackFrame -> Context menu Lookup Source
>> Build Path link source
>> Build Path Add Folder
>> Nada
>>
>> Thanks
>> John.
>>
>> Francis Upton (News) wrote:
>>> Try opening the plugin view and for the desired plugin select the
>>> "add to java search" option in the right-click menu.
>>>
>>> Then search for your class (using the normal means) and the source
>>> should be there. (assuming you are running from a normal build that
>>> has the source included).
>>>
>>> Francis
>>>
>>> John J Barton wrote:
>>>> Since I cannot figure out how to get ganymede to display source code
>>>> for eclipse components, I'm getting desperate. The Class File
>>>> Editor proclaims:
>>>>
>>>> The JAR of this class file belongs to a container 'Plug-in
>>>> Dependencies' which does not allow modification to source
>>>> attachments on its entries.
>>>>
>>>> So I'm thinking about deleting 'Plug-in Dependencies' and trying to
>>>> get the app to build with a class path given on the command line.
>>>> Anyone have any experience with this?
>>>>
>>>> Thanks,
>>>> John.
|
|
|
Re: Eliminating Plugin-dependencies. [message #328594 is a reply to message #328593] |
Wed, 28 May 2008 01:01 |
Francis Upton IV Messages: 472 Registered: July 2009 Location: Oakland, CA |
Senior Member |
|
|
It works fine in Ganymede as well, I have been using that for months
now. This will be something simple, I'm sure of it.
Assuming you are using plugins, the problem is probably with the setup
of the target platform.
First, I recommend being on the latest 3.4Rc2, as that has a number of
PDE/P2 issues resolved.
Then look at Preferences -> Plugin Devel -> Target Platform, there is a
section there that talks about the source code locations. That path is
derived automatically by PDE from the contents of the target platform.
You should see a great number of plugins which are all of the source
plugins included in your target build.
John J Barton wrote:
> Yes I know it should just work. I've used the plugin development
> environment for several years. Which is why it is so frustrating that it
> fails in Ganymede. I assumed something this basic would work in the new
> version.
>
> But thanks for your perspective. I guess the answer is clear, I have to
> develop in Europa and test in Ganymede.
>
> John
>
>
> Francis Upton (News) wrote:
>> It should just work automatically, but I think the thing you might be
>> missing is using the plugin development environment.
>>
>> Your application code itself should be in a plugin (do a create plugin
>> project). Then in the plugin manifest (open the created manifest.mf
>> or plugin.xml file) you will have a place to add the plugins that you
>> depend on. Add o.e.core.commands (you don't need the srouce).
>>
>> Then you should be able to just find the classes in that plug the
>> normal way.
>>
>> It will also take care of your Java classpath and everything else.
>> It's really easy once you know how.
>>
>> Francis
>>
>> John J Barton wrote:
>>> Thanks Francis. I have two plugins, org.eclipse.core.commands and
>>> org.eclipse.core.commands.source. The "add to java search" was
>>> available on the first one, but did nothing when I selected it.
>>>
>>> Plus is this really the supported way to do this? It seems crazy,
>>> there are hundreds of plugins. Why should I read the class name,
>>> then search for that name in a huge list, set some obscure option??
>>> Eclipse has the class name and the plugin, it should just Do The
>>> Right Thing!
>>>
>>> I have tried
>>> Import as binary project
>>> Import as project with linked content
>>> Import as source project
>>> Add to java search (Thanks Francis)
>>> StackFrame -> Context menu Edit Source Lookup
>>> StackFrame -> Context menu Lookup Source
>>> Build Path link source
>>> Build Path Add Folder
>>> Nada
>>>
>>> Thanks
>>> John.
>>>
>>> Francis Upton (News) wrote:
>>>> Try opening the plugin view and for the desired plugin select the
>>>> "add to java search" option in the right-click menu.
>>>>
>>>> Then search for your class (using the normal means) and the source
>>>> should be there. (assuming you are running from a normal build that
>>>> has the source included).
>>>>
>>>> Francis
>>>>
>>>> John J Barton wrote:
>>>>> Since I cannot figure out how to get ganymede to display source
>>>>> code for eclipse components, I'm getting desperate. The Class File
>>>>> Editor proclaims:
>>>>>
>>>>> The JAR of this class file belongs to a container 'Plug-in
>>>>> Dependencies' which does not allow modification to source
>>>>> attachments on its entries.
>>>>>
>>>>> So I'm thinking about deleting 'Plug-in Dependencies' and trying to
>>>>> get the app to build with a class path given on the command line.
>>>>> Anyone have any experience with this?
>>>>>
>>>>> Thanks,
>>>>> John.
Platform UI Committer for Common Navigator
http://wiki.eclipse.org/index.php/Common_Navigator_Framework
http://help.eclipse.org/galileo/topic/org.eclipse.platform.d oc.isv/guide/cnf.htm
|
|
|
Re: Eliminating Plugin-dependencies. [message #328596 is a reply to message #328594] |
Wed, 28 May 2008 01:15 |
John J. Barton Messages: 311 Registered: July 2009 |
Senior Member |
|
|
Francis Upton (News) wrote:
> It works fine in Ganymede as well, I have been using that for months
> now. This will be something simple, I'm sure of it.
Thanks, I thought so...
>
> Assuming you are using plugins, the problem is probably with the setup
> of the target platform.
>
> First, I recommend being on the latest 3.4Rc2, as that has a number of
> PDE/P2 issues resolved.
Where can I look for that? I installed eclipse-jee-ganymede-M6-win32,
but it never updates and it does not have any numbers like 3.4Rc2.
>
> Then look at Preferences -> Plugin Devel -> Target Platform, there is a
> section there that talks about the source code locations. That path is
> derived automatically by PDE from the contents of the target platform.
> You should see a great number of plugins which are all of the source
> plugins included in your target build.
Well I have stuff there, but now I want to start over with yet another
version, the 3.4 you mention.
John.
|
|
|
Re: Eliminating Plugin-dependencies. [message #328599 is a reply to message #328596] |
Wed, 28 May 2008 02:13 |
Francis Upton IV Messages: 472 Registered: July 2009 Location: Oakland, CA |
Senior Member |
|
|
If you need the J2EE stuff, then you can get RC1 from here:
http://www.eclipse.org/downloads/packages/
If all you need is the Eclipse SDK (which includes Java and plugin
development), you can get RC2 here:
http://download.eclipse.org/eclipse/downloads/drops/S-3.4RC2 -200805230100/index.php
Ganymede = 3.4
John J Barton wrote:
> Francis Upton (News) wrote:
>> It works fine in Ganymede as well, I have been using that for months
>> now. This will be something simple, I'm sure of it.
>
> Thanks, I thought so...
>
>>
>> Assuming you are using plugins, the problem is probably with the setup
>> of the target platform.
>>
>> First, I recommend being on the latest 3.4Rc2, as that has a number of
>> PDE/P2 issues resolved.
>
> Where can I look for that? I installed eclipse-jee-ganymede-M6-win32,
> but it never updates and it does not have any numbers like 3.4Rc2.
>
>>
>> Then look at Preferences -> Plugin Devel -> Target Platform, there is
>> a section there that talks about the source code locations. That path
>> is derived automatically by PDE from the contents of the target
>> platform. You should see a great number of plugins which are all of
>> the source plugins included in your target build.
>
> Well I have stuff there, but now I want to start over with yet another
> version, the 3.4 you mention.
>
> John.
Platform UI Committer for Common Navigator
http://wiki.eclipse.org/index.php/Common_Navigator_Framework
http://help.eclipse.org/galileo/topic/org.eclipse.platform.d oc.isv/guide/cnf.htm
|
|
|
Re: Eliminating Plugin-dependencies. [message #328606 is a reply to message #328599] |
Wed, 28 May 2008 11:25 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Guys,
I seem to recall that there were some build issues a while back where
some of the source bundles were being gobbled up by the builder and
hence weren't showing up in the distribution. If the problem recurs in
RC2, please please open a bugzilla! This absolutely must work properly
before GA...
Francis Upton (News) wrote:
> If you need the J2EE stuff, then you can get RC1 from here:
>
> http://www.eclipse.org/downloads/packages/
>
> If all you need is the Eclipse SDK (which includes Java and plugin
> development), you can get RC2 here:
>
> http://download.eclipse.org/eclipse/downloads/drops/S-3.4RC2 -200805230100/index.php
>
>
> Ganymede = 3.4
>
> John J Barton wrote:
>> Francis Upton (News) wrote:
>>> It works fine in Ganymede as well, I have been using that for months
>>> now. This will be something simple, I'm sure of it.
>>
>> Thanks, I thought so...
>>
>>>
>>> Assuming you are using plugins, the problem is probably with the
>>> setup of the target platform.
>>>
>>> First, I recommend being on the latest 3.4Rc2, as that has a number
>>> of PDE/P2 issues resolved.
>>
>> Where can I look for that? I installed eclipse-jee-ganymede-M6-win32,
>> but it never updates and it does not have any numbers like 3.4Rc2.
>>
>>>
>>> Then look at Preferences -> Plugin Devel -> Target Platform, there
>>> is a section there that talks about the source code locations. That
>>> path is derived automatically by PDE from the contents of the target
>>> platform. You should see a great number of plugins which are all of
>>> the source plugins included in your target build.
>>
>> Well I have stuff there, but now I want to start over with yet
>> another version, the 3.4 you mention.
>>
>> John.
|
|
|
Re: Eliminating Plugin-dependencies. [message #328609 is a reply to message #328596] |
Wed, 28 May 2008 13:58 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
John J Barton wrote:
> Where can I look for that? I installed eclipse-jee-ganymede-M6-win32,
> but it never updates and it does not have any numbers like 3.4Rc2.
I think the problem is that the JEE package simply does not include the
PDE or the Eclipse source bundles. If you're doing plugin/RCP
development, you really want to start with the "Eclipse for RCP/Plug-in
Developers" package; then if you want JEE features you can add them via
Help > Software Updates.
Hope this helps,
Eric
|
|
| |
Re: Eliminating Plugin-dependencies. [message #328619 is a reply to message #328614] |
Wed, 28 May 2008 17:44 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
John J Barton wrote:
> Eric Rizzo wrote:
>> John J Barton wrote:
>>> Where can I look for that? I installed eclipse-jee-ganymede-M6-win32,
>>> but it never updates and it does not have any numbers like 3.4Rc2.
>>
>> I think the problem is that the JEE package simply does not include
>> the PDE or the Eclipse source bundles. If you're doing plugin/RCP
>> development, you really want to start with the "Eclipse for
>> RCP/Plug-in Developers" package; then if you want JEE features you can
>> add them via Help > Software Updates.
>
> Thanks Eric, but...
>
> What do I add from Software updates to make it JEE? As I recall the
> Updates use a different naming scheme involving W* and, well that's my
> problem, other stuff to make up JEE?
The JEE package includes (among other things) DTP (Database Tools), WTP
(Web Tools, JST and WST), GEF (Graphical Editing framework), and parts
of EMF (Modeling framework, which WTP is based on).
The complete list is available by clicking the More... link under the
JEE Package here: http://www.eclipse.org/downloads/packages/
If you want to get the latest releases (not the 3.4 RC stuff) you can
add this update site and select everything under it:
http://download.eclipse.org/webtools/updates/ (I think this is already
listed in the Available Updates of the update manager, but if not you
can drag-and-drop it there.
>
> Will the RCP/Plugin package have the source for JEE?
No, you'd need a JEE SDK to get all of its source code bundles. I'm not
sure if such a thing exists or not. Start looking at the WTP site:
http://www.eclipse.org/webtools/
But I'm not sure why you'd need the source for the JEE tools, unless
you're planning on extending them with your own plugin(s).
Hope this helps,
Eric
|
|
| | |
Re: Eliminating Plugin-dependencies. [message #328628 is a reply to message #328627] |
Wed, 28 May 2008 23:09 |
Francis Upton IV Messages: 472 Registered: July 2009 Location: Oakland, CA |
Senior Member |
|
|
I have had that happen to me after upgrading, and I was never able to
work out why it happened. I think it might have been something in my
workspace. I think I got it working by fooling around with my
preferences for completion.
You might try and clean workspace and see if things work correctly.
I think this is a pretty serious problem (if you and I have hit it then
probably others have as well).
In looking through the bugs I have found this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=219213
I filed this bug to track this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=234510
Could you make a comment in that bug report (you will need to create a
bugzill logon if you don't already have one) that describes your
situation. That would help a lot.
Francis
John J Barton wrote:
> John J Barton wrote:
>> Francis Upton (News) wrote:
>>> If you need the J2EE stuff, then you can get RC1 from here:
>>>
>>> http://www.eclipse.org/downloads/packages/
>>>
>>> If all you need is the Eclipse SDK (which includes Java and plugin
>>> development), you can get RC2 here:
>>>
>>> http://download.eclipse.org/eclipse/downloads/drops/S-3.4RC2 -200805230100/index.php
>>
>>
>>
>> Ok, I installed the SDK 3.4RC2 and then, based on a hint from the
>> webtools group, I used an update site:
>> http://download.eclipse.org/releases/ganymede/staging/
>> to get the web and j2ee packages from WTP 3.0
>>
>> So far it looks like my headaches are over,
>
> Well...now I can see the source nicely, but completion is broken. If I
> type "this.", I get "No Default Proposals".
>
> Any hints?
> John
Platform UI Committer for Common Navigator
http://wiki.eclipse.org/index.php/Common_Navigator_Framework
http://help.eclipse.org/galileo/topic/org.eclipse.platform.d oc.isv/guide/cnf.htm
|
|
| |
Goto Forum:
Current Time: Sun Dec 22 12:54:28 GMT 2024
Powered by FUDForum. Page generated in 0.05025 seconds
|