Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Extension details do not get filled automatically
Extension details do not get filled automatically [message #515442] Thu, 18 February 2010 18:45 Go to next message
hung is currently offline hungFriend
Messages: 117
Registered: July 2009
Senior Member
Hello,
So I provided an extension point, and when I test this in my development
environment, the extension details are filled in automatically when I
create new extension. However, if I install the plugin contains this
extension point, and test from a non-development environment, the
details are not filled in. Am I missing something in my plugin or
schema? Thanks.
Re: Extension details do not get filled automatically [message #515469 is a reply to message #515442] Thu, 18 February 2010 15:26 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Most binary plugins don't contain the .exsd schema file. In eclipse we
ship these with our .source plugins.

Without that file, you won't see anything useful in the PDE editor even
though the extension will work.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Extension details do not get filled automatically [message #515493 is a reply to message #515469] Thu, 18 February 2010 20:02 Go to previous messageGo to next message
hung is currently offline hungFriend
Messages: 117
Registered: July 2009
Senior Member
Thanks Paul,
Is there any reason why the schema shouldn't be packaged with the binary
plugin?


Paul Webster wrote:
> Most binary plugins don't contain the .exsd schema file. In eclipse we
> ship these with our .source plugins.
>
> Without that file, you won't see anything useful in the PDE editor even
> though the extension will work.
>
> PW
>
Re: Extension details do not get filled automatically [message #515604 is a reply to message #515493] Fri, 19 February 2010 09:16 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

hung wrote:
> Thanks Paul,
> Is there any reason why the schema shouldn't be packaged with the binary
> plugin?

There's no technical reason, AFAIK. We don't do it because it would
take up space in the runtime but is not needed at runtime (only
development time), and our extensions almost always require the
contributor to implement an interface.

If the contributor needs access to the schema to fill in the extension,
they probably need access to the source so they can see the javadoc for
the interface they're trying to implement.

Imagine how hard it would be to guess why your extension isn't doing
what you want if all you see in eclipse is:
public interface IExecutableExtension {
public void setInitializationData(IConfigurationElement arg0,
String arg1, Object arg2) throws CoreException;
}

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:PartInitException when running RCP application outside of Eclipse (Plugin missing on export)
Next Topic:Preferences dialog doesnt work
Goto Forum:
  


Current Time: Fri Apr 26 17:23:16 GMT 2024

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

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

Back to the top