Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <ol> <li><p><em>Eclipse</em> -> <em>File</em> -> <em>New...</em> -> <em>Fragment project</em> -> set the host plugin (which is either in your workspace or in plugins in target platform).</p></li> <li><p>Open <em>Plugin manifest editor</em> (you can do it by clicking on <code>build.properties</code>, <code>manifest.mf</code> or <code>fragment.xml</code> - if there is no such a file, create it by hand) </p></li> <li><p>In tab <em>Extentions</em> click <em>Add..</em> and add <code>org.eclipse.ui.startup</code> and browse class which implements <code>org.eclipse.ui.IStartup</code> class.</p></li> <li><p>Create this class and implement it. You need to implement method <code>earlyStartup()</code> which is entry point to the fragment.</p></li> </ol> <p><em>Note: The lines below are just example. I didn't test it so there might be errors...</em></p> <p>All you need is this (this is project structure / directory structure):</p> <ul> <li><strong>Fragment-Project</strong> - root dir <ul> <li>/<strong>META-INF</strong> <ul> <li><strong>MANIFEST.MF</strong></li> </ul></li> <li>/<strong>src</strong> (which is source directory) <ul> <li><strong>FragmentStartClass.java</strong> (which implement org.eclipse.ui.IStartup interface and earlyStartup method)</li> </ul></li> <li><strong>build.properties</strong></li> <li><strong>fragment.xml</strong> </li> </ul></li> </ul> <p><strong>META-INF/MANIFEST.MF</strong> content:</p> <pre> Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: FragmentProject Bundle-SymbolicName: FragmentProject;singleton:=true Bundle-Version: 1.0.0 Bundle-ClassPath: src/,. Fragment-Host: *HostPluginProjectSymbolicName*;bundle-version="1.0.0" Bundle-RequiredExecutionEnvironment: J2SE-1.5 Require-Bundle: </pre> <p><strong>build.properties</strong> content:</p> <pre> source.. = src,\ output.. = bin/ bin.includes = META-INF/, ., fragment.xml </pre> <p><strong>fragment.xml</strong> content:</p> <pre> &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;?eclipse version=&quot;3.2&quot;?&gt; &lt;fragment&gt; &lt;extension point=&quot;org.eclipse.ui.startup&quot;&gt; &lt;startup class=&quot;FragmentStartClass&quot;&gt; &lt;/startup&gt; &lt;/extension&gt; &lt;/fragment&gt; </pre> <p><strong>FragmentStartClass.java</strong> content:</p> <pre> import org.eclipse.ui.IStartup; public class FragmentStartClass implements IStartup { public void earlyStartup() { System.out.println("Hello World From Fragment!"); } } </pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload