Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to Modify (Play with) standard Eclipse Plugins?
How to Modify (Play with) standard Eclipse Plugins? [message #287785] Wed, 06 July 2005 19:29 Go to next message
Eclipse UserFriend
Originally posted by: sean.stewthecat.com

Hello,
What is the best approach for trying to tweak existing plugins? I tend
to learn best when I can copy existing code and play with it. I think
this should be rather straight forward in Eclipse, but seem to be
missing something(s) obvious.

For example, I am working on a personal plugin that shares a great deal
of functionality with the PDE plugin which edits plugin.xml. I am
building a multipage editor which shows a few different views of an xml
file. I would like to copy the appropriate PDE plugin parts and change
the GUI and domain logic, but keep or update much of the administrative
logic (i.e. updating the source view when changes occur in the form view).

When I import the plugin/fragment for the org.eclipse.pd.source
(eclipse version 3.1), I get very promising folder structures. But then
in place of actual source, all I get is the src.zip. Do I _really_ need
to find all of these and unzip them? So much else about eclipse seems so
developer friendly, I can't help feeling I am approaching this
wrong-headedly.
TIA,

Sean
Re: How to Modify (Play with) standard Eclipse Plugins? [message #287824 is a reply to message #287785] Thu, 07 July 2005 05:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Sean O'Connor wrote:

> Hello,
> What is the best approach for trying to tweak existing plugins? I
> tend to learn best when I can copy existing code and play with it. I
> think this should be rather straight forward in Eclipse, but seem to
> be missing something(s) obvious.

Use File > Import... > External Plug-ins and Fragments and simply choose
to import those plug-ins as source.

Dani

>
> For example, I am working on a personal plugin that shares a great
> deal of functionality with the PDE plugin which edits plugin.xml. I am
> building a multipage editor which shows a few different views of an
> xml file. I would like to copy the appropriate PDE plugin parts and
> change the GUI and domain logic, but keep or update much of the
> administrative logic (i.e. updating the source view when changes occur
> in the form view).
>
> When I import the plugin/fragment for the org.eclipse.pd.source
> (eclipse version 3.1), I get very promising folder structures. But
> then in place of actual source, all I get is the src.zip. Do I
> _really_ need to find all of these and unzip them? So much else about
> eclipse seems so developer friendly, I can't help feeling I am
> approaching this wrong-headedly.
> TIA,
>
> Sean
Re: How to Modify (Play with) standard Eclipse Plugins? [message #287959 is a reply to message #287824] Fri, 08 July 2005 20:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.objfac.com

Daniel Megert wrote:
> Use File > Import... > External Plug-ins and Fragments and simply choose
> to import those plug-ins as source.

Then set up a Run configuration that loads those plugins from your
workspace instead of the platform, so you can change and see the effect
quickly (well, not real slowly).

Bob
Re: How to Modify (Play with) standard Eclipse Plugins? - thanks/summary [message #287973 is a reply to message #287959] Sat, 09 July 2005 13:43 Go to previous message
Eclipse UserFriend
Originally posted by: sean.stewthecat.com

Bob Foster wrote:
> Daniel Megert wrote:
>
>> Use File > Import... > External Plug-ins and Fragments and simply
>> choose to import those plug-ins as source.
>
>
> Then set up a Run configuration that loads those plugins from your
> workspace instead of the platform, so you can change and see the effect
> quickly (well, not real slowly).
>
> Bob

Bob & Dani,
Thank you for your postings. Sure enough, I just had a mental block.
Here is a quick summary for anyone who might be as mentally twisted as I
was:

- Eclipse 3.1
- File | Import | External Plug-ins and Fragments <Next>
- Import From (check default target platform, <eclipse home>)
this should allow you to import 'core' plugins
from the eclipse installation you are running
- Import As | Projects with Source folders

Note: I got distracted by trying to work with "source" folders, for example:
org.eclipse.pde.source (3.1.0)

It appears now that I was just making things more complicated than
necessary (rtfm...). I now believe it's just as simple as importing:
org.eclipse.pde.ui (3.1.0)

Note: versions in parenthesis would match your version of eclipse.

It seems that when I created a new Debug Configuration:
Run | Debug | [New]

Eclipse is smart enough to use my freshly imported org.eclipse.pde.ui
found in my workspace, and uncheck the 'standard' version in the actual
eclipse program folder. Very nice.

I assume not many people will have this same problem, but perhaps
someone will find this summary helpful.
Thanks again to a helpful community,

Sean
Previous Topic:Eclipse 3.02 Visual Editor
Next Topic:icon for a resource based on the content-type ?
Goto Forum:
  


Current Time: Wed Jul 23 12:01:45 EDT 2025

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

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

Back to the top