Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » No more visual class after importing project(No more visual class after importing project)
No more visual class after importing project [message #502092] Sat, 05 December 2009 15:22 Go to next message
jcz  is currently offline jcz Friend
Messages: 9
Registered: December 2009
Junior Member
I created a Java project on a computer with Eclipse. This project contains visual classes creted through the visual editor.
In order to work on a second computer, I copied all the files in the eclipse workspace, and imported the copied directory (File -> Import -> Existing project into workspace).
After the import, the formerly visual classes are only simple java classes.

Is it a known bug (I didn't find any info) ?
Do anybody know how to correct this ?

As I am a newcomer to this forum, I hope the information is sufficient.

I use :
Eclipse SDK
Version: 3.5.1
Build id: M20090917-0800
OS: Linux Linpus
Visual Editor version 1.4.0.v20090826-1446-777N-CcNBC0BwNk5HZZk

Thx for help !

JCZ
Re: No more visual class after importing project [message #502094 is a reply to message #502092] Sat, 05 December 2009 16:54 Go to previous messageGo to next message
jcz  is currently offline jcz Friend
Messages: 9
Registered: December 2009
Junior Member
Reading my above message, I noticed that I am not so clear by saying that it is not anymore a visual class.
The problem is that my Visual Editor doesn't display the Design view and the Source view, but only the source view (as for any Java class).
I hope it is a little bit more clear. Wink

Last minute:
I was able to have visual classes again, but it is not straightforward !
1. Delete the visual class wich doesn't display the full Visual Editor.
2. Create a visual class with File -> New -> Visual Class, whose name is the name of the class to import.
3. Close Eclipse.
4. With a file manager, overwrite the freshly created visual class with the .java file to import.
5. Re-launch Eclipse and open the imported class. F5 key must be pressed to resynchronize file.
... and everything is OK Wink ...but you get tired !!!

If anybody knows a better way, I would be grateful !

Thx in advance.

JCZ
Re: No more visual class after importing project [message #502100 is a reply to message #502094] Sat, 05 December 2009 17:49 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
jcz wrote:
> Reading my above message, I noticed that I am not so clear by saying
> that it is not anymore a visual class.
> The problem is that my Visual Editor doesn't display the Design view and
> the Source view, but only the source view (as for any Java class).
> I hope it is a little bit more clear. ;)
>
> Last minute:
> I was able to have visual classes again, but it is not straightforward !
> 1. Delete the visual class wich doesn't display the full Visual Editor.
> 2. Create a visual class with File -> New -> Visual Class, whose name is
> the name of the class to import.
> 3. Close Eclipse.
> 4. With a file manager, overwrite the freshly created visual class with
> the .java file to import.
> 5. Re-launch Eclipse and open the imported class. F5 key must be pressed
> to resynchronize file.
> .. and everything is OK ;) ...but you get tired !!!
>
> If anybody knows a better way, I would be grateful !
>
> Thx in advance.
>
> JCZ
My guess is that the new workspace doesn't know to open the java files
as visual classes. There are two editors involved with visual classes.
The standard Java editor and the Visual editor. The default editor
for a java file is the standard Java editor. If a workspace has never
opened a java file before, it will use the standard Java editor. You
have to specify to open the file in the Visual editor in order to change
the default for that file.

Right click on the java file you want to open in the Visual editor,
select Open With, and then select Visual Editor. The workspace
remembers the last editor used on a file. You can switch back to using
the Java editor by using Open With. In fact, you can have the file
opened in both editors simultaneously.
Re: No more visual class after importing project [message #502107 is a reply to message #502100] Sat, 05 December 2009 19:26 Go to previous messageGo to next message
jcz  is currently offline jcz Friend
Messages: 9
Registered: December 2009
Junior Member
Thank you for the trick.
It works perfectly.

JCZ
Re: No more visual class after importing project [message #516435 is a reply to message #502100] Tue, 23 February 2010 22:12 Go to previous messageGo to next message
diego  is currently offline diego Friend
Messages: 2
Registered: February 2010
Junior Member
Laughing

You saved me from switching to Netbeans ...

Thanks!

ciao!
Re: No more visual class after importing project [message #617542 is a reply to message #502092] Sat, 05 December 2009 16:54 Go to previous messageGo to next message
jcz  is currently offline jcz Friend
Messages: 9
Registered: December 2009
Junior Member
Reading my above message, I noticed that I am not so clear by saying that it is not anymore a visual class.
The problem is that my Visual Editor doesn't display the Design view and the Source view, but only the source view (as for any Java class).
I hope it is a little bit more clear. ;)

Last minute:
I was able to have visual classes again, but it is not straightforward !
1. Delete the visual class wich doesn't display the full Visual Editor.
2. Create a visual class with File -> New -> Visual Class, whose name is the name of the class to import.
3. Close Eclipse.
4. With a file manager, overwrite the freshly created visual class with the .java file to import.
5. Re-launch Eclipse and open the imported class. F5 key must be pressed to resynchronize file.
... and everything is OK ;) ...but you get tired !!!

If anybody knows a better way, I would be grateful !

Thx in advance.

JCZ
Re: No more visual class after importing project [message #617546 is a reply to message #617542] Sat, 05 December 2009 17:49 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
jcz wrote:
> Reading my above message, I noticed that I am not so clear by saying
> that it is not anymore a visual class.
> The problem is that my Visual Editor doesn't display the Design view and
> the Source view, but only the source view (as for any Java class).
> I hope it is a little bit more clear. ;)
>
> Last minute:
> I was able to have visual classes again, but it is not straightforward !
> 1. Delete the visual class wich doesn't display the full Visual Editor.
> 2. Create a visual class with File -> New -> Visual Class, whose name is
> the name of the class to import.
> 3. Close Eclipse.
> 4. With a file manager, overwrite the freshly created visual class with
> the .java file to import.
> 5. Re-launch Eclipse and open the imported class. F5 key must be pressed
> to resynchronize file.
> .. and everything is OK ;) ...but you get tired !!!
>
> If anybody knows a better way, I would be grateful !
>
> Thx in advance.
>
> JCZ
My guess is that the new workspace doesn't know to open the java files
as visual classes. There are two editors involved with visual classes.
The standard Java editor and the Visual editor. The default editor
for a java file is the standard Java editor. If a workspace has never
opened a java file before, it will use the standard Java editor. You
have to specify to open the file in the Visual editor in order to change
the default for that file.

Right click on the java file you want to open in the Visual editor,
select Open With, and then select Visual Editor. The workspace
remembers the last editor used on a file. You can switch back to using
the Java editor by using Open With. In fact, you can have the file
opened in both editors simultaneously.
Re: No more visual class after importing project [message #617548 is a reply to message #502100] Sat, 05 December 2009 19:26 Go to previous messageGo to next message
jcz  is currently offline jcz Friend
Messages: 9
Registered: December 2009
Junior Member
Thank you for the trick.
It works perfectly.

JCZ
Re: No more visual class after importing project [message #618372 is a reply to message #502100] Tue, 23 February 2010 22:12 Go to previous message
diego  is currently offline diego Friend
Messages: 2
Registered: February 2010
Junior Member
:lol:

You saved me from switching to Netbeans ...

Thanks!

ciao!
Previous Topic:GridBagLayout problems in VE 1.4 in fedora 11 eclipse (3.4.2)
Next Topic:"Mark occurrences" in visual editor faulty? [VE on Galileo]
Goto Forum:
  


Current Time: Sat Apr 20 13:12:28 GMT 2024

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

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

Back to the top