Jump to: navigation, search

Difference between revisions of "FAQ Why is the interface for my new extension point not visible?"

 
 
Line 17: Line 17:
 
The default tag set by the PDE is &#147;<tt>*</tt>&#148;, indicating that
 
The default tag set by the PDE is &#147;<tt>*</tt>&#148;, indicating that
 
all types in the JAR should be exported.
 
all types in the JAR should be exported.
 +
 +
<hr><font size=-2>This FAQ was originally published in [http://www.eclipsefaq.org Official Eclipse 3.0 FAQs]. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the [http://www.eclipse.org/legal/epl-v10.html Eclipse Public License v1.0].</font>

Latest revision as of 16:13, 14 March 2006

When you declare a new extension point and a corresponding interface to implement, plug-ins that contribute to your extension point sometimes cannot see your interface. The reason is that your interface may not match the export tag’ regular expression in your plug-in’s runtime library tag. If your interface is called com.xyz.MyInterface, your plugin.xml should look like this:

   <runtime>
      <library> name="sample.jar">
         <export name="com.xyz.MyInterface"/>
      <library>
   <runtime>

Multiple export tags can be used, in addition to wildcards. The default tag set by the PDE is “*”, indicating that all types in the JAR should be exported.


This FAQ was originally published in Official Eclipse 3.0 FAQs. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the Eclipse Public License v1.0.