"Design" and "Source" buttons disappear

Swing Designer allows you to quickly create the frames, panels, dialogs, applets and other UI elements that comprise Java Swing applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

"Design" and "Source" buttons disappear

Postby Bach » Sun May 01, 2005 8:05 am

Hi,
I'm new to this :)

After making some changes to my projects, which I had experieced some out of memory error, java heap memory errors, the "Design" and "Resource" buttons in my project disappeared on some of the other classes that I did not touch.

I only noticed this when I realized I had to make changes to those classes but unable to get back to the designer screen.

Is it because of my memory error? of which the performance degrades as I made more changes/add more components ...
I tried to alleviate this performance issue by entered

java -Xms128m -Xmx384m

that didn't seem to help.
Bach
 

Re: "Design" and "Source" buttons disapp

Postby Eric Clayberg » Sun May 01, 2005 3:31 pm

Bach wrote:After making some changes to my projects, which I had experieced some out of memory error, java heap memory errors, the "Design" and "Resource" buttons in my project disappeared on some of the other classes that I did not touch.

It sounds like you are editing the file with the standard Eclipse Java Editor rather than the Designer Editor.

Open the file with the Designer Editor and you will be fine. See the Designer FAQ for help.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Thanks Eric

Postby Bach » Sun May 01, 2005 5:47 pm

Well it seems that perhaps Eclipse had a hicup?

I "closed all programs" and reopened the packages in the workspace windows....this time all classes had both "Design" and "Source" button.
Earlier only some classes had both buttons appeared.

I don't have the "Open with designer" option under "File". I'm using eclipse 3.0.1.
Thanks Eric for a quick reply!!!
:D
Bach
 

Re: Thanks Eric

Postby Eric Clayberg » Sun May 01, 2005 6:02 pm

Bach wrote:Well it seems that perhaps Eclipse had a hicup?

Eclipse is responsible for remembering the last editor used for a file.

Sometimes it forgets and reverts to the default (for Java files, this is the default Java Editor).

In cases like that, you simply need to reopen the file with the Designer Editor as shown in the Designer FAQ.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby Guest » Thu May 05, 2005 6:59 am

Just a footnotes to those who may be interested...

In some Eclipse version, it doesn't have "Open with Designer" option.
In this case, you "close all" then reopen and Eclipse should get both the "Design" and "Source" buttons to reappear.
Guest
 

Postby Eric Clayberg » Thu May 05, 2005 7:07 am

Anonymous wrote:In some Eclipse version, it doesn't have "Open with Designer" option.

Not true.

The Open With > Designer Editor option is available in all versions of Eclipse that we support (2.1.x, 3.0.x and 3.1 M6).
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to Swing Designer

Who is online

Users browsing this forum: No registered users and 1 guest