How can I restore VE project nature? [message #130782] |
Tue, 12 September 2006 11:51 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #614608 is a reply to message #130782] |
Tue, 12 September 2006 21:12 |
Eclipse User |
|
|
|
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 #614615 is a reply to message #130845] |
Wed, 13 September 2006 18:19 |
Eclipse User |
|
|
|
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>
>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03820 seconds