Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Bug in the GraphicalEditor?
Bug in the GraphicalEditor? [message #94403] Tue, 16 September 2003 13:02 Go to next message
Alex Selkov is currently offline Alex SelkovFriend
Messages: 73
Registered: July 2009
Member
We constantly got this on startup after our shift to new GEF build. Looks
like that introduced in revision 1.15

!ENTRY org.eclipse.ui.workbench 4 2
Re: Bug in the GraphicalEditor? [message #94450 is a reply to message #94403] Tue, 16 September 2003 14:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Which version of Eclipse? This isn't happening for us in 2.1.1.

Are you overriding the initialization process in some way? Is it getSite()
that is returning null?

Thanks

"Alex Selkov" <as@empproject.com> wrote in message
news:bk71j4$doc$1@eclipse.org...
>
> We constantly got this on startup after our shift to new GEF build. Looks
> like that introduced in revision 1.15
>
> !ENTRY org.eclipse.ui.workbench 4 2
Re: Bug in the GraphicalEditor? [message #99893 is a reply to message #94450] Wed, 15 October 2003 14:14 Go to previous messageGo to next message
Udo Walker is currently offline Udo WalkerFriend
Messages: 81
Registered: July 2009
Member
Hi,

I have the same problem as Alex. Always an error dialog when I restart
Eclipse. The exception in the log file is exactly the same. I did not
overwrite getSite(). What else could I set in my Editor class to destroy
the reference to the site?

I use GEF 2.1.2 and Eclipse 2.1.1


With regards,

Udo



Randy Hudson wrote:
>
> Which version of Eclipse? This isn't happening for us in 2.1.1.
>
> Are you overriding the initialization process in some way? Is it getSite()
> that is returning null?
>
> Thanks
>
> "Alex Selkov" <as@empproject.com> wrote in message
> news:bk71j4$doc$1@eclipse.org...
> >
> > We constantly got this on startup after our shift to new GEF build. Looks
> > like that introduced in revision 1.15
> >
> > !ENTRY org.eclipse.ui.workbench 4 2
Re: Bug in the GraphicalEditor? [message #99996 is a reply to message #99893] Wed, 15 October 2003 15:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

This is a multi-part message in MIME format.

------=_NextPart_000_007A_01C39311.B1D52990
Content-Type: text/plain;
charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Are you overriding or extending init(...)?

Find out what is NULL, and check for when it is supposed to be SET, and =
why it itsn't getting set. My guess is, in GraphicalEditor:

public void init(IEditorSite site, IEditorInput input) throws =
PartInitException {
setSite(site);
setInput(input);
getCommandStack().addCommandStackListener(this);
=
getSite().getWorkbenchWindow().getSelectionService().addSele ctionListener=
(this);
initializeActionRegistry();
}

You are not getting to the setSite() part.

"Udo Walker" <Udo.Walker@abas.de> wrote in message =
news:3F8D565B.F0CA6F59@abas.de...
Hi,

I have the same problem as Alex. Always an error dialog when I restart
Eclipse. The exception in the log file is exactly the same. I did not
overwrite getSite(). What else could I set in my Editor class to destroy
the reference to the site?

I use GEF 2.1.2 and Eclipse 2.1.1


With regards,

Udo



Randy Hudson wrote:
>=20
> Which version of Eclipse? This isn't happening for us in 2.1.1.
>=20
> Are you overriding the initialization process in some way? Is it =
getSite()
> that is returning null?
>=20
> Thanks
>=20
> "Alex Selkov" <as@empproject.com> wrote in message
> news:bk71j4$doc$1@eclipse.org...
> >
> > We constantly got this on startup after our shift to new GEF build. =
Looks
> > like that introduced in revision 1.15
> >
> > !ENTRY org.eclipse.ui.workbench 4 2 16, 2003 16:46:18.91
> > !MESSAGE Problems occurred when invoking code from plug-in:
> > "org.eclipse.ui.workbench".
> > !STACK 0
> > java.lang.NullPointerException
> > at
> >
> =
org.eclipse.gef.ui.parts.GraphicalEditor.selectionChanged(Gr aphicalEditor=
..ja
> > va:291)
> > at
> >
> =
org.eclipse.ui.internal.AbstractSelectionService$3.run(Abstr actSelectionS=
erv
> > ice.java:143)
> > at
> >
> =
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.j=
ava
> > :1006)
> > at org.eclipse.core.runtime.Platform.run(Platform.java:413)
> > at
> >
> =
org.eclipse.ui.internal.AbstractSelectionService.fireSelecti on(AbstractSe=
lec
> > tionService.java:141)
> > at
> >
> =
org.eclipse.ui.internal.AbstractSelectionService.partActivat ed(AbstractSe=
lec
> > tionService.java:244)
> > at
> >
> =
org.eclipse.ui.internal.WWinPartService$1.partActivated(WWin PartService.j=
ava
> > :29)
> > at
> >
> =
org.eclipse.ui.internal.WWinPartService.pageActivated(WWinPa rtService.jav=
a:1
> > 55)
> > at
> >
> =
org.eclipse.ui.internal.WWinPartService.pageOpened(WWinPartS ervice.java:1=
71)
> > at
> >
> =
org.eclipse.ui.internal.WorkbenchWindow.firePageOpened(Workb enchWindow.ja=
va:
> > 859)
> > at
> >
> =
org.eclipse.ui.internal.WorkbenchWindow.restoreState(Workben chWindow.java=
:13
> > 29)
> > at =
org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1263)
> > at org.eclipse.ui.internal.Workbench.access$10(Workbench.java:1 223)
> > at org.eclipse.ui.internal.Workbench$12.run(Workbench.java:1141 )
> > at
> >
> =
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.j=
ava
> > :1006)
> > at org.eclipse.core.runtime.Platform.run(Platform.java:413)
> > at
> >
> =
org.eclipse.ui.internal.Workbench.openPreviousWorkbenchState (Workbench.ja=
va:
> > 1093)
> > at org.eclipse.ui.internal.Workbench.init(Workbench.java:870)
> > at org.eclipse.ui.internal.Workbench.run(Workbench.java:1373)
> > at
> >
> =
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.=
jav
> > a:858)
> > at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> =
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java=
:39
> > )
> > at
> >
> =
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorI=
mpl
> > .java:25)
> > at java.lang.reflect.Method.invoke(Method.java:324)
> > at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
> > at org.eclipse.core.launcher.Main.run(Main.java:747)
> > at org.eclipse.core.launcher.Main.main(Main.java:583)
> >
> >

------=_NextPart_000_007A_01C39311.B1D52990
Content-Type: text/html;
charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8">
<META content=3D"MSHTML 6.00.2733.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Are you overriding or extending=20
init(...)?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Find out what is NULL, and check for =
when it is=20
supposed to be SET, and why it itsn't getting set.&nbsp; My guess is, in =

GraphicalEditor:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2>public void=20
init(IEditorSite site, IEditorInput input) throws PartInitException=20
{<BR>&nbsp;setSite(site);<BR>&nbsp;setInput(input); <BR>&nbsp;getCommandSt=
ack().addCommandStackListener(this);<BR>&nbsp;getSite().getWorkbenchWindo=
w().getSelectionService().addSelectionListener(this);<BR>&nbsp;initialize=
ActionRegistry();<BR>}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>You are not getting to the setSite()=20
part.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"Udo Walker" &lt;</FONT><A=20
href=3D"mailto:Udo.Walker@abas.de"><FONT face=3DArial=20
size=3D2>Udo.Walker@abas.de</FONT></A><FONT face=3DArial size=3D2>&gt; =
wrote in=20
message </FONT><A href=3D"news:3F8D565B.F0CA6F59@abas.de"><FONT =
face=3DArial=20
size=3D2>news:3F8D565B.F0CA6F59@abas.de</FONT></A><FONT face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>Hi,<BR><BR>I have =
the same=20
problem as Alex. Always an error dialog when I restart<BR>Eclipse. The =
exception=20
in the log file is exactly the same. I did not<BR>overwrite getSite(). =
What else=20
could I set in my Editor class to destroy<BR>the reference to the =
site?<BR><BR>I=20
use GEF 2.1.2 and Eclipse 2.1.1<BR><BR><BR>With=20
regards,<BR><BR>Udo<BR><BR><BR><BR>Randy Hudson wrote:<BR>&gt; <BR>&gt; =
Which=20
version of Eclipse?&nbsp; This isn't happening for us in 2.1.1.<BR>&gt; =
<BR>&gt;=20
Are you overriding the initialization process in some way?&nbsp; Is it=20
getSite()<BR>&gt; that is returning null?<BR>&gt; <BR>&gt; =
Thanks<BR>&gt;=20
<BR>&gt; "Alex Selkov" &lt;</FONT><A =
href=3D"mailto:as@empproject.com"><FONT=20
face=3DArial size=3D2>as@empproject.com</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote=20
in message<BR>&gt; </FONT><A =
href=3D"news:bk71j4$doc$1@eclipse.org"><FONT=20
face=3DArial size=3D2>news:bk71j4$doc$1@eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...<BR>&gt; &gt;<BR>&gt; &gt; We constantly got this on startup =
after our=20
shift to new GEF build. Looks<BR>&gt; &gt; like that introduced in =
revision=20
1.15<BR>&gt; &gt;<BR>&gt; &gt; !ENTRY org.eclipse.ui.workbench 4 =
2&nbsp;&nbsp;=20
16, 2003 16:46:18.91<BR>&gt; &gt; !MESSAGE Problems occurred when =
invoking code=20
from plug-in:<BR>&gt; &gt; "org.eclipse.ui.workbench".<BR>&gt; &gt; =
!STACK=20
0<BR>&gt; &gt; java.lang.NullPointerException<BR>&gt; &gt;&nbsp; =
at<BR>&gt;=20
&gt;<BR>&gt;=20
org.eclipse.gef.ui.parts.GraphicalEditor.selectionChanged(Gr aphicalEditor=
..ja<BR>&gt;=20
&gt; va:291)<BR>&gt; &gt;&nbsp; at<BR>&gt; &gt;<BR>&gt;=20
org.eclipse.ui.internal.AbstractSelectionService$3.run(Abstr actSelectionS=
erv<BR>&gt;=20
&gt; ice.java:143)<BR>&gt; &gt;&nbsp; at<BR>&gt; &gt;<BR>&gt;=20
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.j=
ava<BR>&gt;=20
&gt; :1006)<BR>&gt; &gt;&nbsp; at=20
org.eclipse.core.runtime.Platform.run(Platform.java:413)<BR >&gt; =
&gt;&nbsp;=20
at<BR>&gt; &gt;<BR>&gt;=20
org.eclipse.ui.internal.AbstractSelectionService.fireSelecti on(AbstractSe=
lec<BR>&gt;=20
&gt; tionService.java:141)<BR>&gt; &gt;&nbsp; at<BR>&gt; &gt;<BR>&gt;=20
org.eclipse.ui.internal.AbstractSelectionService.partActivat ed(AbstractSe=
lec<BR>&gt;=20
&gt; tionService.java:244)<BR>&gt; &gt;&nbsp; at<BR>&gt; &gt;<BR>&gt;=20
org.eclipse.ui.internal.WWinPartService$1.partActivated(WWin PartService.j=
ava<BR>&gt;=20
&gt; :29)<BR>&gt; &gt;&nbsp; at<BR>&gt; &gt;<BR>&gt;=20
org.eclipse.ui.internal.WWinPartService.pageActivated(WWinPa rtService.jav=
a:1<BR>&gt;=20
&gt; 55)<BR>&gt; &gt;&nbsp; at<BR>&gt; &gt;<BR>&gt;=20
org.eclipse.ui.internal.WWinPartService.pageOpened(WWinPartS ervice.java:1=
71)<BR>&gt;=20
&gt;&nbsp; at<BR>&gt; &gt;<BR>&gt;=20
org.eclipse.ui.internal.WorkbenchWindow.firePageOpened(Workb enchWindow.ja=
va:<BR>&gt;=20
&gt; 859)<BR>&gt; &gt;&nbsp; at<BR>&gt; &gt;<BR>&gt;=20
org.eclipse.ui.internal.WorkbenchWindow.restoreState(Workben chWindow.java=
:13<BR>&gt;=20
&gt; 29)<BR>&gt; &gt;&nbsp; at=20
org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1263) <BR>&g=
t;=20
&gt;&nbsp; at=20
org.eclipse.ui.internal.Workbench.access$10(Workbench.java:1 223) <BR>&gt; =

&gt;&nbsp; at=20
org.eclipse.ui.internal.Workbench$12.run(Workbench.java:1141 ) <BR>&gt; =
&gt;&nbsp;=20
at<BR>&gt; &gt;<BR>&gt;=20
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.j=
ava<BR>&gt;=20
&gt; :1006)<BR>&gt; &gt;&nbsp; at=20
org.eclipse.core.runtime.Platform.run(Platform.java:413)<BR >&gt; =
&gt;&nbsp;=20
at<BR>&gt; &gt;<BR>&gt;=20
org.eclipse.ui.internal.Workbench.openPreviousWorkbenchState (Workbench.ja=
va:<BR>&gt;=20
&gt; 1093)<BR>&gt; &gt;&nbsp; at=20
org.eclipse.ui.internal.Workbench.init(Workbench.java:870)<BR >&gt; =
&gt;&nbsp; at=20
org.eclipse.ui.internal.Workbench.run(Workbench.java:1373)<BR >&gt; =
&gt;&nbsp;=20
at<BR>&gt; &gt;<BR>&gt;=20
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.=
jav<BR>&gt;=20
&gt; a:858)<BR>&gt; &gt;&nbsp; at=20
org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)<BR >&gt; =
&gt;&nbsp; at=20
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<BR>&gt; =
&gt;&nbsp;=20
at<BR>&gt; &gt;<BR>&gt;=20
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java=
:39<BR>&gt;=20
&gt; )<BR>&gt; &gt;&nbsp; at<BR>&gt; &gt;<BR>&gt;=20
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorI=
mpl<BR>&gt;=20
&gt; .java:25)<BR>&gt; &gt;&nbsp; at=20
java.lang.reflect.Method.invoke(Method.java:324)<BR>&gt; &gt;&nbsp; at=20
org.eclipse.core.launcher.Main.basicRun(Main.java:291)<BR>&gt; =
&gt;&nbsp; at=20
org.eclipse.core.launcher.Main.run(Main.java:747)<BR>&gt; &gt;&nbsp; at=20
org.eclipse.core.launcher.Main.main(Main.java:583)<BR>&gt; &gt;<BR>&gt;=20
&gt;</FONT></BODY></HTML>

------=_NextPart_000_007A_01C39311.B1D52990--
Re: Bug in the GraphicalEditor? [message #100024 is a reply to message #99996] Wed, 15 October 2003 17:18 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

This is a multi-part message in MIME format.

------=_NextPart_000_00C3_01C3931E.D15052B0
Content-Type: text/plain;
charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

We have finally reproduced this problem. to reproduce it, you must =
terminate the workbench instead of shutting down properly. Then, when =
you relaunch, getActivePage returns null for some reason. We are =
investigating.
"Randy Hudson" <none@us.ibm.com> wrote in message =
news:bmjq04$eif$1@eclipse.org...
Are you overriding or extending init(...)?

Find out what is NULL, and check for when it is supposed to be SET, =
and why it itsn't getting set. My guess is, in GraphicalEditor:

public void init(IEditorSite site, IEditorInput input) throws =
PartInitException {
setSite(site);
setInput(input);
getCommandStack().addCommandStackListener(this);
=
getSite().getWorkbenchWindow().getSelectionService().addSele ctionListener=
(this);
initializeActionRegistry();
}

You are not getting to the setSite() part.

"Udo Walker" <Udo.Walker@abas.de> wrote in message =
news:3F8D565B.F0CA6F59@abas.de...
Hi,

I have the same problem as Alex. Always an error dialog when I restart
Eclipse. The exception in the log file is exactly the same. I did not
overwrite getSite(). What else could I set in my Editor class to =
destroy
the reference to the site?

I use GEF 2.1.2 and Eclipse 2.1.1


With regards,

Udo



Randy Hudson wrote:
>=20
> Which version of Eclipse? This isn't happening for us in 2.1.1.
>=20
> Are you overriding the initialization process in some way? Is it =
getSite()
> that is returning null?
>=20
> Thanks
>=20
> "Alex Selkov" <as@empproject.com> wrote in message
> news:bk71j4$doc$1@eclipse.org...
> >
> > We constantly got this on startup after our shift to new GEF =
build. Looks
> > like that introduced in revision 1.15
> >
> > !ENTRY org.eclipse.ui.workbench 4 2 16, 2003 16:46:18.91
> > !MESSAGE Problems occurred when invoking code from plug-in:
> > "org.eclipse.ui.workbench".
> > !STACK 0
> > java.lang.NullPointerException
> > at
> >
> =
org.eclipse.gef.ui.parts.GraphicalEditor.selectionChanged(Gr aphicalEditor=
..ja
> > va:291)
> > at
> >
> =
org.eclipse.ui.internal.AbstractSelectionService$3.run(Abstr actSelectionS=
erv
> > ice.java:143)
> > at
> >
> =
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.j=
ava
> > :1006)
> > at org.eclipse.core.runtime.Platform.run(Platform.java:413)
> > at
> >
> =
org.eclipse.ui.internal.AbstractSelectionService.fireSelecti on(AbstractSe=
lec
> > tionService.java:141)
> > at
> >
> =
org.eclipse.ui.internal.AbstractSelectionService.partActivat ed(AbstractSe=
lec
> > tionService.java:244)
> > at
> >
> =
org.eclipse.ui.internal.WWinPartService$1.partActivated(WWin PartService.j=
ava
> > :29)
> > at
> >
> =
org.eclipse.ui.internal.WWinPartService.pageActivated(WWinPa rtService.jav=
a:1
> > 55)
> > at
> >
> =
org.eclipse.ui.internal.WWinPartService.pageOpened(WWinPartS ervice.java:1=
71)
> > at
> >
> =
org.eclipse.ui.internal.WorkbenchWindow.firePageOpened(Workb enchWindow.ja=
va:
> > 859)
> > at
> >
> =
org.eclipse.ui.internal.WorkbenchWindow.restoreState(Workben chWindow.java=
:13
> > 29)
> > at =
org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1263)
> > at =
org.eclipse.ui.internal.Workbench.access$10(Workbench.java:1 223)
> > at org.eclipse.ui.internal.Workbench$12.run(Workbench.java:1141 )
> > at
> >
> =
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.j=
ava
> > :1006)
> > at org.eclipse.core.runtime.Platform.run(Platform.java:413)
> > at
> >
> =
org.eclipse.ui.internal.Workbench.openPreviousWorkbenchState (Workbench.ja=
va:
> > 1093)
> > at org.eclipse.ui.internal.Workbench.init(Workbench.java:870)
> > at org.eclipse.ui.internal.Workbench.run(Workbench.java:1373)
> > at
> >
> =
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.=
jav
> > a:858)
> > at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> =
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java=
:39
> > )
> > at
> >
> =
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorI=
mpl
> > .java:25)
> > at java.lang.reflect.Method.invoke(Method.java:324)
> > at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
> > at org.eclipse.core.launcher.Main.run(Main.java:747)
> > at org.eclipse.core.launcher.Main.main(Main.java:583)
> >
> >=20

------=_NextPart_000_00C3_01C3931E.D15052B0
Content-Type: text/html;
charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8">
<META content=3D"MSHTML 6.00.2733.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>We have finally reproduced this =
problem.&nbsp; to=20
reproduce it, you must terminate the workbench instead of shutting down=20
properly.&nbsp; Then, when you relaunch, getActivePage returns null for =
some=20
reason.&nbsp; We are investigating.</FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Randy Hudson" &lt;<A=20
href=3D"mailto:none@us.ibm.com">none@us.ibm.com</A>&gt; wrote in =
message <A=20
=
href=3D"news:bmjq04$eif$1@eclipse.org">news:bmjq04$eif$1@eclipse.org</A>.=
...</DIV>
<DIV><FONT face=3DArial size=3D2>Are you overriding or extending=20
init(...)?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Find out what is NULL, and check for =
when it is=20
supposed to be SET, and why it itsn't getting set.&nbsp; My guess is, =
in=20
GraphicalEditor:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2>public void=20
init(IEditorSite site, IEditorInput input) throws PartInitException=20
=
{<BR>&nbsp;setSite(site);<BR>&nbsp;setInput(input); <BR>&nbsp;getCommandSt=
ack().addCommandStackListener(this);<BR>&nbsp;getSite().getWorkbenchWindo=
w().getSelectionService().addSelectionListener(this);<BR>&nbsp;initialize=
ActionRegistry();<BR>}</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>You are not getting to the setSite()=20
part.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"Udo Walker" &lt;</FONT><A=20
href=3D"mailto:Udo.Walker@abas.de"><FONT face=3DArial=20
size=3D2>Udo.Walker@abas.de</FONT></A><FONT face=3DArial size=3D2>&gt; =
wrote in=20
message </FONT><A href=3D"news:3F8D565B.F0CA6F59@abas.de"><FONT =
face=3DArial=20
size=3D2>news:3F8D565B.F0CA6F59@abas.de</FONT></A><FONT face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>Hi,<BR><BR>I have =
the same=20
problem as Alex. Always an error dialog when I restart<BR>Eclipse. The =

exception in the log file is exactly the same. I did not<BR>overwrite=20
getSite(). What else could I set in my Editor class to destroy<BR>the=20
reference to the site?<BR><BR>I use GEF 2.1.2 and Eclipse=20
2.1.1<BR><BR><BR>With regards,<BR><BR>Udo<BR><BR><BR><BR>Randy Hudson=20
wrote:<BR>&gt; <BR>&gt; Which version of Eclipse?&nbsp; This isn't =
happening=20
for us in 2.1.1.<BR>&gt; <BR>&gt; Are you overriding the =
initialization=20
process in some way?&nbsp; Is it getSite()<BR>&gt; that is returning=20
null?<BR>&gt; <BR>&gt; Thanks<BR>&gt; <BR>&gt; "Alex Selkov" =
&lt;</FONT><A=20
href=3D"mailto:as@empproject.com"><FONT face=3DArial=20
size=3D2>as@empproject.com</FONT></A><FONT face=3DArial size=3D2>&gt; =
wrote in=20
message<BR>&gt; </FONT><A href=3D"news:bk71j4$doc$1@eclipse.org"><FONT =

face=3DArial size=3D2>news:bk71j4$doc$1@eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...<BR>&gt; &gt;<BR>&gt; &gt; We constantly got this on =
startup after=20
our shift to new GEF build. Looks<BR>&gt; &gt; like that introduced in =

revision 1.15<BR>&gt; &gt;<BR>&gt; &gt; !ENTRY =
org.eclipse.ui.workbench 4=20
2&nbsp;&nbsp; 16, 2003 16:46:18.91<BR>&gt; &gt; !MESSAGE Problems =
occurred=20
when invoking code from plug-in:<BR>&gt; &gt;=20
"org.eclipse.ui.workbench".<BR>&gt; &gt; !STACK 0<BR>&gt; &gt;=20
java.lang.NullPointerException<BR>&gt; &gt;&nbsp; at<BR>&gt; =
&gt;<BR>&gt;=20
=
org.eclipse.gef.ui.parts.GraphicalEditor.selectionChanged(Gr aphicalEditor=
..ja<BR>&gt;=20
&gt; va:291)<BR>&gt; &gt;&nbsp; at<BR>&gt; &gt;<BR>&gt;=20
=
org.eclipse.ui.internal.AbstractSelectionService$3.run(Abstr actSelectionS=
erv<BR>&gt;=20
&gt; ice.java:143)<BR>&gt; &gt;&nbsp; at<BR>&gt; &gt;<BR>&gt;=20
=
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.j=
ava<BR>&gt;=20
&gt; :1006)<BR>&gt; &gt;&nbsp; at=20
org.eclipse.core.runtime.Platform.run(Platform.java:413)<BR >&gt; =
&gt;&nbsp;=20
at<BR>&gt; &gt;<BR>&gt;=20
=
org.eclipse.ui.internal.AbstractSelectionService.fireSelecti on(AbstractSe=
lec<BR>&gt;=20
&gt; tionService.java:141)<BR>&gt; &gt;&nbsp; at<BR>&gt; &gt;<BR>&gt;=20
=
org.eclipse.ui.internal.AbstractSelectionService.partActivat ed(AbstractSe=
lec<BR>&gt;=20
&gt; tionService.java:244)<BR>&gt; &gt;&nbsp; at<BR>&gt; &gt;<BR>&gt;=20
=
org.eclipse.ui.internal.WWinPartService$1.partActivated(WWin PartService.j=
ava<BR>&gt;=20
&gt; :29)<BR>&gt; &gt;&nbsp; at<BR>&gt; &gt;<BR>&gt;=20
=
org.eclipse.ui.internal.WWinPartService.pageActivated(WWinPa rtService.jav=
a:1<BR>&gt;=20
&gt; 55)<BR>&gt; &gt;&nbsp; at<BR>&gt; &gt;<BR>&gt;=20
=
org.eclipse.ui.internal.WWinPartService.pageOpened(WWinPartS ervice.java:1=
71)<BR>&gt;=20
&gt;&nbsp; at<BR>&gt; &gt;<BR>&gt;=20
=
org.eclipse.ui.internal.WorkbenchWindow.firePageOpened(Workb enchWindow.ja=
va:<BR>&gt;=20
&gt; 859)<BR>&gt; &gt;&nbsp; at<BR>&gt; &gt;<BR>&gt;=20
=
org.eclipse.ui.internal.WorkbenchWindow.restoreState(Workben chWindow.java=
:13<BR>&gt;=20
&gt; 29)<BR>&gt; &gt;&nbsp; at=20
=
org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1263) <BR>&g=
t;=20
&gt;&nbsp; at=20
=
org.eclipse.ui.internal.Workbench.access$10(Workbench.java:1 223) <BR>&gt; =

&gt;&nbsp; at=20
org.eclipse.ui.internal.Workbench$12.run(Workbench.java:1141 ) <BR>&gt;=20
&gt;&nbsp; at<BR>&gt; &gt;<BR>&gt;=20
=
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.j=
ava<BR>&gt;=20
&gt; :1006)<BR>&gt; &gt;&nbsp; at=20
org.eclipse.core.runtime.Platform.run(Platform.java:413)<BR >&gt; =
&gt;&nbsp;=20
at<BR>&gt; &gt;<BR>&gt;=20
=
org.eclipse.ui.internal.Workbench.openPreviousWorkbenchState (Workbench.ja=
va:<BR>&gt;=20
&gt; 1093)<BR>&gt; &gt;&nbsp; at=20
org.eclipse.ui.internal.Workbench.init(Workbench.java:870)<BR >&gt; =
&gt;&nbsp;=20
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1373)<BR >&gt;=20
&gt;&nbsp; at<BR>&gt; &gt;<BR>&gt;=20
=
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.=
jav<BR>&gt;=20
&gt; a:858)<BR>&gt; &gt;&nbsp; at=20
org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)<BR >&gt; =
&gt;&nbsp;=20
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<BR>&gt; =

&gt;&nbsp; at<BR>&gt; &gt;<BR>&gt;=20
=
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java=
:39<BR>&gt;=20
&gt; )<BR>&gt; &gt;&nbsp; at<BR>&gt; &gt;<BR>&gt;=20
=
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorI=
mpl<BR>&gt;=20
&gt; .java:25)<BR>&gt; &gt;&nbsp; at=20
java.lang.reflect.Method.invoke(Method.java:324)<BR>&gt; &gt;&nbsp; at =

org.eclipse.core.launcher.Main.basicRun(Main.java:291)<BR>&gt; =
&gt;&nbsp; at=20
org.eclipse.core.launcher.Main.run(Main.java:747)<BR>&gt; &gt;&nbsp; =
at=20
org.eclipse.core.launcher.Main.main(Main.java:583)<BR>&gt; =
&gt;<BR>&gt;=20
&gt;</FONT> </BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_00C3_01C3931E.D15052B0--
Previous Topic:Using a ComboBoxDescriptor with Property sheet
Next Topic:dividing design resion
Goto Forum:
  


Current Time: Fri Dec 27 01:23:26 GMT 2024

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

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

Back to the top