Problem - Opening existing project - have lost design view [message #104549] |
Wed, 31 August 2005 10:19  |
Eclipse User |
|
|
|
Originally posted by: jaclyn.j.co.uk
Hi,
I have been trying my hand at Java programming recently using the
EclipseVE. Coming from a structured C background it's quite a step.
Anyway, using the VE I created a JFrame and added on a JTable plus some
other listeners and things.
All the code appeared and compiled and ran as expected. Excellent!
However, when I close the project and open the project the design view on
the visual editor is just a grey box, hence I cannot work on it again (ie.
add any components).
Can any one help?
I am using Eclipse SDK 3.1 and Visual Editor 1.1, EMF and GEF 3.1
Much appreciated,
Jackie
|
|
|
|
|
|
|
|
Re: Problem - Opening existing project - have lost design view [message #105064 is a reply to message #104813] |
Fri, 02 September 2005 17:24  |
Eclipse User |
|
|
|
Originally posted by: zozo.stanford.edu
That particular message is just a warning from the Java 1.5 compiler
that appears to be more for "best programming practice"... as far as I
can tell it doesn't impact VE's functioning (I've never needed it before)
Jackie wrote:
> Hi Richard,
>
> I will write a cut-down example next week, once I re-create the issue.
>
> I am also wondering whether it is to do with serialisable things, as I
> have the following issues, which don't affect run-time.
>
> The serializable class does not declare a static final serialversionUID
> of type long
>
> As I am a newbie it is difficult to understand and explain, but I don't
> want to waste any body's time due to my lack of understanding.
>
> As I said though I will re-create the issue next week and send it on in
> case it is of any use for future.
>
> Thanks again,
> Jackie
>
|
|
|
|
Re: Problem - Opening existing project - have lost design view [message #610473 is a reply to message #104549] |
Thu, 01 September 2005 07:08  |
Eclipse User |
|
|
|
Rich Kulp wrote:
> Please attach the .log file. A grey box usually means there was some
> syntax error.
Hi Richard,
I think I have worked it out now.
It is to do with my "non" initialisation of the parameters which are
passed into the JTable.
When I pass in no parameters to the new JTable() call, close then re-open
the project all the visual elements are there as expected. All good.
It is only when I pass in the parameters to the new JTable(dataValues,
columnNames) call, close the project and re-open then the ! occurs in a
triangle saying
ViewportView:javalang.Null pointer Exception(null)
So, it is to do with my "non" initialisaiton of the parameters. Doh!
String dataValues[][];
String columnNames[];
At least that's what I think it is.
Thanks for your help Richard - much appreciated
Jackie
|
|
|
Re: Problem - Opening existing project - have lost design view [message #610477 is a reply to message #104634] |
Thu, 01 September 2005 10:09  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Could you please send me a example of this? We may try to see if we can
handle it in the future.
Jackie wrote:
> Rich Kulp wrote:
>
>> Please attach the .log file. A grey box usually means there was some
>> syntax error.
>
>
> Hi Richard,
>
> I think I have worked it out now.
> It is to do with my "non" initialisation of the parameters which are
> passed into the JTable.
>
> When I pass in no parameters to the new JTable() call, close then
> re-open the project all the visual elements are there as expected. All
> good.
>
> It is only when I pass in the parameters to the new JTable(dataValues,
> columnNames) call, close the project and re-open then the ! occurs in a
> triangle saying
>
> ViewportView:javalang.Null pointer Exception(null)
>
> So, it is to do with my "non" initialisaiton of the parameters. Doh!
>
> String dataValues[][]; String columnNames[];
>
> At least that's what I think it is.
> Thanks for your help Richard - much appreciated
>
> Jackie
>
--
Thanks,
Rich Kulp
|
|
|
Re: Problem - Opening existing project - have lost design view [message #610604 is a reply to message #104668] |
Fri, 02 September 2005 06:50  |
Eclipse User |
|
|
|
Hi Richard,
I will write a cut-down example next week, once I re-create the issue.
I am also wondering whether it is to do with serialisable things, as I
have the following issues, which don't affect run-time.
The serializable class does not declare a static final serialversionUID of
type long
As I am a newbie it is difficult to understand and explain, but I don't
want to waste any body's time due to my lack of understanding.
As I said though I will re-create the issue next week and send it on in
case it is of any use for future.
Thanks again,
Jackie
|
|
|
Re: Problem - Opening existing project - have lost design view [message #610629 is a reply to message #104555] |
Fri, 02 September 2005 17:22  |
Eclipse User |
|
|
|
Originally posted by: zozo.stanford.edu
Rich Kulp wrote:
> Please attach the .log file. A grey box usually means there was some
> syntax error.
>
I'v been having a similar problem, with a Visual Class that VE was able
to parse and display on my home computer but when I imported the project
at work, and double-clicked on the class, I got no editor. So, I tried
right-clicking, and choosing Open With Visual Editor. I got an NPE.
I also have made changes to the initialization functions for some
objects and can't really afford to revert back and lose them. Is there
some way to transfer VE's reverse parse of the class from the other
computer?
Thanks,
Mike
Full log:
!ENTRY org.eclipse.ve.java.core 4 0 2005-09-02 14:18:01.859
!MESSAGE Exception thrown.
!STACK 0
java.lang.NullPointerException
at org.eclipse.emf.ecore.impl.EClassImpl.getFeatureID(EClassImp l.java:661)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicFeatureI D(BasicEObjectImpl.java:215)
at
org.eclipse.jem.internal.instantiation.base.JavaObjectInstan ce.eDynamicFeatureID(JavaObjectInstance.java:282)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicGet(Basi cEObjectImpl.java:493)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:488)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:483)
at
org.eclipse.ve.internal.jfc.core.ContainerGraphicalEditPart. getModelChildren(ContainerGraphicalEditPart.java:101)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:716)
at
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
at
org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:232)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
at
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:195)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
at
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
at
org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:232)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
at
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:195)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
at
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart.setRootModel(JavaVisualEditorPart.java:506)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart.initializeViewers(JavaVisualEditorPart.java:987)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$12.run(JavaVisualEditorPart.java:1977)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3057)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2716)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
!ENTRY org.eclipse.ui 4 4 2005-09-02 14:18:01.937
!MESSAGE Unhandled event loop exception
!ENTRY org.eclipse.ui 4 0 2005-09-02 14:18:01.937
!MESSAGE Failed to execute runnable (java.lang.NullPointerException)
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.NullPointerException)
at org.eclipse.swt.SWT.error(SWT.java:2942)
at org.eclipse.swt.SWT.error(SWT.java:2865)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:126)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3057)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2716)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Caused by: java.lang.NullPointerException
at org.eclipse.emf.ecore.impl.EClassImpl.getFeatureID(EClassImp l.java:661)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicFeatureI D(BasicEObjectImpl.java:215)
at
org.eclipse.jem.internal.instantiation.base.JavaObjectInstan ce.eDynamicFeatureID(JavaObjectInstance.java:282)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicGet(Basi cEObjectImpl.java:493)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:488)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjec tImpl.java:483)
at
org.eclipse.ve.internal.jfc.core.ContainerGraphicalEditPart. getModelChildren(ContainerGraphicalEditPart.java:101)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:716)
at
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
at
org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:232)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
at
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:195)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
at
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
at
org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:232)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
at
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:195)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
at
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart.setRootModel(JavaVisualEditorPart.java:506)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart.initializeViewers(JavaVisualEditorPart.java:987)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$12.run(JavaVisualEditorPart.java:1977)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
... 18 more
|
|
|
Re: Problem - Opening existing project - have lost design view [message #610630 is a reply to message #104813] |
Fri, 02 September 2005 17:24  |
Eclipse User |
|
|
|
Originally posted by: zozo.stanford.edu
That particular message is just a warning from the Java 1.5 compiler
that appears to be more for "best programming practice"... as far as I
can tell it doesn't impact VE's functioning (I've never needed it before)
Jackie wrote:
> Hi Richard,
>
> I will write a cut-down example next week, once I re-create the issue.
>
> I am also wondering whether it is to do with serialisable things, as I
> have the following issues, which don't affect run-time.
>
> The serializable class does not declare a static final serialversionUID
> of type long
>
> As I am a newbie it is difficult to understand and explain, but I don't
> want to waste any body's time due to my lack of understanding.
>
> As I said though I will re-create the issue next week and send it on in
> case it is of any use for future.
>
> Thanks again,
> Jackie
>
|
|
|
Powered by
FUDForum. Page generated in 0.08123 seconds