Skip to main content



      Home
Home » Archived » Visual Editor (VE) » Visual Cafe
Visual Cafe [message #80368] Thu, 17 February 2005 04:32 Go to next message
Eclipse UserFriend
Hi,

my company has a rather large project which was build using VCafe. Since
we all know what the problem with VCafe is nowadays we are planning to
migrate to another IDE. Eclipse seems to be really the best tool out
there at the moment, but there is the problem of migrating the existing
GUI to VE. Although I did search quite a lot on the web and the
newsgroup I couldn't find any answer to my question whether it is
possible to migrate from VCafe to VE or not (without rewriting the bulk
of the GUI manually). So if anyone could help me out here I would be
really greatful.

Thanks in advance,
Hendrik Nibbrig
Re: Visual Cafe [message #80426 is a reply to message #80368] Thu, 17 February 2005 09:21 Go to previous messageGo to next message
Eclipse UserFriend
Hendrik Nibbrig wrote:
> Hi,
>
> my company has a rather large project which was build using VCafe. Since
> we all know what the problem with VCafe is nowadays we are planning to
> migrate to another IDE. Eclipse seems to be really the best tool out
> there at the moment, but there is the problem of migrating the existing
> GUI to VE. Although I did search quite a lot on the web and the
> newsgroup I couldn't find any answer to my question whether it is
> possible to migrate from VCafe to VE or not (without rewriting the bulk
> of the GUI manually). So if anyone could help me out here I would be
> really greatful.
>
> Thanks in advance,
> Hendrik Nibbrig
We have not played much with VCafe generated code, but if you attach
simple patterns that VE has problems with we can tell you what is needed
to make VE recognize it. You can also open a bugzilla with this
information for supporting these patterns.
Re: Visual Cafe [message #80506 is a reply to message #80426] Fri, 18 February 2005 02:17 Go to previous messageGo to next message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------090406090601020106060008
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

thank you for your answer. I took a look at the "Source Code Pattern"
page and I'm pretty sure that I know what I would have to do to make VE
recognize it. But I was hoping that someone would already have written a
plugin to do this automatically. I can't believe I'm the first one with
this problem or rather to first one not wanting to do this by hand.
I attached an example. As you can see one of the major problems is that
Cafe uses its own classes and that it initializes everything in the
constructor.
I also entered an enhancement request as you suggested, but I guess for
now I'm stuck to recoding the project by hand.

Gili Mendel schrieb:
> Hendrik Nibbrig wrote:
>
>> Hi,
>>
>> my company has a rather large project which was build using VCafe.
>> Since we all know what the problem with VCafe is nowadays we are
>> planning to migrate to another IDE. Eclipse seems to be really the
>> best tool out there at the moment, but there is the problem of
>> migrating the existing GUI to VE. Although I did search quite a lot on
>> the web and the newsgroup I couldn't find any answer to my question
>> whether it is possible to migrate from VCafe to VE or not (without
>> rewriting the bulk of the GUI manually). So if anyone could help me
>> out here I would be really greatful.
>>
>> Thanks in advance,
>> Hendrik Nibbrig
>
> We have not played much with VCafe generated code, but if you attach
> simple patterns that VE has problems with we can tell you what is needed
> to make VE recognize it. You can also open a bugzilla with this
> information for supporting these patterns.


--------------090406090601020106060008
Content-Type: text/plain;
name="AboDefinitionDialog.java"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline;
filename="AboDefinitionDialog.java"

package de.hologarage.firstgate.anbieter;

import java.awt.*;
import javax.swing.*;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;

import de.hologarage.firstgate.shared.Language;
import de.hologarage.firstgate.shared.MainFrame;
import de.hologarage.firstgate.shared.gui.ComponentResizedHandler;
import de.hologarage.firstgate.shared.gui.LimitedTextFieldDocument;


final class AboDefinitionDialog extends javax.swing.JDialog {
private boolean isCancelled = true;
private String myName = "";

//{{DECLARE_CONTROLS
javax.swing.JPanel mainPanel = new javax.swing.JPanel();
javax.swing.JLabel aboDefName = new javax.swing.JLabel();
javax.swing.JTextField nameField = new javax.swing.JTextField();
javax.swing.JScrollPane textScrollPane = new javax.swing.JScrollPane();
javax.swing.JTextArea descField = new javax.swing.JTextArea();
javax.swing.JPanel buttonsPanel = new javax.swing.JPanel();
javax.swing.JButton okButton = new javax.swing.JButton();
javax.swing.JButton cancelButton = new javax.swing.JButton();
com.symantec.itools.javax.swing.borders.TitledBorder titledBorder1 = new com.symantec.itools.javax.swing.borders.TitledBorder();
com.symantec.itools.javax.swing.borders.TitledBorder descBorder = new com.symantec.itools.javax.swing.borders.TitledBorder();
//}}

//
// Constructors
//
public AboDefinitionDialog( String aName, String aDesc ) {
super(MainFrame.getInstance(), true);


// This code is automatically generated by Visual Cafe when you add
// components to the visual environment. It instantiates and initializes
// the components. To modify the code, only use code syntax that matches
// what Visual Cafe can generate, or Visual Cafe may be unable to back
// parse your Java file into its visual environment.
//{{INIT_CONTROLS
setModal(true);
setDefaultCloseOperation(javax.swing.JFrame.DISPOSE_ON_CLOSE );
getContentPane().setLayout(new GridBagLayout());
setSize(400,250);
setVisible(false);
mainPanel.setBorder(titledBorder1);
mainPanel.setLayout(new GridBagLayout());
getContentPane().add(mainPanel, new com.symantec.itools.awt.GridBagConstraintsD(0,0,1,1,1.0,1.0, java.awt.GridBagConstraints.CENTER,java.awt.GridBagConstrain ts.BOTH,new Insets(4,4,0,4),4,0));
aboDefName.setText("Name:");
mainPanel.add(aboDefName, new com.symantec.itools.awt.GridBagConstraintsD(0,0,1,1,0.0,0.0, java.awt.GridBagConstraints.CENTER,java.awt.GridBagConstrain ts.NONE,new Insets(4,4,4,4),0,0));
mainPanel.add(nameField, new com.symantec.itools.awt.GridBagConstraintsD(1,0,1,1,1.0,0.0, java.awt.GridBagConstraints.WEST,java.awt.GridBagConstraints .HORIZONTAL,new Insets(0,0,0,0),0,0));
textScrollPane.setHorizontalScrollBarPolicy(javax.swing.Scro llPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
textScrollPane.setOpaque(true);
textScrollPane.setBorder(descBorder);
mainPanel.add(textScrollPane, new com.symantec.itools.awt.GridBagConstraintsD(0,2,2,1,1.0,1.0, java.awt.GridBagConstraints.CENTER,java.awt.GridBagConstrain ts.BOTH,new Insets(4,2,4,2),0,0));
descField.setLineWrap(true);
descField.setWrapStyleWord(true);
descField.setNextFocusableComponent(okButton);
textScrollPane.getViewport().add(descField);
descField.setBounds(0,0,368,147);
buttonsPanel.setLayout(new GridBagLayout());
getContentPane().add(buttonsPanel, new com.symantec.itools.awt.GridBagConstraintsD(0,2,1,1,1.0,0.0, java.awt.GridBagConstraints.CENTER,java.awt.GridBagConstrain ts.HORIZONTAL,new Insets(0,0,0,0),0,0));
okButton.setText("Ok");
okButton.setActionCommand("OK");
okButton.setNextFocusableComponent(cancelButton);
buttonsPanel.add(okButton, new com.symantec.itools.awt.GridBagConstraintsD(0,1,1,1,1.0,0.0, java.awt.GridBagConstraints.EAST,java.awt.GridBagConstraints .NONE,new Insets(4,0,4,4),0,0));
okButton.setBackground(java.awt.Color.orange);
cancelButton.setText("Abbrechen");
cancelButton.setActionCommand("Abbrechen");
buttonsPanel.add(cancelButton, new com.symantec.itools.awt.GridBagConstraintsD(1,1,1,1,0.0,0.0, java.awt.GridBagConstraints.EAST,java.awt.GridBagConstraints .NONE,new Insets(4,0,4,4),0,0));
cancelButton.setBackground(java.awt.Color.orange);
//$$ titledBorder1.move(0,336);
descBorder.setTitle("Beschreibung");
//$$ descBorder.move(24,336);
//}}

okButton.setText(Language.get().getString(Language.SC_OK)); //"Ok"
cancelButton.setText(Language.get().getString(Language.SC_CA NCEL)); //"Abbrechen"
aboDefName.setText( Language.get().getString(Language.SC_ABODEFDIALOG_NAME)); // Name:
descBorder.setTitle(Language.get().getString(Language.SC_ABO DEFDIALOG_DESC)); // Beschreibung

// Namen d
Re: Visual Cafe [message #80611 is a reply to message #80506] Fri, 18 February 2005 10:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: no.ddress.here

In article <cv44qq$vr6$1@www.eclipse.org>, nibbrig@flux-software.com
says...
> Hi,
>
> thank you for your answer. I took a look at the "Source Code Pattern"
> page and I'm pretty sure that I know what I would have to do to make VE
> recognize it. But I was hoping that someone would already have written a
> plugin to do this automatically. I can't believe I'm the first one with
> this problem or rather to first one not wanting to do this by hand.
> I attached an example. As you can see one of the major problems is that
> Cafe uses its own classes and that it initializes everything in the
> constructor.
> I also entered an enhancement request as you suggested, but I guess for
> now I'm stuck to recoding the project by hand.

You might try Jigloo from www.cloudgarden.com. It generally does not
place restrictions on where the GUI code is within the class files (does
not rely on delimiting comment tags like VC). Also, since the
structured coding pattern used by VC is so regular (often considered one
of VCs limitations), you could just write a small Perl program to one-
time preprocess the source of your project into a more desirable pattern
of your choice.

>
> Gili Mendel schrieb:
> > Hendrik Nibbrig wrote:
> >
> >> Hi,
> >>
> >> my company has a rather large project which was build using VCafe.
> >> Since we all know what the problem with VCafe is nowadays we are
> >> planning to migrate to another IDE. Eclipse seems to be really the
> >> best tool out there at the moment, but there is the problem of
> >> migrating the existing GUI to VE. Although I did search quite a lot on
> >> the web and the newsgroup I couldn't find any answer to my question
> >> whether it is possible to migrate from VCafe to VE or not (without
> >> rewriting the bulk of the GUI manually). So if anyone could help me
> >> out here I would be really greatful.
> >>
> >> Thanks in advance,
> >> Hendrik Nibbrig
Re: Visual Cafe [message #81164 is a reply to message #80506] Mon, 21 February 2005 21:01 Go to previous messageGo to next message
Eclipse UserFriend
"Hendrik Nibbrig" <nibbrig@flux-software.com> wrote in message
news:cv44qq$vr6$1@www.eclipse.org...
>
> thank you for your answer. I took a look at the "Source Code Pattern"
> page and I'm pretty sure that I know what I would have to do to make VE
> recognize it. But I was hoping that someone would already have written a
> plugin to do this automatically. I can't believe I'm the first one with
> this problem or rather to first one not wanting to do this by hand.
> I attached an example. As you can see one of the major problems is that
> Cafe uses its own classes and that it initializes everything in the
> constructor.

You might also look at Swing Designer v3.0.1...

http://www.swing-designer.com/

It handles your example just fine including the custom GridBagConstraints
and TitledBorders. Here are some screen shots...

http://www.instantiations.com/swing-designer/images/AboDefin itionDialog1.gif
http://www.instantiations.com/swing-designer/images/AboDefin itionDialog2.gif

Note that Swing Designer is a commercial tool with a $199 list price (lower
cost NC and academic licenses are available). A free, feature-limited
edition is also available as is a time-limited eval version of the entire
product (for Eclipse 2.1, 3.0 or 3.1 M5).

-Eric Clayberg
Sr. Vice President of Product Development
Instantiations, Inc.
http://www.instantiations.com
http://www.swt-designer.com

Author: "Eclipse: Building Commercial Quality Plug-ins"
http://www.awprofessional.com/title/0321228472
Re: Visual Cafe [message #81468 is a reply to message #81164] Wed, 23 February 2005 04:31 Go to previous messageGo to next message
Eclipse UserFriend
Thank you for your suggestion. I am trying the eval version right now
and after I removed the special classes used by VC the swing designer
was able to parse the file. Unfortunately it does not display the entire
dialog correctly. I will keep on trying. Thanks again.

Eric Clayberg schrieb:
> "Hendrik Nibbrig" <nibbrig@flux-software.com> wrote in message
> news:cv44qq$vr6$1@www.eclipse.org...
>
>>thank you for your answer. I took a look at the "Source Code Pattern"
>>page and I'm pretty sure that I know what I would have to do to make VE
>>recognize it. But I was hoping that someone would already have written a
>>plugin to do this automatically. I can't believe I'm the first one with
>>this problem or rather to first one not wanting to do this by hand.
>>I attached an example. As you can see one of the major problems is that
>>Cafe uses its own classes and that it initializes everything in the
>>constructor.
>

>
> You might also look at Swing Designer v3.0.1...
>
> http://www.swing-designer.com/
>
> It handles your example just fine including the custom GridBagConstraints
> and TitledBorders. Here are some screen shots...
>
> http://www.instantiations.com/swing-designer/images/AboDefin itionDialog1.gif
> http://www.instantiations.com/swing-designer/images/AboDefin itionDialog2.gif
>
> Note that Swing Designer is a commercial tool with a $199 list price (lower
> cost NC and academic licenses are available). A free, feature-limited
> edition is also available as is a time-limited eval version of the entire
> product (for Eclipse 2.1, 3.0 or 3.1 M5).
>
> -Eric Clayberg
> Sr. Vice President of Product Development
> Instantiations, Inc.
> http://www.instantiations.com
> http://www.swt-designer.com
>
> Author: "Eclipse: Building Commercial Quality Plug-ins"
> http://www.awprofessional.com/title/0321228472
>
>
Re: Visual Cafe [message #81484 is a reply to message #80611] Wed, 23 February 2005 04:38 Go to previous messageGo to next message
Eclipse UserFriend
Thank you for your suggestion. I am testing the non commercial version
right now. After removing the special classes used by VC the file was
parsed and displayed correctly. Quite impressive. I will keep on testing
the tool for a while and will then talk to our management if the tool
keeps up the performance.

Gerald Rosenberg schrieb:
> In article <cv44qq$vr6$1@www.eclipse.org>, nibbrig@flux-software.com
> says...
>
>>Hi,
>>
>>thank you for your answer. I took a look at the "Source Code Pattern"
>>page and I'm pretty sure that I know what I would have to do to make VE
>>recognize it. But I was hoping that someone would already have written a
>>plugin to do this automatically. I can't believe I'm the first one with
>>this problem or rather to first one not wanting to do this by hand.
>>I attached an example. As you can see one of the major problems is that
>>Cafe uses its own classes and that it initializes everything in the
>>constructor.
>>I also entered an enhancement request as you suggested, but I guess for
>>now I'm stuck to recoding the project by hand.
>
>
> You might try Jigloo from www.cloudgarden.com. It generally does not
> place restrictions on where the GUI code is within the class files (does
> not rely on delimiting comment tags like VC). Also, since the
> structured coding pattern used by VC is so regular (often considered one
> of VCs limitations), you could just write a small Perl program to one-
> time preprocess the source of your project into a more desirable pattern
> of your choice.
>
>
>>Gili Mendel schrieb:
>>
>>>Hendrik Nibbrig wrote:
>>>
>>>
>>>>Hi,
>>>>
>>>>my company has a rather large project which was build using VCafe.
>>>>Since we all know what the problem with VCafe is nowadays we are
>>>>planning to migrate to another IDE. Eclipse seems to be really the
>>>>best tool out there at the moment, but there is the problem of
>>>>migrating the existing GUI to VE. Although I did search quite a lot on
>>>>the web and the newsgroup I couldn't find any answer to my question
>>>>whether it is possible to migrate from VCafe to VE or not (without
>>>>rewriting the bulk of the GUI manually). So if anyone could help me
>>>>out here I would be really greatful.
>>>>
>>>>Thanks in advance,
>>>>Hendrik Nibbrig
Re: Visual Cafe [message #81500 is a reply to message #81468] Wed, 23 February 2005 08:37 Go to previous messageGo to next message
Eclipse UserFriend
"Hendrik Nibbrig" <nibbrig@flux-software.com> wrote in message
news:cvhih9$is9$1@www.eclipse.org...
> Thank you for your suggestion. I am trying the eval version right now and
> after I removed the special classes used by VC the swing designer was able
> to parse the file. Unfortunately it does not display the entire dialog
> correctly. I will keep on trying. Thanks again.

According to our records, you are using the v3.0.0 version fo Swing
Designer. I specifically suggested that you use the v3.0.1 version of
Designer which has better support for handling custom layout managers and
constraints (like the ones used by VC). The screen shots I posted were
created using the v3.0.1 version. As long as those VC classes are on your
path, Designer should be able to parse the file just fine (it certainly did
on my end as you can see in the screen shots).

-Eric Clayberg
Sr. Vice President of Product Development
Instantiations, Inc.
http://www.instantiations.com
http://www.swt-designer.com

Author: "Eclipse: Building Commercial Quality Plug-ins"
http://www.awprofessional.com/title/0321228472
Re: Visual Cafe [message #81667 is a reply to message #81500] Thu, 24 February 2005 11:20 Go to previous messageGo to next message
Eclipse UserFriend
Eric Clayberg wrote:
> "Hendrik Nibbrig" <nibbrig@flux-software.com> wrote in message
> news:cvhih9$is9$1@www.eclipse.org...
>
>>Thank you for your suggestion. I am trying the eval version right now and
>>after I removed the special classes used by VC the swing designer was able
>>to parse the file.

I would like to suggest that this thread be moved to an Instantiations
support forum. This forum is for discussing how to use the Eclipse
Visual Editor.


Best regards,

Dave Orme
--
Visual Editor Project lead
http://www.db4o.com -- The Open-source Java Object Database
Re: Visual Cafe [message #81708 is a reply to message #81667] Thu, 24 February 2005 17:23 Go to previous messageGo to next message
Eclipse UserFriend
"David J. Orme" <djo@coconut-palm-software.com> wrote in message
news:cvkut1$jfv$1@www.eclipse.org...
>
>>>Thank you for your suggestion. I am trying the eval version right now and
>>>after I removed the special classes used by VC the swing designer was
>>>able to parse the file.
>
> I would like to suggest that this thread be moved to an Instantiations
> support forum.

Thanks for the suggestion, but we had already taken it to private e-mail.

> This forum is for discussing how to use the Eclipse Visual Editor.

And as with many of the Eclipse newsgroups, its focus has expanded to
include all manner of Eclipse GUI builder related questions (including
questions on how to edit preexisting GUIs constructed by other tools such as
JBuilder, NetBeans, VisualCafe, etc.). In this case, I didn't start this
thread, but I did have some useful information for the user who did. Had the
VE been able to help him, I would not have responded. In the end, it's all
about helping folks with their problems, right?

-Eric Clayberg
Sr. Vice President of Product Development
Instantiations, Inc.
http://www.instantiations.com
http://www.swt-designer.com

Author: "Eclipse: Building Commercial Quality Plug-ins"
http://www.awprofessional.com/title/0321228472
Re: Visual Cafe [message #81840 is a reply to message #81708] Fri, 25 February 2005 15:32 Go to previous message
Eclipse UserFriend
Eric Clayberg wrote:
> And as with many of the Eclipse newsgroups, its focus has expanded to
> include all manner of Eclipse GUI builder related questions (including
> questions on how to edit preexisting GUIs constructed by other tools such as
> JBuilder, NetBeans, VisualCafe, etc.).

When someone asks how to do something in VE that VE doesn't do yet, I
have no problem with you guys posting a brief, unobtrusive message
encouraging them to check out SWT Designer.

Similarly, if someone wanted to know how to bind Swing controls to Java
Beans (something that VE doesn't do but Rational Designer does do), I
would have no problem if one of the IBM/Rational team encouraged them to
look at Rational Designer.

VE is a platform for GUI builders, both commercial and open-source, in
addition to being an exemplary tool in its own right.

So I have no problem with people mentioning value-add features that
their GUI builders have over VE when that is appropriate.

But discussion of how to use other GUI builders should stop there and
move to a more appropriate forum.


Regards,

Dave Orme
--
Visual Editor Project lead
http://www.db4o.com -- The Open-source Java Object Database
Re: Visual Cafe [message #605322 is a reply to message #80368] Thu, 17 February 2005 09:21 Go to previous message
Eclipse UserFriend
Hendrik Nibbrig wrote:
> Hi,
>
> my company has a rather large project which was build using VCafe. Since
> we all know what the problem with VCafe is nowadays we are planning to
> migrate to another IDE. Eclipse seems to be really the best tool out
> there at the moment, but there is the problem of migrating the existing
> GUI to VE. Although I did search quite a lot on the web and the
> newsgroup I couldn't find any answer to my question whether it is
> possible to migrate from VCafe to VE or not (without rewriting the bulk
> of the GUI manually). So if anyone could help me out here I would be
> really greatful.
>
> Thanks in advance,
> Hendrik Nibbrig
We have not played much with VCafe generated code, but if you attach
simple patterns that VE has problems with we can tell you what is needed
to make VE recognize it. You can also open a bugzilla with this
information for supporting these patterns.
Re: Visual Cafe [message #605341 is a reply to message #80426] Fri, 18 February 2005 02:17 Go to previous message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------090406090601020106060008
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

thank you for your answer. I took a look at the "Source Code Pattern"
page and I'm pretty sure that I know what I would have to do to make VE
recognize it. But I was hoping that someone would already have written a
plugin to do this automatically. I can't believe I'm the first one with
this problem or rather to first one not wanting to do this by hand.
I attached an example. As you can see one of the major problems is that
Cafe uses its own classes and that it initializes everything in the
constructor.
I also entered an enhancement request as you suggested, but I guess for
now I'm stuck to recoding the project by hand.

Gili Mendel schrieb:
> Hendrik Nibbrig wrote:
>
>> Hi,
>>
>> my company has a rather large project which was build using VCafe.
>> Since we all know what the problem with VCafe is nowadays we are
>> planning to migrate to another IDE. Eclipse seems to be really the
>> best tool out there at the moment, but there is the problem of
>> migrating the existing GUI to VE. Although I did search quite a lot on
>> the web and the newsgroup I couldn't find any answer to my question
>> whether it is possible to migrate from VCafe to VE or not (without
>> rewriting the bulk of the GUI manually). So if anyone could help me
>> out here I would be really greatful.
>>
>> Thanks in advance,
>> Hendrik Nibbrig
>
> We have not played much with VCafe generated code, but if you attach
> simple patterns that VE has problems with we can tell you what is needed
> to make VE recognize it. You can also open a bugzilla with this
> information for supporting these patterns.


--------------090406090601020106060008
Content-Type: text/plain;
name="AboDefinitionDialog.java"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline;
filename="AboDefinitionDialog.java"

package de.hologarage.firstgate.anbieter;

import java.awt.*;
import javax.swing.*;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;

import de.hologarage.firstgate.shared.Language;
import de.hologarage.firstgate.shared.MainFrame;
import de.hologarage.firstgate.shared.gui.ComponentResizedHandler;
import de.hologarage.firstgate.shared.gui.LimitedTextFieldDocument;


final class AboDefinitionDialog extends javax.swing.JDialog {
private boolean isCancelled = true;
private String myName = "";

//{{DECLARE_CONTROLS
javax.swing.JPanel mainPanel = new javax.swing.JPanel();
javax.swing.JLabel aboDefName = new javax.swing.JLabel();
javax.swing.JTextField nameField = new javax.swing.JTextField();
javax.swing.JScrollPane textScrollPane = new javax.swing.JScrollPane();
javax.swing.JTextArea descField = new javax.swing.JTextArea();
javax.swing.JPanel buttonsPanel = new javax.swing.JPanel();
javax.swing.JButton okButton = new javax.swing.JButton();
javax.swing.JButton cancelButton = new javax.swing.JButton();
com.symantec.itools.javax.swing.borders.TitledBorder titledBorder1 = new com.symantec.itools.javax.swing.borders.TitledBorder();
com.symantec.itools.javax.swing.borders.TitledBorder descBorder = new com.symantec.itools.javax.swing.borders.TitledBorder();
//}}

//
// Constructors
//
public AboDefinitionDialog( String aName, String aDesc ) {
super(MainFrame.getInstance(), true);


// This code is automatically generated by Visual Cafe when you add
// components to the visual environment. It instantiates and initializes
// the components. To modify the code, only use code syntax that matches
// what Visual Cafe can generate, or Visual Cafe may be unable to back
// parse your Java file into its visual environment.
//{{INIT_CONTROLS
setModal(true);
setDefaultCloseOperation(javax.swing.JFrame.DISPOSE_ON_CLOSE );
getContentPane().setLayout(new GridBagLayout());
setSize(400,250);
setVisible(false);
mainPanel.setBorder(titledBorder1);
mainPanel.setLayout(new GridBagLayout());
getContentPane().add(mainPanel, new com.symantec.itools.awt.GridBagConstraintsD(0,0,1,1,1.0,1.0, java.awt.GridBagConstraints.CENTER,java.awt.GridBagConstrain ts.BOTH,new Insets(4,4,0,4),4,0));
aboDefName.setText("Name:");
mainPanel.add(aboDefName, new com.symantec.itools.awt.GridBagConstraintsD(0,0,1,1,0.0,0.0, java.awt.GridBagConstraints.CENTER,java.awt.GridBagConstrain ts.NONE,new Insets(4,4,4,4),0,0));
mainPanel.add(nameField, new com.symantec.itools.awt.GridBagConstraintsD(1,0,1,1,1.0,0.0, java.awt.GridBagConstraints.WEST,java.awt.GridBagConstraints .HORIZONTAL,new Insets(0,0,0,0),0,0));
textScrollPane.setHorizontalScrollBarPolicy(javax.swing.Scro llPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
textScrollPane.setOpaque(true);
textScrollPane.setBorder(descBorder);
mainPanel.add(textScrollPane, new com.symantec.itools.awt.GridBagConstraintsD(0,2,2,1,1.0,1.0, java.awt.GridBagConstraints.CENTER,java.awt.GridBagConstrain ts.BOTH,new Insets(4,2,4,2),0,0));
descField.setLineWrap(true);
descField.setWrapStyleWord(true);
descField.setNextFocusableComponent(okButton);
textScrollPane.getViewport().add(descField);
descField.setBounds(0,0,368,147);
buttonsPanel.setLayout(new GridBagLayout());
getContentPane().add(buttonsPanel, new com.symantec.itools.awt.GridBagConstraintsD(0,2,1,1,1.0,0.0, java.awt.GridBagConstraints.CENTER,java.awt.GridBagConstrain ts.HORIZONTAL,new Insets(0,0,0,0),0,0));
okButton.setText("Ok");
okButton.setActionCommand("OK");
okButton.setNextFocusableComponent(cancelButton);
buttonsPanel.add(okButton, new com.symantec.itools.awt.GridBagConstraintsD(0,1,1,1,1.0,0.0, java.awt.GridBagConstraints.EAST,java.awt.GridBagConstraints .NONE,new Insets(4,0,4,4),0,0));
okButton.setBackground(java.awt.Color.orange);
cancelButton.setText("Abbrechen");
cancelButton.setActionCommand("Abbrechen");
buttonsPanel.add(cancelButton, new com.symantec.itools.awt.GridBagConstraintsD(1,1,1,1,0.0,0.0, java.awt.GridBagConstraints.EAST,java.awt.GridBagConstraints .NONE,new Insets(4,0,4,4),0,0));
cancelButton.setBackground(java.awt.Color.orange);
//$$ titledBorder1.move(0,336);
descBorder.setTitle("Beschreibung");
//$$ descBorder.move(24,336);
//}}

okButton.setText(Language.get().getString(Language.SC_OK)); //"Ok"
cancelButton.setText(Language.get().getString(Language.SC_CA NCEL)); //"Abbrechen"
aboDefName.setText( Language.get().getString(Language.SC_ABODEFDIALOG_NAME)); // Name:
descBorder.setTitle(Language.get().getString(Language.SC_ABO DEFDIALOG_DESC)); // Beschreibung

// Namen d
Re: Visual Cafe [message #605372 is a reply to message #80506] Fri, 18 February 2005 10:32 Go to previous message
Eclipse UserFriend
In article <cv44qq$vr6$1@www.eclipse.org>, nibbrig@flux-software.com
says...
> Hi,
>
> thank you for your answer. I took a look at the "Source Code Pattern"
> page and I'm pretty sure that I know what I would have to do to make VE
> recognize it. But I was hoping that someone would already have written a
> plugin to do this automatically. I can't believe I'm the first one with
> this problem or rather to first one not wanting to do this by hand.
> I attached an example. As you can see one of the major problems is that
> Cafe uses its own classes and that it initializes everything in the
> constructor.
> I also entered an enhancement request as you suggested, but I guess for
> now I'm stuck to recoding the project by hand.

You might try Jigloo from www.cloudgarden.com. It generally does not
place restrictions on where the GUI code is within the class files (does
not rely on delimiting comment tags like VC). Also, since the
structured coding pattern used by VC is so regular (often considered one
of VCs limitations), you could just write a small Perl program to one-
time preprocess the source of your project into a more desirable pattern
of your choice.

>
> Gili Mendel schrieb:
> > Hendrik Nibbrig wrote:
> >
> >> Hi,
> >>
> >> my company has a rather large project which was build using VCafe.
> >> Since we all know what the problem with VCafe is nowadays we are
> >> planning to migrate to another IDE. Eclipse seems to be really the
> >> best tool out there at the moment, but there is the problem of
> >> migrating the existing GUI to VE. Although I did search quite a lot on
> >> the web and the newsgroup I couldn't find any answer to my question
> >> whether it is possible to migrate from VCafe to VE or not (without
> >> rewriting the bulk of the GUI manually). So if anyone could help me
> >> out here I would be really greatful.
> >>
> >> Thanks in advance,
> >> Hendrik Nibbrig
Re: Visual Cafe [message #605500 is a reply to message #80506] Mon, 21 February 2005 21:01 Go to previous message
Eclipse UserFriend
"Hendrik Nibbrig" <nibbrig@flux-software.com> wrote in message
news:cv44qq$vr6$1@www.eclipse.org...
>
> thank you for your answer. I took a look at the "Source Code Pattern"
> page and I'm pretty sure that I know what I would have to do to make VE
> recognize it. But I was hoping that someone would already have written a
> plugin to do this automatically. I can't believe I'm the first one with
> this problem or rather to first one not wanting to do this by hand.
> I attached an example. As you can see one of the major problems is that
> Cafe uses its own classes and that it initializes everything in the
> constructor.

You might also look at Swing Designer v3.0.1...

http://www.swing-designer.com/

It handles your example just fine including the custom GridBagConstraints
and TitledBorders. Here are some screen shots...

http://www.instantiations.com/swing-designer/images/AboDefin itionDialog1.gif
http://www.instantiations.com/swing-designer/images/AboDefin itionDialog2.gif

Note that Swing Designer is a commercial tool with a $199 list price (lower
cost NC and academic licenses are available). A free, feature-limited
edition is also available as is a time-limited eval version of the entire
product (for Eclipse 2.1, 3.0 or 3.1 M5).

-Eric Clayberg
Sr. Vice President of Product Development
Instantiations, Inc.
http://www.instantiations.com
http://www.swt-designer.com

Author: "Eclipse: Building Commercial Quality Plug-ins"
http://www.awprofessional.com/title/0321228472
Re: Visual Cafe [message #605564 is a reply to message #81164] Wed, 23 February 2005 04:31 Go to previous message
Eclipse UserFriend
Thank you for your suggestion. I am trying the eval version right now
and after I removed the special classes used by VC the swing designer
was able to parse the file. Unfortunately it does not display the entire
dialog correctly. I will keep on trying. Thanks again.

Eric Clayberg schrieb:
> "Hendrik Nibbrig" <nibbrig@flux-software.com> wrote in message
> news:cv44qq$vr6$1@www.eclipse.org...
>
>>thank you for your answer. I took a look at the "Source Code Pattern"
>>page and I'm pretty sure that I know what I would have to do to make VE
>>recognize it. But I was hoping that someone would already have written a
>>plugin to do this automatically. I can't believe I'm the first one with
>>this problem or rather to first one not wanting to do this by hand.
>>I attached an example. As you can see one of the major problems is that
>>Cafe uses its own classes and that it initializes everything in the
>>constructor.
>

>
> You might also look at Swing Designer v3.0.1...
>
> http://www.swing-designer.com/
>
> It handles your example just fine including the custom GridBagConstraints
> and TitledBorders. Here are some screen shots...
>
> http://www.instantiations.com/swing-designer/images/AboDefin itionDialog1.gif
> http://www.instantiations.com/swing-designer/images/AboDefin itionDialog2.gif
>
> Note that Swing Designer is a commercial tool with a $199 list price (lower
> cost NC and academic licenses are available). A free, feature-limited
> edition is also available as is a time-limited eval version of the entire
> product (for Eclipse 2.1, 3.0 or 3.1 M5).
>
> -Eric Clayberg
> Sr. Vice President of Product Development
> Instantiations, Inc.
> http://www.instantiations.com
> http://www.swt-designer.com
>
> Author: "Eclipse: Building Commercial Quality Plug-ins"
> http://www.awprofessional.com/title/0321228472
>
>
Re: Visual Cafe [message #605566 is a reply to message #80611] Wed, 23 February 2005 04:38 Go to previous message
Eclipse UserFriend
Thank you for your suggestion. I am testing the non commercial version
right now. After removing the special classes used by VC the file was
parsed and displayed correctly. Quite impressive. I will keep on testing
the tool for a while and will then talk to our management if the tool
keeps up the performance.

Gerald Rosenberg schrieb:
> In article <cv44qq$vr6$1@www.eclipse.org>, nibbrig@flux-software.com
> says...
>
>>Hi,
>>
>>thank you for your answer. I took a look at the "Source Code Pattern"
>>page and I'm pretty sure that I know what I would have to do to make VE
>>recognize it. But I was hoping that someone would already have written a
>>plugin to do this automatically. I can't believe I'm the first one with
>>this problem or rather to first one not wanting to do this by hand.
>>I attached an example. As you can see one of the major problems is that
>>Cafe uses its own classes and that it initializes everything in the
>>constructor.
>>I also entered an enhancement request as you suggested, but I guess for
>>now I'm stuck to recoding the project by hand.
>
>
> You might try Jigloo from www.cloudgarden.com. It generally does not
> place restrictions on where the GUI code is within the class files (does
> not rely on delimiting comment tags like VC). Also, since the
> structured coding pattern used by VC is so regular (often considered one
> of VCs limitations), you could just write a small Perl program to one-
> time preprocess the source of your project into a more desirable pattern
> of your choice.
>
>
>>Gili Mendel schrieb:
>>
>>>Hendrik Nibbrig wrote:
>>>
>>>
>>>>Hi,
>>>>
>>>>my company has a rather large project which was build using VCafe.
>>>>Since we all know what the problem with VCafe is nowadays we are
>>>>planning to migrate to another IDE. Eclipse seems to be really the
>>>>best tool out there at the moment, but there is the problem of
>>>>migrating the existing GUI to VE. Although I did search quite a lot on
>>>>the web and the newsgroup I couldn't find any answer to my question
>>>>whether it is possible to migrate from VCafe to VE or not (without
>>>>rewriting the bulk of the GUI manually). So if anyone could help me
>>>>out here I would be really greatful.
>>>>
>>>>Thanks in advance,
>>>>Hendrik Nibbrig
Re: Visual Cafe [message #605568 is a reply to message #81468] Wed, 23 February 2005 08:37 Go to previous message
Eclipse UserFriend
"Hendrik Nibbrig" <nibbrig@flux-software.com> wrote in message
news:cvhih9$is9$1@www.eclipse.org...
> Thank you for your suggestion. I am trying the eval version right now and
> after I removed the special classes used by VC the swing designer was able
> to parse the file. Unfortunately it does not display the entire dialog
> correctly. I will keep on trying. Thanks again.

According to our records, you are using the v3.0.0 version fo Swing
Designer. I specifically suggested that you use the v3.0.1 version of
Designer which has better support for handling custom layout managers and
constraints (like the ones used by VC). The screen shots I posted were
created using the v3.0.1 version. As long as those VC classes are on your
path, Designer should be able to parse the file just fine (it certainly did
on my end as you can see in the screen shots).

-Eric Clayberg
Sr. Vice President of Product Development
Instantiations, Inc.
http://www.instantiations.com
http://www.swt-designer.com

Author: "Eclipse: Building Commercial Quality Plug-ins"
http://www.awprofessional.com/title/0321228472
Re: Visual Cafe [message #605592 is a reply to message #81500] Thu, 24 February 2005 11:20 Go to previous message
Eclipse UserFriend
Eric Clayberg wrote:
> "Hendrik Nibbrig" <nibbrig@flux-software.com> wrote in message
> news:cvhih9$is9$1@www.eclipse.org...
>
>>Thank you for your suggestion. I am trying the eval version right now and
>>after I removed the special classes used by VC the swing designer was able
>>to parse the file.

I would like to suggest that this thread be moved to an Instantiations
support forum. This forum is for discussing how to use the Eclipse
Visual Editor.


Best regards,

Dave Orme
--
Visual Editor Project lead
http://www.db4o.com -- The Open-source Java Object Database
Re: Visual Cafe [message #605597 is a reply to message #81667] Thu, 24 February 2005 17:23 Go to previous message
Eclipse UserFriend
"David J. Orme" <djo@coconut-palm-software.com> wrote in message
news:cvkut1$jfv$1@www.eclipse.org...
>
>>>Thank you for your suggestion. I am trying the eval version right now and
>>>after I removed the special classes used by VC the swing designer was
>>>able to parse the file.
>
> I would like to suggest that this thread be moved to an Instantiations
> support forum.

Thanks for the suggestion, but we had already taken it to private e-mail.

> This forum is for discussing how to use the Eclipse Visual Editor.

And as with many of the Eclipse newsgroups, its focus has expanded to
include all manner of Eclipse GUI builder related questions (including
questions on how to edit preexisting GUIs constructed by other tools such as
JBuilder, NetBeans, VisualCafe, etc.). In this case, I didn't start this
thread, but I did have some useful information for the user who did. Had the
VE been able to help him, I would not have responded. In the end, it's all
about helping folks with their problems, right?

-Eric Clayberg
Sr. Vice President of Product Development
Instantiations, Inc.
http://www.instantiations.com
http://www.swt-designer.com

Author: "Eclipse: Building Commercial Quality Plug-ins"
http://www.awprofessional.com/title/0321228472
Re: Visual Cafe [message #605615 is a reply to message #81708] Fri, 25 February 2005 15:32 Go to previous message
Eclipse UserFriend
Eric Clayberg wrote:
> And as with many of the Eclipse newsgroups, its focus has expanded to
> include all manner of Eclipse GUI builder related questions (including
> questions on how to edit preexisting GUIs constructed by other tools such as
> JBuilder, NetBeans, VisualCafe, etc.).

When someone asks how to do something in VE that VE doesn't do yet, I
have no problem with you guys posting a brief, unobtrusive message
encouraging them to check out SWT Designer.

Similarly, if someone wanted to know how to bind Swing controls to Java
Beans (something that VE doesn't do but Rational Designer does do), I
would have no problem if one of the IBM/Rational team encouraged them to
look at Rational Designer.

VE is a platform for GUI builders, both commercial and open-source, in
addition to being an exemplary tool in its own right.

So I have no problem with people mentioning value-add features that
their GUI builders have over VE when that is appropriate.

But discussion of how to use other GUI builders should stop there and
move to a more appropriate forum.


Regards,

Dave Orme
--
Visual Editor Project lead
http://www.db4o.com -- The Open-source Java Object Database
Previous Topic:VE and Debugging are awfully slow ?
Next Topic:VE on linux ... no image of the controls ?!
Goto Forum:
  


Current Time: Sat Jun 14 12:57:38 EDT 2025

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

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

Back to the top