Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Tab Folder Drops Tabs
Tab Folder Drops Tabs [message #132794] Fri, 03 November 2006 23:15 Go to next message
Joseph Skora is currently offline Joseph SkoraFriend
Messages: 19
Registered: July 2009
Junior Member
In the VE I built a part with a composite containing 3 more composites, the
last of which is a TabFolder with 3 scrollComposite composites for the 3
tabs (each containing a composite holding a table). It built fine with the
VE but now when I open it in the VE only the 1st tab shows. The bean view
shows like this now

+ parent
+ compTop
+ comp1 (children left out)
+ comp2 (children left out)
+ folder
+ scrollA
+ compA
tableA

But it was originally

+ parent
+ compTop
+ comp1 (children left out)
+ comp2 (children left out)
+ folder
+ scrollA
+ compA
tableA
+ scrollB
+ compB
tableB
+ scrollC
+ compC
tableC

Any ideas? The part still works fine but it can't be visually edited very
well any more.

Thanks,

Joe Skora
joseph.skora@jhuapl.edu
Re: Tab Folder Drops Tabs [message #132809 is a reply to message #132794] Fri, 03 November 2006 23:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

If there errors in the .log file, please append the .log file.

--
Thanks,
Rich Kulp
Re: Tab Folder Drops Tabs [message #132822 is a reply to message #132809] Sat, 04 November 2006 20:57 Go to previous messageGo to next message
Joseph Skora is currently offline Joseph SkoraFriend
Messages: 19
Registered: July 2009
Junior Member
!ENTRY org.eclipse.ve.java.core 4 0 2006-11-04 15:55:46.359
!MESSAGE Exception thrown.
!STACK 0
java.lang.ArrayIndexOutOfBoundsException: -1
at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:5 14)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObjectF orURIFragmentRootSegment(ResourceImpl.java:642)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObject( ResourceImpl.java:692)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObject( ResourceImpl.java:671)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.setValueFromId(XML Handler.java:2522)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.setAttribValue(XML Handler.java:2450)
at
org.eclipse.emf.ecore.xmi.impl.SAXXMIHandler.handleObjectAtt ribs(SAXXMIHandler.java:74)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromFa ctory(XMLHandler.java:1940)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromTy peName(XMLHandler.java:1844)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObject(XMLHa ndler.java:1779)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleFeature(XMLH andler.java:1587)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:881)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:82)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:860)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:627)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(AbstractSAXParser.java:533)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl.scanStartElement(XMLNSDocumentScannerImpl.java:330)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1693)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:179)
at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:179)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1094)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:900)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:249)
at
org.eclipse.jem.internal.util.emf.workbench.ProjectResourceS etImpl.demandLoad(ProjectResourceSetImpl.java:83)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:264)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:390)
at
org.eclipse.jem.internal.util.emf.workbench.ProjectResourceS etImpl.getResource(ProjectResourceSetImpl.java:262)
at
org.eclipse.ve.internal.java.codegen.util.VEModelCacheUtilit y.doLoadFromCache(VEModelCacheUtility.java:103)
at
org.eclipse.ve.internal.java.codegen.core.VEModelInstance.cr eateComposition(VEModelInstance.java:100)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.reConnect(JavaSourceTranslator.java:1134)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocument(JavaSourceTranslator.java:910)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.loadModel(JavaSourceTranslator.java:597)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.run(JavaVisualEditorPart.java:1978)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Re: Tab Folder Drops Tabs [message #132834 is a reply to message #132822] Mon, 06 November 2006 16:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

That is usually due to cache problem.

To clear the cache:

1) Open a VE then close it and all other VE's.
2) Do Project->Clean...->Clean All and wait for the build to finish
4) Open a VE, see if it still occurs.

Joe Skora wrote:
> !ENTRY org.eclipse.ve.java.core 4 0 2006-11-04 15:55:46.359
> !MESSAGE Exception thrown.
> !STACK 0
> java.lang.ArrayIndexOutOfBoundsException: -1
> at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:5 14)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObjectF orURIFragmentRootSegment(ResourceImpl.java:642)

--
Thanks,
Rich Kulp
Re: Tab Folder Drops Tabs [message #132847 is a reply to message #132834] Mon, 06 November 2006 19:19 Go to previous messageGo to next message
Joseph Skora is currently offline Joseph SkoraFriend
Messages: 19
Registered: July 2009
Junior Member
No luck, same exception, still only one tab shows in VE.

Thanks,

Joe

"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:einmsn$iph$2@utils.eclipse.org...
> That is usually due to cache problem.
>
> To clear the cache:
>
> 1) Open a VE then close it and all other VE's.
> 2) Do Project->Clean...->Clean All and wait for the build to finish
> 4) Open a VE, see if it still occurs.
>
> Joe Skora wrote:
>> !ENTRY org.eclipse.ve.java.core 4 0 2006-11-04 15:55:46.359
>> !MESSAGE Exception thrown.
>> !STACK 0
>> java.lang.ArrayIndexOutOfBoundsException: -1
>> at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:5 14)
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObjectF orURIFragmentRootSegment(ResourceImpl.java:642)
>
> --
> Thanks,
> Rich Kulp
Re: Tab Folder Drops Tabs [message #132877 is a reply to message #132847] Tue, 07 November 2006 17:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

What version of Eclipse, VE, GEF, and EMF are you using, and can you
send me the java file to so I can see if it fails for us?

--
Thanks,
Rich Kulp
Re: Tab Folder Drops Tabs [message #132901 is a reply to message #132877] Tue, 07 November 2006 22:41 Go to previous messageGo to next message
Joseph Skora is currently offline Joseph SkoraFriend
Messages: 19
Registered: July 2009
Junior Member
Rich,

Eclipse Platform, Version: 3.2.1.r321_v20060921-b_XVA-INSQSyMtx, Build id:
M20060921-0945
Visual Editor, Version: 1.2.1.v20060817_M-zXJUB0fxM-0vSdc, Build id:
200606280938
Eclipse Graphical Editing Framework, Version: 3.2.1.v20060921, Build id:
20060921-1617
Eclipse Modeling Framework (EMF), Version: 2.2.1.v200609210005, Build id:
200609210005

"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:eiqejc$ggu$1@utils.eclipse.org...
> What version of Eclipse, VE, GEF, and EMF are you using, and can you
> send me the java file to so I can see if it fails for us?
>
> --
> Thanks,
> Rich Kulp


Re: Tab Folder Drops Tabs [message #132966 is a reply to message #132901] Wed, 08 November 2006 18:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Hi,

Change

private TabItem tabItemL, tabItemC, tabItemE;

to

private TabItem tabItemL;
private TabItem tabItemC;
private TabItem tabItemE;

Don't put all on one declaration. The VE doesn't parse more than the
first entry on such a declaration.
--
Thanks,
Rich Kulp
Re: Tab Folder Drops Tabs [message #132978 is a reply to message #132966] Wed, 08 November 2006 19:27 Go to previous message
Joseph Skora is currently offline Joseph SkoraFriend
Messages: 19
Registered: July 2009
Junior Member
Rich,

Fantastic, that did it.

THANKS!

> Don't put all on one declaration. The VE doesn't parse more than the first
> entry on such a declaration.
Re: Tab Folder Drops Tabs [message #614755 is a reply to message #132794] Fri, 03 November 2006 23:17 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

If there errors in the .log file, please append the .log file.

--
Thanks,
Rich Kulp
Re: Tab Folder Drops Tabs [message #614756 is a reply to message #132809] Sat, 04 November 2006 20:57 Go to previous message
Joseph Skora is currently offline Joseph SkoraFriend
Messages: 19
Registered: July 2009
Junior Member
!ENTRY org.eclipse.ve.java.core 4 0 2006-11-04 15:55:46.359
!MESSAGE Exception thrown.
!STACK 0
java.lang.ArrayIndexOutOfBoundsException: -1
at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:5 14)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObjectF orURIFragmentRootSegment(ResourceImpl.java:642)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObject( ResourceImpl.java:692)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObject( ResourceImpl.java:671)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.setValueFromId(XML Handler.java:2522)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.setAttribValue(XML Handler.java:2450)
at
org.eclipse.emf.ecore.xmi.impl.SAXXMIHandler.handleObjectAtt ribs(SAXXMIHandler.java:74)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromFa ctory(XMLHandler.java:1940)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectFromTy peName(XMLHandler.java:1844)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObject(XMLHa ndler.java:1779)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleFeature(XMLH andler.java:1587)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:881)
at
org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:82)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:860)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:627)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(AbstractSAXParser.java:533)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner Impl.scanStartElement(XMLNSDocumentScannerImpl.java:330)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFra gmentScannerImpl.java:1693)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java: 368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(XML11Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(X MLParser.java:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:179)
at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:179)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1094)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:900)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:249)
at
org.eclipse.jem.internal.util.emf.workbench.ProjectResourceS etImpl.demandLoad(ProjectResourceSetImpl.java:83)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:264)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:390)
at
org.eclipse.jem.internal.util.emf.workbench.ProjectResourceS etImpl.getResource(ProjectResourceSetImpl.java:262)
at
org.eclipse.ve.internal.java.codegen.util.VEModelCacheUtilit y.doLoadFromCache(VEModelCacheUtility.java:103)
at
org.eclipse.ve.internal.java.codegen.core.VEModelInstance.cr eateComposition(VEModelInstance.java:100)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.reConnect(JavaSourceTranslator.java:1134)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.decodeDocument(JavaSourceTranslator.java:910)
at
org.eclipse.ve.internal.java.codegen.core.JavaSourceTranslat or.loadModel(JavaSourceTranslator.java:597)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup.run(JavaVisualEditorPart.java:1978)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Re: Tab Folder Drops Tabs [message #614757 is a reply to message #132822] Mon, 06 November 2006 16:12 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

That is usually due to cache problem.

To clear the cache:

1) Open a VE then close it and all other VE's.
2) Do Project->Clean...->Clean All and wait for the build to finish
4) Open a VE, see if it still occurs.

Joe Skora wrote:
> !ENTRY org.eclipse.ve.java.core 4 0 2006-11-04 15:55:46.359
> !MESSAGE Exception thrown.
> !STACK 0
> java.lang.ArrayIndexOutOfBoundsException: -1
> at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:5 14)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObjectF orURIFragmentRootSegment(ResourceImpl.java:642)

--
Thanks,
Rich Kulp
Re: Tab Folder Drops Tabs [message #614758 is a reply to message #132834] Mon, 06 November 2006 19:19 Go to previous message
Joseph Skora is currently offline Joseph SkoraFriend
Messages: 19
Registered: July 2009
Junior Member
No luck, same exception, still only one tab shows in VE.

Thanks,

Joe

"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:einmsn$iph$2@utils.eclipse.org...
> That is usually due to cache problem.
>
> To clear the cache:
>
> 1) Open a VE then close it and all other VE's.
> 2) Do Project->Clean...->Clean All and wait for the build to finish
> 4) Open a VE, see if it still occurs.
>
> Joe Skora wrote:
>> !ENTRY org.eclipse.ve.java.core 4 0 2006-11-04 15:55:46.359
>> !MESSAGE Exception thrown.
>> !STACK 0
>> java.lang.ArrayIndexOutOfBoundsException: -1
>> at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:5 14)
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.getEObjectF orURIFragmentRootSegment(ResourceImpl.java:642)
>
> --
> Thanks,
> Rich Kulp
Re: Tab Folder Drops Tabs [message #614760 is a reply to message #132847] Tue, 07 November 2006 17:09 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

What version of Eclipse, VE, GEF, and EMF are you using, and can you
send me the java file to so I can see if it fails for us?

--
Thanks,
Rich Kulp
Re: Tab Folder Drops Tabs [message #614762 is a reply to message #132877] Tue, 07 November 2006 22:41 Go to previous message
Joseph Skora is currently offline Joseph SkoraFriend
Messages: 19
Registered: July 2009
Junior Member
Rich,

Eclipse Platform, Version: 3.2.1.r321_v20060921-b_XVA-INSQSyMtx, Build id:
M20060921-0945
Visual Editor, Version: 1.2.1.v20060817_M-zXJUB0fxM-0vSdc, Build id:
200606280938
Eclipse Graphical Editing Framework, Version: 3.2.1.v20060921, Build id:
20060921-1617
Eclipse Modeling Framework (EMF), Version: 2.2.1.v200609210005, Build id:
200609210005

"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:eiqejc$ggu$1@utils.eclipse.org...
> What version of Eclipse, VE, GEF, and EMF are you using, and can you
> send me the java file to so I can see if it fails for us?
>
> --
> Thanks,
> Rich Kulp


Re: Tab Folder Drops Tabs [message #614767 is a reply to message #132901] Wed, 08 November 2006 18:58 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Hi,

Change

private TabItem tabItemL, tabItemC, tabItemE;

to

private TabItem tabItemL;
private TabItem tabItemC;
private TabItem tabItemE;

Don't put all on one declaration. The VE doesn't parse more than the
first entry on such a declaration.
--
Thanks,
Rich Kulp
Re: Tab Folder Drops Tabs [message #614768 is a reply to message #132966] Wed, 08 November 2006 19:27 Go to previous message
Joseph Skora is currently offline Joseph SkoraFriend
Messages: 19
Registered: July 2009
Junior Member
Rich,

Fantastic, that did it.

THANKS!

> Don't put all on one declaration. The VE doesn't parse more than the first
> entry on such a declaration.
Previous Topic:How to add component from program to model?
Next Topic:Linking classes across projects
Goto Forum:
  


Current Time: Thu Apr 25 14:23:32 GMT 2024

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

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

Back to the top