Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IMP » PrefSpec Wizard Not Working?
PrefSpec Wizard Not Working? [message #23500] Thu, 07 August 2008 15:34 Go to next message
Eclipse UserFriend
Originally posted by: mcriley.CohesionForce.com

I'm attempting to run the Preferences Specification wizard for a language
IDE.

When doing so I get the wizard dialog, accept all the defaults for the
language, and click Finish.

The only thing that appears to happen then is that an <extension> element
is added to the plugin.xml file. No code for the preferences specification
capability is generated (such as the
"Ada.imp.preferences.AdaPreferencesInitiailizer" class that is referenced
in the extension element), nor do I see any "pfsp" file that I can select
and edit with the PrefSpecs editor.

Right-clicking on my plug-in project I see that there are menu entries for
"Enable Presentation Spec Builder"--which I'm told "is not currently
available" when I select it--and "Enable prefspecs Builder", which appears
to do nothing other than flash a brief "Building workspace" message down
in the status line. If there is supposed to be some sort of "toggle
indicator" for the latter, as there is for "Enable LPG Builder", that's
not appearing.

To the best of my knowledge I've got all the IMP components and have been
making steady progress up to this point.

I'm running IMP 0.1.74 on Eclipse 3.3.2 on a Windows XP box.

Thanks...

Marc A. Criley
Cohesion Force, Inc.
Re: PrefSpec Wizard Not Working? [message #23587 is a reply to message #23500] Thu, 07 August 2008 20:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mcriley.CohesionForce.com

Marc A. Criley wrote:

> The only thing that appears to happen then is that an <extension> element
> is added to the plugin.xml file. No code for the preferences specification
> capability is generated (such as the
> "Ada.imp.preferences.AdaPreferencesInitiailizer" class that is referenced
> in the extension element), nor do I see any "pfsp" file that I can select
> and edit with the PrefSpecs editor.

Oooookay, I manually deleted the added extension element from the
plugin.xml file, exited Eclipse, and then restarted, and ran the PrefSpec
wizard as the first thing. This time it worked fine, generating
everything it needed to.

Marc A. Criley
Cohesion Force, Inc.
Re: PrefSpec Wizard Not Working? [message #23967 is a reply to message #23587] Mon, 25 August 2008 16:13 Go to previous message
Stan Sutton is currently offline Stan SuttonFriend
Messages: 121
Registered: July 2009
Senior Member
Marc,

I'm glad you got it to work, and I'm not sure why it didn't work as it
should have the first time.

There is a separate manual for preferences in the IMP documentation, but
this should be better documented in the general IMP user's guide.

When you run the PrefSpecs wizard, that should simply create the package
that will hold your preference-page implementation generate a
preference-specification skeleton into that package (a .pfsp file that
you would then customize). (And, as you noted, the plugin.xml file is
updated, in anticipation of the generation of the preference-related
classes.)

The PrefSpecs builder is, unfortunately, not enabled by default (our
wizard should probably do that when you run it in a project). So you
need to enable the builder manually. As you noted, the context menu for
the project has an item "Enable prefspecs Builder". All you should need
to do with that is select it. If you did that and observed the
"Building workspace ..." message on the status line (which you
indicated) then things *should* be fine. The building that occurs
should be the building of the Java classes that are generated by the
PrefSpecs builder based on the .pfsp file.

After the builder runs, you should see the various classes it generated
in the same package that contains the .pfsp file. I guess you've seen
those after going through the edit/restart exercise that you described.

In my experience, the builder has worked fine (once it's been enabled)
and it's never been necessary to manually edit the extension
specification or restart Eclipse to have the builder become operational.
Perhaps your Eclipse execution had just gotten into some problematic
state which necessitated the restart.

If you're still having problems with this, please let us know here or
post a bug report.

Regards,

Stan


Marc A. Criley wrote:
> Marc A. Criley wrote:
>
>> The only thing that appears to happen then is that an <extension>
>> element is added to the plugin.xml file. No code for the preferences
>> specification capability is generated (such as the
>> "Ada.imp.preferences.AdaPreferencesInitiailizer" class that is
>> referenced in the extension element), nor do I see any "pfsp" file
>> that I can select and edit with the PrefSpecs editor.
>
> Oooookay, I manually deleted the added extension element from the
> plugin.xml file, exited Eclipse, and then restarted, and ran the
> PrefSpec wizard as the first thing. This time it worked fine,
> generating everything it needed to.
>
> Marc A. Criley
> Cohesion Force, Inc.
>
Re: PrefSpec Wizard Not Working? [message #572861 is a reply to message #23500] Thu, 07 August 2008 20:07 Go to previous message
Eclipse UserFriend
Originally posted by: mcriley.CohesionForce.com

Marc A. Criley wrote:

> The only thing that appears to happen then is that an <extension> element
> is added to the plugin.xml file. No code for the preferences specification
> capability is generated (such as the
> "Ada.imp.preferences.AdaPreferencesInitiailizer" class that is referenced
> in the extension element), nor do I see any "pfsp" file that I can select
> and edit with the PrefSpecs editor.

Oooookay, I manually deleted the added extension element from the
plugin.xml file, exited Eclipse, and then restarted, and ran the PrefSpec
wizard as the first thing. This time it worked fine, generating
everything it needed to.

Marc A. Criley
Cohesion Force, Inc.
Re: PrefSpec Wizard Not Working? [message #573105 is a reply to message #23587] Mon, 25 August 2008 16:13 Go to previous message
Stan Sutton is currently offline Stan SuttonFriend
Messages: 121
Registered: July 2009
Senior Member
Marc,

I'm glad you got it to work, and I'm not sure why it didn't work as it
should have the first time.

There is a separate manual for preferences in the IMP documentation, but
this should be better documented in the general IMP user's guide.

When you run the PrefSpecs wizard, that should simply create the package
that will hold your preference-page implementation generate a
preference-specification skeleton into that package (a .pfsp file that
you would then customize). (And, as you noted, the plugin.xml file is
updated, in anticipation of the generation of the preference-related
classes.)

The PrefSpecs builder is, unfortunately, not enabled by default (our
wizard should probably do that when you run it in a project). So you
need to enable the builder manually. As you noted, the context menu for
the project has an item "Enable prefspecs Builder". All you should need
to do with that is select it. If you did that and observed the
"Building workspace ..." message on the status line (which you
indicated) then things *should* be fine. The building that occurs
should be the building of the Java classes that are generated by the
PrefSpecs builder based on the .pfsp file.

After the builder runs, you should see the various classes it generated
in the same package that contains the .pfsp file. I guess you've seen
those after going through the edit/restart exercise that you described.

In my experience, the builder has worked fine (once it's been enabled)
and it's never been necessary to manually edit the extension
specification or restart Eclipse to have the builder become operational.
Perhaps your Eclipse execution had just gotten into some problematic
state which necessitated the restart.

If you're still having problems with this, please let us know here or
post a bug report.

Regards,

Stan


Marc A. Criley wrote:
> Marc A. Criley wrote:
>
>> The only thing that appears to happen then is that an <extension>
>> element is added to the plugin.xml file. No code for the preferences
>> specification capability is generated (such as the
>> "Ada.imp.preferences.AdaPreferencesInitiailizer" class that is
>> referenced in the extension element), nor do I see any "pfsp" file
>> that I can select and edit with the PrefSpecs editor.
>
> Oooookay, I manually deleted the added extension element from the
> plugin.xml file, exited Eclipse, and then restarted, and ran the
> PrefSpec wizard as the first thing. This time it worked fine,
> generating everything it needed to.
>
> Marc A. Criley
> Cohesion Force, Inc.
>
Previous Topic:AXDT requires version 0.1.75?
Next Topic:Access to Project or ParseController
Goto Forum:
  


Current Time: Mon Dec 30 14:39:13 GMT 2024

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

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

Back to the top