Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » How can I restore VE project nature?
How can I restore VE project nature? [message #130782] Tue, 12 September 2006 11:51 Go to next message
Eclipse UserFriend
Originally posted by: Nick.Westgate.gmail.com

Hi.

I've got a project that was refactored by someone else both inside and
outside the Eclipse environment, and then checked into a SVN repository.

The VE files are unchanged, but the project natures no longer include VE.
Is there a safe way to restore that, and to preserve it in SVN?

I did create a test project in which I see the natures, but hacking those
into the .project did not work and is surely a Bad Thing. There must be
some secret sauce I'm missing.

Cheers,
Nick.
Re: How can I restore VE project nature? [message #130796 is a reply to message #130782] Tue, 12 September 2006 21:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

If you are at VE 1.2 there is no VE nature. There used to be a VE
builder in earlier versions of VE, but that was removed.

Nick Westgate wrote:
> Hi.
>
> I've got a project that was refactored by someone else both inside and
> outside the Eclipse environment, and then checked into a SVN repository.
>
> The VE files are unchanged, but the project natures no longer include
> VE. Is there a safe way to restore that, and to preserve it in SVN?
>
> I did create a test project in which I see the natures, but hacking
> those into the .project did not work and is surely a Bad Thing. There
> must be some secret sauce I'm missing.
>
> Cheers,
> Nick.
>
Re: How can I restore VE project nature? [message #130809 is a reply to message #130796] Wed, 13 September 2006 02:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Nick.Westgate.gmail.com

True, it seems there is no nature specific to VE. But if I create a
"Visual Class" these natures are added to the project:
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.jem.beaninfo.BeanInfoNature</nature>

I'm using VE 1.2 on Eclipse 3.2 (sorry for omitting that) so I'm wondering
how I can convince the VE editor to open these visual classes again. (The
classes were created with a previous version of VE earlier this year.)

In fact I would be genuinely interested to find out how VE knows which
source files to associate itself with if the natures are not relevant.

Cheers,
Nick.


Rich Kulp wrote:

> If you are at VE 1.2 there is no VE nature. There used to be a VE
> builder in earlier versions of VE, but that was removed.
Re: How can I restore VE project nature? [message #130845 is a reply to message #130809] Wed, 13 September 2006 10:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Nick.Westgate.gmail.com

To answer my own questions, it seems that these natures are added to a
project when the action "Open With->Visual Editor" is performed. The
per-file preference as to which editor opens the java file is stored in
the workspace ".metadata" folder, which is unfortunate as it is not SCM
(SVN etc) friendly.

Still, VE is fantastic, so kudos to the devs.

Cheers,
Nick.

> True, it seems there is no nature specific to VE. But if I create a
> "Visual Class" these natures are added to the project:
> <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
> <nature>org.eclipse.jem.beaninfo.BeanInfoNature</nature>
Re: How can I restore VE project nature? [message #130883 is a reply to message #130845] Wed, 13 September 2006 18:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

VE can open ANY java file. Just do Open With->Visual Editor. The problem
you were having is that once you restored from SVN Eclipse simply forgot
what the last editor it used to open the file with. That's all the
magic, basically the last editor used to open the file. When you created
using the Wizard it opened it with the VE, so the VE was the last editor
used. If you then used the standard java editor, the java editor would
become the default until you opened again with VE.

Nick Westgate wrote:
> To answer my own questions, it seems that these natures are added to a
> project when the action "Open With->Visual Editor" is performed. The
> per-file preference as to which editor opens the java file is stored in
> the workspace ".metadata" folder, which is unfortunate as it is not SCM
> (SVN etc) friendly.
>
> Still, VE is fantastic, so kudos to the devs.
>
> Cheers,
> Nick.
>
>> True, it seems there is no nature specific to VE. But if I create a
>> "Visual Class" these natures are added to the project:
>> <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
>> <nature>org.eclipse.jem.beaninfo.BeanInfoNature</nature>
>
>
>
Re: How can I restore VE project nature? [message #130897 is a reply to message #130883] Wed, 13 September 2006 18:25 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Also thanks for the kudos. :-)

>>
>> Still, VE is fantastic, so kudos to the devs.
Re: How can I restore VE project nature? [message #614608 is a reply to message #130782] Tue, 12 September 2006 21:12 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

If you are at VE 1.2 there is no VE nature. There used to be a VE
builder in earlier versions of VE, but that was removed.

Nick Westgate wrote:
> Hi.
>
> I've got a project that was refactored by someone else both inside and
> outside the Eclipse environment, and then checked into a SVN repository.
>
> The VE files are unchanged, but the project natures no longer include
> VE. Is there a safe way to restore that, and to preserve it in SVN?
>
> I did create a test project in which I see the natures, but hacking
> those into the .project did not work and is surely a Bad Thing. There
> must be some secret sauce I'm missing.
>
> Cheers,
> Nick.
>
Re: How can I restore VE project nature? [message #614609 is a reply to message #130796] Wed, 13 September 2006 02:34 Go to previous message
Nick Westgate is currently offline Nick WestgateFriend
Messages: 5
Registered: July 2009
Junior Member
True, it seems there is no nature specific to VE. But if I create a
"Visual Class" these natures are added to the project:
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.jem.beaninfo.BeanInfoNature</nature>

I'm using VE 1.2 on Eclipse 3.2 (sorry for omitting that) so I'm wondering
how I can convince the VE editor to open these visual classes again. (The
classes were created with a previous version of VE earlier this year.)

In fact I would be genuinely interested to find out how VE knows which
source files to associate itself with if the natures are not relevant.

Cheers,
Nick.


Rich Kulp wrote:

> If you are at VE 1.2 there is no VE nature. There used to be a VE
> builder in earlier versions of VE, but that was removed.
Re: How can I restore VE project nature? [message #614612 is a reply to message #130809] Wed, 13 September 2006 10:53 Go to previous message
Nick Westgate is currently offline Nick WestgateFriend
Messages: 5
Registered: July 2009
Junior Member
To answer my own questions, it seems that these natures are added to a
project when the action "Open With->Visual Editor" is performed. The
per-file preference as to which editor opens the java file is stored in
the workspace ".metadata" folder, which is unfortunate as it is not SCM
(SVN etc) friendly.

Still, VE is fantastic, so kudos to the devs.

Cheers,
Nick.

> True, it seems there is no nature specific to VE. But if I create a
> "Visual Class" these natures are added to the project:
> <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
> <nature>org.eclipse.jem.beaninfo.BeanInfoNature</nature>
Re: How can I restore VE project nature? [message #614615 is a reply to message #130845] Wed, 13 September 2006 18:19 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

VE can open ANY java file. Just do Open With->Visual Editor. The problem
you were having is that once you restored from SVN Eclipse simply forgot
what the last editor it used to open the file with. That's all the
magic, basically the last editor used to open the file. When you created
using the Wizard it opened it with the VE, so the VE was the last editor
used. If you then used the standard java editor, the java editor would
become the default until you opened again with VE.

Nick Westgate wrote:
> To answer my own questions, it seems that these natures are added to a
> project when the action "Open With->Visual Editor" is performed. The
> per-file preference as to which editor opens the java file is stored in
> the workspace ".metadata" folder, which is unfortunate as it is not SCM
> (SVN etc) friendly.
>
> Still, VE is fantastic, so kudos to the devs.
>
> Cheers,
> Nick.
>
>> True, it seems there is no nature specific to VE. But if I create a
>> "Visual Class" these natures are added to the project:
>> <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
>> <nature>org.eclipse.jem.beaninfo.BeanInfoNature</nature>
>
>
>
Re: How can I restore VE project nature? [message #614616 is a reply to message #130883] Wed, 13 September 2006 18:25 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Also thanks for the kudos. :-)

>>
>> Still, VE is fantastic, so kudos to the devs.
Previous Topic:Update Error:
Next Topic:Visual classes in other language (e.g, XML-based)
Goto Forum:
  


Current Time: Thu Apr 25 02:09:30 GMT 2024

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

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

Back to the top