Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

MANIFEST.MF contains the plugin description.
plugin.xml defines extensions that the plugin contributes (thus, is optional).

...

How

...

Link verified by Sergei Chevtsov, 06-08-2007

http://wiki.eclipse.org/index.php?title=How_can_I_invoke_the_eclipse_default_web_browser_in_my_own_plugin?

((IWebBrowser)browser).openURL(new URL("http://www.eclipse.org"));

How do I create a plugin project that uses an existing SEAL plugin?

...

1. Check out the project "external" from our CVS.
2. Copy your JAR file and the corresponding ZIP file with source code to the top directory of "external".
3. Add your JAR file to the build path of "external". Don't forget to check its "exported" box!
4. Attach source from the ZIP file and specify Javadoc location on the web for the library.
5. Open the MANIFEST.MF file from the META-INF directory of "external".
6. Choose the RUNTIME tab at the bottom of your editor.
7. Click on ADD.. in the "Exported Packages" section and select all desired packages.
8. Click on ADD... in the "Classpath" section and select the new JAR file.
9. Commit "external" to CVS.

...

How can I launch the Eclipse web browser from my plugin?

Link verified by Sergei Chevtsov, 06-08-2007

http://wiki.eclipse.org/index.php?title=How_can_I_invoke_the_eclipse_default_web_browser_in_my_own_plugin?

((IWebBrowser)browser).openURL(new URL("http://www.eclipse.org"));

...

How can my view save data via Eclipse main menu (FILE => Save or Save As...)?

...

Your view must implement ISaveablePart.
Note #1: An editor already implements ISaveablePart.
Note #2: I am not saying that this always is the correct way to save data from a view.

...

How can I notify Eclipse about the change of "dirty"-ness of my WorkbenchPart?

Answered by Sergei Chevtsov, 07-11-2007

0. Make sure that your WorkbenchPart implements ISaveablePart.
1. Call WorkbenchPart.firePropertyChange(ISaveablePart.PROP_DIRTY).

...

What happens when a view is closed?

...

First, you need to know that your plugin will *run* either way, although Eclipse folks claim that performance might differ (surprisingly, JAR-ed plugins are supposed to be better =>
http://www.eclipsezone.com/eclipse/forums/m91980917.html#91980917).
If that's all your plugin is intended for, the choice seems to be entirely up to you.
However, some plugins can be used by other plugins; such plugins expose packages to the clients. You must create a JAR file for a plugin that exposes packages, so that Eclipse's Plug-in Development Environment can locate the exported classes.
Note: if your plugin uses an external library, put it into edu.stanford.slac.external plugin and make that plugin required by your plugin.

How can I notify Eclipse about the change of "dirty"-ness of my WorkbenchPart?

Answered by Sergei Chevtsov, 07-11-2007

0. Make sure that your WorkbenchPart implements ISaveablePart.
1. Call WorkbenchPart.firePropertyChange(ISaveablePart.PROP_DIRTY).

...




SWT


How can I change the background/foreground color of a button?

...