开发者

How to deployee cheatsheet in eclipse

I have developed a 开发者_如何学Pythonsimple cheat sheet in eclipse.

Now I want to install that cheat sheet plugin in eclipse itself

Can anyone help me how to do that???


If you have developed a cheat sheet plugin as described in the Eclipse help, with the right extension point like:

<extension point="org.eclipse.ui.cheatsheets.cheatSheetContent">
    <cheatsheet
        name="%cheatsheet.helloworld.name"
        contentFile="$nl$/cheatsheets/HelloWorld.xml"
        id="org.eclipse.jdt.helloworld">
        <description>%cheatsheet.helloworld.desc</description>
    </cheatsheet>

, then you can launch and test your plugin in another instance of Eclipse.

Run > Run As > Run-time Workbench

This is called self-hosting


Once tested, you need to deploy it in your own Eclipse instance. See PDE UI FAQ

To test code in the host, you need to export and install into the running Eclipse instance.

To export plug-ins and features and install them into the host Eclipse do the following:

  1. Develop your plug-ins and features in the workspace
  2. Open the export wizard, either File > Export... > Plug-in Development > Deployable plug-ins and fragments or File > Export... > Plug-in Development > Deployable features
  3. Select your plug-ins or features to export and install
  4. Select the last option on the Destination tab Install into host. Repository. Then choose a directory to create the repository in
  5. Hit Finish. The export operation will run followed by the installation operation.
  6. If the operations completed successfully, you will be prompted to restart. Choose to restart now

Your plug-ins will be installed and running after the restart.
You can see what has been installed using the Installation Details button on the About Dialog (available by going to Help > About Eclipse SDK)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜