Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » 3.1 M7 plugin project wizard not creating plugin.xml?
3.1 M7 plugin project wizard not creating plugin.xml? [message #285650] Fri, 20 May 2005 19:28 Go to next message
Eclipse UserFriend
Originally posted by: USERjimirwin.DOMAINacm.org

I've probably missed an earlier discussion, but has 3.1 M7 changed the
way the plugin.xml is created? In M6, plugin.xml was created as soon as
I created a plugin project. In M7, plugin.xml is not being created
until I do something like add an extension, and even then the contents
of plugin.xml are unusual.

Here's what I get with M6 as soon as I create a simple plugin project:
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin
id="test.m6.plugin"
name="Plugin Plug-in"
version="1.0.0"
provider-name="Jim"
class="test.m6.plugin.PluginPlugin">

<runtime>
<library name="plugin.jar"/>
</runtime>

<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.runtime"/>
</requires>

</plugin>



Here's what M7 creates, and then it only creates it after I add the
extension. It doesn't look healthy to me.

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
<extension
point="org.eclipse.ui.views">
</extension>

</plugin>
Re: 3.1 M7 plugin project wizard not creating plugin.xml? [message #285652 is a reply to message #285650] Sat, 21 May 2005 00:42 Go to previous messageGo to next message
Eclipse UserFriend
This is undoubtedly intentional. The "create OSGi manifest" checkbox is
now on by default. By leaving it that way, and not adding any extensions,
you get a "pure" OSGi bundle (the notion of extension points is an Eclipse
concept). The plug-in manifest editor transparently edits the combination
of plugin.xml, manifest.mf and build.properties.

One thing to watch out for, is that when plugin.xml is created as a result
of adding an extension, it doesn't get checked on the build properties
page, so when you do a feature build, your plug-in doesn't run because
plugin.xml is missing.

Hope this helps

- Richard

jimirwin wrote:

> I've probably missed an earlier discussion, but has 3.1 M7 changed the
> way the plugin.xml is created? In M6, plugin.xml was created as soon as
> I created a plugin project. In M7, plugin.xml is not being created
> until I do something like add an extension, and even then the contents
> of plugin.xml are unusual.

> Here's what I get with M6 as soon as I create a simple plugin project:
> <?xml version="1.0" encoding="UTF-8"?>
> <?eclipse version="3.0"?>
> <plugin
> id="test.m6.plugin"
> name="Plugin Plug-in"
> version="1.0.0"
> provider-name="Jim"
> class="test.m6.plugin.PluginPlugin">

> <runtime>
> <library name="plugin.jar"/>
> </runtime>

> <requires>
> <import plugin="org.eclipse.ui"/>
> <import plugin="org.eclipse.core.runtime"/>
> </requires>

> </plugin>



> Here's what M7 creates, and then it only creates it after I add the
> extension. It doesn't look healthy to me.

> <?xml version="1.0" encoding="UTF-8"?>
> <?eclipse version="3.0"?>
> <plugin>
> <extension
> point="org.eclipse.ui.views">
> </extension>

> </plugin>
Re: 3.1 M7 plugin project wizard not creating plugin.xml? [message #285655 is a reply to message #285652] Sat, 21 May 2005 09:40 Go to previous message
Eclipse UserFriend
Originally posted by: wassim.ibm.canada

It certainly would be a good idea for PDE to automatically include the
plugin.xml/fragment in the bin.includes section of the build.properties
file.

I just opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=96223
to address this issue.

Wassim.
Previous Topic:Plugins don't work anymore with M7
Next Topic:Maximize Detached View
Goto Forum:
  


Current Time: Mon May 12 08:56:26 EDT 2025

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

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

Back to the top