|
|
Re: No more visual class after importing project [message #502100 is a reply to message #502094] |
Sat, 05 December 2009 17:49 |
David Wegener 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 #617546 is a reply to message #617542] |
Sat, 05 December 2009 17:49 |
David Wegener 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.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05606 seconds