Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » No display of layout
No display of layout [message #95034] Tue, 28 June 2005 01:06 Go to next message
Eclipse UserFriend
Originally posted by: jm1.dicehome.com

I've has this problem several times with ve. I create a visual class
using a SWT shell and place widgets on it. At some point later on, the
only visual display I get is a box with java beans in it. I cannot
resize the box at all and I cannot see the widgets I placed in it. But
in the Java Beans tab, the components are listed


cdx
Re: No display of layout [message #95068 is a reply to message #95034] Tue, 28 June 2005 12:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Please append the .log file. there are probably errors in there. that we
we can look at.


--
Thanks,
Rich Kulp
Re: No display of layout [message #95098 is a reply to message #95068] Wed, 29 June 2005 00:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jm1.dicehome.com

This is a multi-part message in MIME format.
--------------040202060904060809010202
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Rich,
It is attached as is the sourcecode.

Thanks for your help,
Chip


Rich Kulp wrote:
> Please append the .log file. there are probably errors in there. that we
> we can look at.
>
>


--------------040202060904060809010202
Content-Type: text/plain;
name=".log"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename=".log"


!ENTRY org.eclipse.ve.java.core 4 0 2005-06-28 20:51:57.737
!MESSAGE Exception thrown.
!STACK 0
java.lang.NullPointerException
at org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.getSetting Delegate(EStructuralFeatureImpl.java:790)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSettingDelegate (BasicEObjectImpl.java:822)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicIsSet(Ba sicEObjectImpl.java:609)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eIsSet(BasicEObj ectImpl.java:600)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:949)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2271)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:887)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2000)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1219)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2271)
at org.eclipse.emf.ecore.xmi.impl.XMISaveImpl.writeTopObjects(X MISaveImpl.java:78)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveI mpl.java:476)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl. java:206)
at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLRes ourceImpl.java:192)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:893)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:813)
at org.eclipse.ve.internal.java.codegen.util.VEModelCacheUtilit y.doSaveCache(VEModelCacheUtility.java:155)
at org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.doSave(JavaSourceTranslator.java:1372)
at org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or$2.doRun(JavaSourceTranslator.java:940)
at org.eclipse.ve.internal.java.codegen.util.ReverseParserJob.r un(ReverseParserJob.java:56)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:67)

--------------040202060904060809010202
Content-Type: text/java;
name="LoginApp.java"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="LoginApp.java"

package Apps;

import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CCombo;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Dialog;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;

public class LoginApp extends Dialog{

private Shell sShell = null; // @jve:decl-index=0:visual-constraint="10,10"
private Label environmentLabel = null;
private CCombo environmentCombo = null;
private Button connectButton = null;
private Button button = null;

public LoginApp(Shell parent, int style) {
super(parent, style);
}

public boolean open(){
sShell = new Shell(this.getParent(), SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
sShell.setText("Login...");
//sShell = new Shell(SWT.APPLICATION_MODAL | SWT.SHELL_TRIM);
//sShell.setText("Login");
sShell.setSize(new org.eclipse.swt.graphics.Point(440,172));
environmentLabel = new Label(sShell, SWT.NONE);
environmentLabel.setBounds(new org.eclipse.swt.graphics.Rectangle(18,52,80,13));
environmentLabel.setText("Environment");
environmentCombo = new CCombo(sShell, SWT.NONE);
environmentCombo.setToolTipText("Select the environment to log into");
environmentCombo.setBounds(new org.eclipse.swt.graphics.Rectangle(118,43,294,24));
connectButton = new Button(sShell, SWT.NONE);
connectButton.setBounds(new org.eclipse.swt.graphics.Rectangle(80,107,79,23));
connectButton.setText("Connect");
button = new Button(sShell, SWT.NONE);
button.setBounds(new org.eclipse.swt.graphics.Rectangle(278,106,84,23));
button.setText("Cancel");
setComboBox();
//shell.setBounds(this.getCenteredRectangle());
sShell.open();

//this.showWidgets(shell);
Display display = this.getParent().getDisplay();
while (!sShell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
return true;

}

private void setComboBox() {
environmentCombo.add("Church");
environmentCombo.add("Forest");
}

}

--------------040202060904060809010202--
Re: No display of layout [message #95112 is a reply to message #95098] Wed, 29 June 2005 13:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Soory, I forgot to ask, what version/driver of Eclipse, VE, GEF, and EMF
are you using?

--
Thanks,
Rich Kulp
Re: No display of layout [message #95127 is a reply to message #95112] Wed, 29 June 2005 14:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Opps, one other thing. We don't support Dialog at this time. :-( I
didn't notice that at first when I looked at your code.

Rich Kulp wrote:
> Soory, I forgot to ask, what version/driver of Eclipse, VE, GEF, and EMF
> are you using?
>

--
Thanks,
Rich Kulp
Re: No display of layout [message #95156 is a reply to message #95127] Wed, 29 June 2005 22:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jm1.dicehome.com

Oh. Anything in the works soon, or is this in the future at sometime?

Chip



Rich Kulp wrote:
> Opps, one other thing. We don't support Dialog at this time. :-( I
> didn't notice that at first when I looked at your code.
>
> Rich Kulp wrote:
>
>> Soory, I forgot to ask, what version/driver of Eclipse, VE, GEF, and
>> EMF are you using?
>>
>
Re: No display of layout [message #95275 is a reply to message #95156] Thu, 30 June 2005 14:03 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

It won't be for 1.1 since that is coming real soon, but it is something
we need to look at and evaluate for 1.2.


--
Thanks,
Rich Kulp
Re: No display of layout [message #608104 is a reply to message #95034] Tue, 28 June 2005 12:28 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Please append the .log file. there are probably errors in there. that we
we can look at.


--
Thanks,
Rich Kulp
Re: No display of layout [message #608106 is a reply to message #95068] Wed, 29 June 2005 00:54 Go to previous message
Eclipse UserFriend
Originally posted by: jm1.dicehome.com

This is a multi-part message in MIME format.
--------------040202060904060809010202
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Rich,
It is attached as is the sourcecode.

Thanks for your help,
Chip


Rich Kulp wrote:
> Please append the .log file. there are probably errors in there. that we
> we can look at.
>
>


--------------040202060904060809010202
Content-Type: text/plain;
name=".log"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename=".log"


!ENTRY org.eclipse.ve.java.core 4 0 2005-06-28 20:51:57.737
!MESSAGE Exception thrown.
!STACK 0
java.lang.NullPointerException
at org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.getSetting Delegate(EStructuralFeatureImpl.java:790)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSettingDelegate (BasicEObjectImpl.java:822)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicIsSet(Ba sicEObjectImpl.java:609)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eIsSet(BasicEObj ectImpl.java:600)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:949)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2271)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElement(XMLSa veImpl.java:887)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveContainedMany (XMLSaveImpl.java:2000)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1219)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2271)
at org.eclipse.emf.ecore.xmi.impl.XMISaveImpl.writeTopObjects(X MISaveImpl.java:78)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveI mpl.java:476)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl. java:206)
at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLRes ourceImpl.java:192)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:893)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:813)
at org.eclipse.ve.internal.java.codegen.util.VEModelCacheUtilit y.doSaveCache(VEModelCacheUtility.java:155)
at org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.doSave(JavaSourceTranslator.java:1372)
at org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or$2.doRun(JavaSourceTranslator.java:940)
at org.eclipse.ve.internal.java.codegen.util.ReverseParserJob.r un(ReverseParserJob.java:56)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:67)

--------------040202060904060809010202
Content-Type: text/java;
name="LoginApp.java"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="LoginApp.java"

package Apps;

import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CCombo;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Dialog;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;

public class LoginApp extends Dialog{

private Shell sShell = null; // @jve:decl-index=0:visual-constraint="10,10"
private Label environmentLabel = null;
private CCombo environmentCombo = null;
private Button connectButton = null;
private Button button = null;

public LoginApp(Shell parent, int style) {
super(parent, style);
}

public boolean open(){
sShell = new Shell(this.getParent(), SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
sShell.setText("Login...");
//sShell = new Shell(SWT.APPLICATION_MODAL | SWT.SHELL_TRIM);
//sShell.setText("Login");
sShell.setSize(new org.eclipse.swt.graphics.Point(440,172));
environmentLabel = new Label(sShell, SWT.NONE);
environmentLabel.setBounds(new org.eclipse.swt.graphics.Rectangle(18,52,80,13));
environmentLabel.setText("Environment");
environmentCombo = new CCombo(sShell, SWT.NONE);
environmentCombo.setToolTipText("Select the environment to log into");
environmentCombo.setBounds(new org.eclipse.swt.graphics.Rectangle(118,43,294,24));
connectButton = new Button(sShell, SWT.NONE);
connectButton.setBounds(new org.eclipse.swt.graphics.Rectangle(80,107,79,23));
connectButton.setText("Connect");
button = new Button(sShell, SWT.NONE);
button.setBounds(new org.eclipse.swt.graphics.Rectangle(278,106,84,23));
button.setText("Cancel");
setComboBox();
//shell.setBounds(this.getCenteredRectangle());
sShell.open();

//this.showWidgets(shell);
Display display = this.getParent().getDisplay();
while (!sShell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
return true;

}

private void setComboBox() {
environmentCombo.add("Church");
environmentCombo.add("Forest");
}

}

--------------040202060904060809010202--
Re: No display of layout [message #608107 is a reply to message #95098] Wed, 29 June 2005 13:58 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Soory, I forgot to ask, what version/driver of Eclipse, VE, GEF, and EMF
are you using?

--
Thanks,
Rich Kulp
Re: No display of layout [message #608108 is a reply to message #95112] Wed, 29 June 2005 14:05 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Opps, one other thing. We don't support Dialog at this time. :-( I
didn't notice that at first when I looked at your code.

Rich Kulp wrote:
> Soory, I forgot to ask, what version/driver of Eclipse, VE, GEF, and EMF
> are you using?
>

--
Thanks,
Rich Kulp
Re: No display of layout [message #608110 is a reply to message #95127] Wed, 29 June 2005 22:29 Go to previous message
Eclipse UserFriend
Originally posted by: jm1.dicehome.com

Oh. Anything in the works soon, or is this in the future at sometime?

Chip



Rich Kulp wrote:
> Opps, one other thing. We don't support Dialog at this time. :-( I
> didn't notice that at first when I looked at your code.
>
> Rich Kulp wrote:
>
>> Soory, I forgot to ask, what version/driver of Eclipse, VE, GEF, and
>> EMF are you using?
>>
>
Re: No display of layout [message #608118 is a reply to message #95156] Thu, 30 June 2005 14:03 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

It won't be for 1.1 since that is coming real soon, but it is something
we need to look at and evaluate for 1.2.


--
Thanks,
Rich Kulp
Previous Topic:VE 1.1M2 JScrollPane bug
Next Topic:VE 1.1M2 copy-paste bug
Goto Forum:
  


Current Time: Thu Mar 28 20:23:22 GMT 2024

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

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

Back to the top