Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Assert cannot be resolved
Assert cannot be resolved [message #116430] Tue, 03 April 2007 12:05 Go to next message
Eclipse UserFriend
Originally posted by: evaandoli.dodo.com.au

This is a multi-part message in MIME format.

------=_NextPart_000_0037_01C7763C.286D3730
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
I've created a GMF diagram editor.
I create a diagram save and then relaunch and reopen the diagram.

If I tried to add a new node I get the stack dump (see bottom).

The basic problem is Assert cannot be resolved (see code below).
Has anyone had this ?
public IStatus execute(IUndoableOperation operation,

IProgressMonitor monitor, IAdaptable info)

throws ExecutionException {

Assert.isNotNull(operation);



Thread [main] (Suspended (breakpoint at line 469 in =
DefaultOperationHistory))=20
DefaultOperationHistory.execute(IUndoableOperation, IProgressMonitor, =
IAdaptable) line: 469=20
DiagramCommandStack.execute(ICommand, IProgressMonitor) line: 205=20
DiagramCommandStack.execute(Command, IProgressMonitor) line: 168=20
DiagramCommandStack.execute(Command) line: 155=20
UnspecifiedTypeCreationTool(AbstractTool).executeCommand(Com mand) line: =
388=20
UnspecifiedTypeCreationTool(AbstractTool).executeCurrentComm and() line: =
400=20
UnspecifiedTypeCreationTool(CreationTool).performCreation(in t) line: =
133=20
UnspecifiedTypeCreationTool(CreationTool).handleButtonUp(int ) line: 178 =

UnspecifiedTypeCreationTool(AbstractTool).mouseUp(MouseEvent , =
EditPartViewer) line: 1053=20
DiagramEditDomain(EditDomain).mouseUp(MouseEvent, EditPartViewer) line: =
259=20
DomainEventDispatcher.dispatchMouseReleased(MouseEvent) line: 374=20
LightweightSystem$EventHandler.mouseUp(MouseEvent) line: 538=20
TypedListener.handleEvent(Event) line: 194=20
EventTable.sendEvent(Event) line: 66=20
FigureCanvas(Widget).sendEvent(Event) line: 938=20
Display.runDeferredEvents() line: 3490=20
Display.readAndDispatch() line: 3104=20
Workbench.runEventLoop(Window$IExceptionHandler, Display) line: 2264=20
Workbench.runUI() line: 2228=20
Workbench.access$4(Workbench) line: 2103=20
Workbench$4.run() line: 457=20
Realm.runWithDefault(Realm, Runnable) line: 289=20
Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 452=20
PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 149=20
IDEApplication.start(IApplicationContext) line: 101=20
EclipseAppHandle.run(Object) line: 146=20
EclipseAppLauncher.runApplication(Object) line: 106=20
EclipseAppLauncher.start(Object) line: 76=20
EclipseStarter.run(Object) line: 354=20
EclipseStarter.run(String[], Runnable) line: 169=20
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not =
available [native method]=20
NativeMethodAccessorImpl.invoke(Object, Object[]) line: not available=20
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: not =
available=20
Method.invoke(Object, Object...) line: not available=20
Main.invokeFramework(String[], URL[]) line: 476=20
Main.basicRun(String[]) line: 416=20
Main.run(String[]) line: 1124=20
Main.main(String[]) line: 1099=20

------=_NextPart_000_0037_01C7763C.286D3730
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16414" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I've created a GMF diagram =
editor.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I create a diagram save and then =
relaunch and=20
reopen the diagram.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If I tried to add a new node I get the =
stack dump=20
(see bottom).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The basic problem is Assert cannot be =
resolved (see=20
code below).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Has anyone had this ?</FONT></DIV>
<DIV>
<P align=3Dleft><FONT face=3DArial color=3D#0000ff size=3D2>public =
IStatus=20
execute(IUndoableOperation operation,</FONT></P>
<P align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2>IProgressMonitor monitor,=20
IAdaptable info)</FONT></P>
<P align=3Dleft><FONT face=3DArial color=3D#0000ff size=3D2>throws =
ExecutionException=20
{</FONT></P>
<P><FONT face=3DArial size=3D2><FONT=20
color=3D#0000ff><STRONG>Assert</STRONG>.isNotNull(operation); </FONT></FON=
T></P></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thread [main] (Suspended (breakpoint at =
line 469 in=20
DefaultOperationHistory))&nbsp;<BR>&nbsp;DefaultOperationHistory.execute(=
IUndoableOperation,=20
IProgressMonitor, IAdaptable) line:=20
469&nbsp;<BR>&nbsp;DiagramCommandStack.execute(ICommand, =
IProgressMonitor) line:=20
205&nbsp;<BR>&nbsp;DiagramCommandStack.execute(Command, =
IProgressMonitor) line:=20
168&nbsp;<BR>&nbsp;DiagramCommandStack.execute(Command) line:=20
155&nbsp;<BR> &nbsp;UnspecifiedTypeCreationTool(AbstractTool).executeC omma=
nd(Command)=20
line:=20
388&nbsp;<BR> &nbsp;UnspecifiedTypeCreationTool(AbstractTool).executeC urre=
ntCommand()=20
line:=20
400&nbsp;<BR> &nbsp;UnspecifiedTypeCreationTool(CreationTool).performC reat=
ion(int)=20
line:=20
133&nbsp;<BR> &nbsp;UnspecifiedTypeCreationTool(CreationTool).handleBu tton=
Up(int)=20
line:=20
178&nbsp;<BR> &nbsp;UnspecifiedTypeCreationTool(AbstractTool).mouseUp( Mous=
eEvent,=20
EditPartViewer) line:=20
1053&nbsp;<BR> &nbsp;DiagramEditDomain(EditDomain).mouseUp(MouseEvent,= 20
EditPartViewer) line:=20
259&nbsp;<BR> &nbsp;DomainEventDispatcher.dispatchMouseReleased(MouseE vent=
) line:=20
374&nbsp;<BR> &nbsp;LightweightSystem$EventHandler.mouseUp(MouseEvent) =
line:=20
538&nbsp;<BR>&nbsp;TypedListener.handleEvent(Event) line:=20
194&nbsp;<BR>&nbsp;EventTable.sendEvent(Event) line:=20
66&nbsp;<BR>&nbsp;FigureCanvas(Widget).sendEvent(Event) line:=20
938&nbsp;<BR>&nbsp;Display.runDeferredEvents() line:=20
3490&nbsp;<BR>&nbsp;Display.readAndDispatch() line:=20
3104&nbsp;<BR>&nbsp;Workbench.runEventLoop(Window$IExceptionHandler, =
Display)=20
line: 2264&nbsp;<BR>&nbsp;Workbench.runUI() line:=20
2228&nbsp;<BR>&nbsp;Workbench.access$4(Workbench) line:=20
2103&nbsp;<BR>&nbsp;Workbench$4.run() line:=20
457&nbsp;<BR>&nbsp;Realm.runWithDefault(Realm, Runnable) line:=20
289&nbsp;<BR>&nbsp;Workbench.createAndRunWorkbench(Display, =
WorkbenchAdvisor)=20
line: 452&nbsp;<BR>&nbsp;PlatformUI.createAndRunWorkbench(Display,=20
WorkbenchAdvisor) line:=20
149&nbsp;<BR>&nbsp;IDEApplication.start(IApplicationContext) line:=20
101&nbsp;<BR>&nbsp;EclipseAppHandle.run(Object) line:=20
146&nbsp;<BR>&nbsp;EclipseAppLauncher.runApplication(Object) line:=20
106&nbsp;<BR>&nbsp;EclipseAppLauncher.start(Object) line:=20
76&nbsp;<BR>&nbsp;EclipseStarter.run(Object) line:=20
354&nbsp;<BR>&nbsp;EclipseStarter.run(String[], Runnable) line:=20
169&nbsp;<BR>&nbsp;NativeMethodAccessorImpl.invoke0(Method, Object, =
Object[])=20
line: not available [native=20
method]&nbsp;<BR>&nbsp;NativeMethodAccessorImpl.invoke(Object, Object[]) =
line:=20
not available&nbsp;<BR>&nbsp;DelegatingMethodAccessorImpl.invoke(Object, =

Object[]) line: not available&nbsp;<BR>&nbsp;Method.invoke(Object, =
Object...)=20
line: not available&nbsp;<BR>&nbsp;Main.invokeFramework(String[], URL[]) =
line:=20
476&nbsp;<BR>&nbsp;Main.basicRun(String[]) line:=20
416&nbsp;<BR>&nbsp;Main.run(String[]) line:=20
1124&nbsp;<BR>&nbsp;Main.main(String[]) line:=20
1099&nbsp;<BR></FONT></DIV></BODY></HTML>

------=_NextPart_000_0037_01C7763C.286D3730--
Re: Assert cannot be resolved [message #116439 is a reply to message #116430] Tue, 03 April 2007 12:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

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

Stu,

Which Assert is this? Did you add the plugin that provides it to the
MANIFEST.MF of the plugin that uses it. Don't ever edit the project
classpath directly via the properties view when developing plugins;
always edit the dependencies of the MANIFEST.MF instead.


Stu wrote:
> Hi,
> I've created a GMF diagram editor.
> I create a diagram save and then relaunch and reopen the diagram.
>
> If I tried to add a new node I get the stack dump (see bottom).
>
> The basic problem is Assert cannot be resolved (see code below).
> Has anyone had this ?
>
> public IStatus execute(IUndoableOperation operation,
>
> IProgressMonitor monitor, IAdaptable info)
>
> throws ExecutionException {
>
> *Assert*.isNotNull(operation);
>
>
>
> Thread [main] (Suspended (breakpoint at line 469 in
> DefaultOperationHistory))
> DefaultOperationHistory.execute(IUndoableOperation, IProgressMonitor,
> IAdaptable) line: 469
> DiagramCommandStack.execute(ICommand, IProgressMonitor) line: 205
> DiagramCommandStack.execute(Command, IProgressMonitor) line: 168
> DiagramCommandStack.execute(Command) line: 155
> UnspecifiedTypeCreationTool(AbstractTool).executeCommand(Com mand)
> line: 388
> UnspecifiedTypeCreationTool(AbstractTool).executeCurrentComm and()
> line: 400
> UnspecifiedTypeCreationTool(CreationTool).performCreation(in t) line: 133
> UnspecifiedTypeCreationTool(CreationTool).handleButtonUp(int ) line: 178
> UnspecifiedTypeCreationTool(AbstractTool).mouseUp(MouseEvent ,
> EditPartViewer) line: 1053
> DiagramEditDomain(EditDomain).mouseUp(MouseEvent, EditPartViewer)
> line: 259
> DomainEventDispatcher.dispatchMouseReleased(MouseEvent) line: 374
> LightweightSystem$EventHandler.mouseUp(MouseEvent) line: 538
> TypedListener.handleEvent(Event) line: 194
> EventTable.sendEvent(Event) line: 66
> FigureCanvas(Widget).sendEvent(Event) line: 938
> Display.runDeferredEvents() line: 3490
> Display.readAndDispatch() line: 3104
> Workbench.runEventLoop(Window$IExceptionHandler, Display) line: 2264
> Workbench.runUI() line: 2228
> Workbench.access$4(Workbench) line: 2103
> Workbench$4.run() line: 457
> Realm.runWithDefault(Realm, Runnable) line: 289
> Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 452
> PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 149
> IDEApplication.start(IApplicationContext) line: 101
> EclipseAppHandle.run(Object) line: 146
> EclipseAppLauncher.runApplication(Object) line: 106
> EclipseAppLauncher.start(Object) line: 76
> EclipseStarter.run(Object) line: 354
> EclipseStarter.run(String[], Runnable) line: 169
> NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not
> available [native method]
> NativeMethodAccessorImpl.invoke(Object, Object[]) line: not available
> DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: not
> available
> Method.invoke(Object, Object...) line: not available
> Main.invokeFramework(String[], URL[]) line: 476
> Main.basicRun(String[]) line: 416
> Main.run(String[]) line: 1124
> Main.main(String[]) line: 1099


--------------070404080208070208040607
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Stu,<br>
<br>
Which Assert is this?&nbsp; Did you add the plugin that provides it to the
MANIFEST.MF of the plugin that uses it.&nbsp; Don't ever edit the project
classpath directly via the properties view when developing plugins;
always edit the dependencies of the MANIFEST.MF instead.<br>
<br>
<br>
Stu wrote:
<blockquote cite="mideutfu0$t8r$1@build.eclipse.org" type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.6000.16414" name="GENERATOR">
<style></style>
<div><font face="Arial" size="2">Hi,</font></div>
<div><font face="Arial" size="2">I've created a GMF diagram editor.</font></div>
<div><font face="Arial" size="2">I create a diagram save and then
relaunch and reopen the diagram.</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">If I tried to add a new node I get
the stack dump (see bottom).</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">The basic problem is Assert cannot
be resolved (see code below).</font></div>
<div><font face="Arial" size="2">Has anyone had this ?</font></div>
<div>
<p align="left"><font color="#0000ff" face="Arial" size="2">public
IStatus execute(IUndoableOperation operation,</font></p>
<p align="left"><font color="#0000ff" face="Arial" size="2">IProgressMonitor
monitor, IAdaptable info)</font></p>
<p align="left"><font color="#0000ff" face="Arial" size="2">throws
ExecutionException {</font></p>
<p><font face="Arial" size="2"><font color="#0000ff"><strong>Assert</strong>.isNotNull(operation); </font></font></p>
</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">Thread [main] (Suspended (breakpoint
at line 469 in DefaultOperationHistory))&nbsp;<br>
&nbsp;DefaultOperationHistory.execute(IUndoableOperation , IProgressMonitor,
IAdaptable) line: 469&nbsp;<br>
&nbsp;DiagramCommandStack.execute(ICommand, IProgressMonitor) line: 205&nbsp;<br>
&nbsp;DiagramCommandStack.execute(Command, IProgressMonitor) line: 168&nbsp;<br>
&nbsp;DiagramCommandStack.execute(Command) line: 155&nbsp;<br>
&nbsp;UnspecifiedTypeCreationTool(AbstractTool).executeC ommand(Command)
line: 388&nbsp;<br>
&nbsp;UnspecifiedTypeCreationTool(AbstractTool).executeC urrentCommand()
line: 400&nbsp;<br>
&nbsp;UnspecifiedTypeCreationTool(CreationTool).performC reation(int) line:
133&nbsp;<br>
&nbsp;UnspecifiedTypeCreationTool(CreationTool).handleBu ttonUp(int) line:
178&nbsp;<br>
&nbsp;UnspecifiedTypeCreationTool(AbstractTool).mouseUp( MouseEvent,
EditPartViewer) line: 1053&nbsp;<br>
&nbsp;DiagramEditDomain(EditDomain).mouseUp(MouseEvent, EditPartViewer)
line: 259&nbsp;<br>
&nbsp;DomainEventDispatcher.dispatchMouseReleased(MouseE vent) line: 374&nbsp;<br>
&nbsp;LightweightSystem$EventHandler.mouseUp(MouseEvent) line: 538&nbsp;<br>
&nbsp;TypedListener.handleEvent(Event) line: 194&nbsp;<br>
&nbsp;EventTable.sendEvent(Event) line: 66&nbsp;<br>
&nbsp;FigureCanvas(Widget).sendEvent(Event) line: 938&nbsp;<br>
&nbsp;Display.runDeferredEvents() line: 3490&nbsp;<br>
&nbsp;Display.readAndDispatch() line: 3104&nbsp;<br>
&nbsp;Workbench.runEventLoop(Window$IExceptionHandler, Display) line: 2264&nbsp;<br>
&nbsp;Workbench.runUI() line: 2228&nbsp;<br>
&nbsp;Workbench.access$4(Workbench) line: 2103&nbsp;<br>
&nbsp;Workbench$4.run() line: 457&nbsp;<br>
&nbsp;Realm.runWithDefault(Realm, Runnable) line: 289&nbsp;<br>
&nbsp;Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 452&nbsp;<br>
&nbsp;PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 149&nbsp;<br>
&nbsp;IDEApplication.start(IApplicationContext) line: 101&nbsp;<br>
&nbsp;EclipseAppHandle.run(Object) line: 146&nbsp;<br>
&nbsp;EclipseAppLauncher.runApplication(Object) line: 106&nbsp;<br>
&nbsp;EclipseAppLauncher.start(Object) line: 76&nbsp;<br>
&nbsp;EclipseStarter.run(Object) line: 354&nbsp;<br>
&nbsp;EclipseStarter.run(String[], Runnable) line: 169&nbsp;<br>
&nbsp;NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not
available [native method]&nbsp;<br>
&nbsp;NativeMethodAccessorImpl.invoke(Object, Object[]) line: not available&nbsp;<br>
&nbsp;DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: not
available&nbsp;<br>
&nbsp;Method.invoke(Object, Object...) line: not available&nbsp;<br>
&nbsp;Main.invokeFramework(String[], URL[]) line: 476&nbsp;<br>
&nbsp;Main.basicRun(String[]) line: 416&nbsp;<br>
&nbsp;Main.run(String[]) line: 1124&nbsp;<br>
&nbsp;Main.main(String[]) line: 1099&nbsp;<br>
</font></div>
</blockquote>
<br>
</body>
</html>

--------------070404080208070208040607--
Re: Assert cannot be resolved [message #116446 is a reply to message #116439] Tue, 03 April 2007 12:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: evaandoli.dodo.com.au

This is a multi-part message in MIME format.

------=_NextPart_000_0048_01C7763E.F3A2C850
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


The import statement on the DefaultOperationHistory class is:-
import org.eclipse.core.runtime.Assert;

I dont believe I have edited the MANIFEST.MF but the fact I have had the =
rebuild the project already today worries me.
How do I re-generate the MANIFEST.MF ? or get a clean one (if that makes =
sense).

Thanks for your time once more

"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:eutgo6$4l8$1@build.eclipse.org...
Stu,

Which Assert is this? Did you add the plugin that provides it to the =
MANIFEST.MF of the plugin that uses it. Don't ever edit the project =
classpath directly via the properties view when developing plugins; =
always edit the dependencies of the MANIFEST.MF instead.


Stu wrote:=20
Hi,
I've created a GMF diagram editor.
I create a diagram save and then relaunch and reopen the diagram.

If I tried to add a new node I get the stack dump (see bottom).

The basic problem is Assert cannot be resolved (see code below).
Has anyone had this ?
public IStatus execute(IUndoableOperation operation,

IProgressMonitor monitor, IAdaptable info)

throws ExecutionException {

Assert.isNotNull(operation);



Thread [main] (Suspended (breakpoint at line 469 in =
DefaultOperationHistory))=20
DefaultOperationHistory.execute(IUndoableOperation, =
IProgressMonitor, IAdaptable) line: 469=20
DiagramCommandStack.execute(ICommand, IProgressMonitor) line: 205=20
DiagramCommandStack.execute(Command, IProgressMonitor) line: 168=20
DiagramCommandStack.execute(Command) line: 155=20
UnspecifiedTypeCreationTool(AbstractTool).executeCommand(Com mand) =
line: 388=20
UnspecifiedTypeCreationTool(AbstractTool).executeCurrentComm and() =
line: 400=20
UnspecifiedTypeCreationTool(CreationTool).performCreation(in t) =
line: 133=20
UnspecifiedTypeCreationTool(CreationTool).handleButtonUp(int ) line: =
178=20
UnspecifiedTypeCreationTool(AbstractTool).mouseUp(MouseEvent , =
EditPartViewer) line: 1053=20
DiagramEditDomain(EditDomain).mouseUp(MouseEvent, EditPartViewer) =
line: 259=20
DomainEventDispatcher.dispatchMouseReleased(MouseEvent) line: 374=20
LightweightSystem$EventHandler.mouseUp(MouseEvent) line: 538=20
TypedListener.handleEvent(Event) line: 194=20
EventTable.sendEvent(Event) line: 66=20
FigureCanvas(Widget).sendEvent(Event) line: 938=20
Display.runDeferredEvents() line: 3490=20
Display.readAndDispatch() line: 3104=20
Workbench.runEventLoop(Window$IExceptionHandler, Display) line: =
2264=20
Workbench.runUI() line: 2228=20
Workbench.access$4(Workbench) line: 2103=20
Workbench$4.run() line: 457=20
Realm.runWithDefault(Realm, Runnable) line: 289=20
Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: =
452=20
PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: =
149=20
IDEApplication.start(IApplicationContext) line: 101=20
EclipseAppHandle.run(Object) line: 146=20
EclipseAppLauncher.runApplication(Object) line: 106=20
EclipseAppLauncher.start(Object) line: 76=20
EclipseStarter.run(Object) line: 354=20
EclipseStarter.run(String[], Runnable) line: 169=20
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: =
not available [native method]=20
NativeMethodAccessorImpl.invoke(Object, Object[]) line: not =
available=20
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: not =
available=20
Method.invoke(Object, Object...) line: not available=20
Main.invokeFramework(String[], URL[]) line: 476=20
Main.basicRun(String[]) line: 416=20
Main.run(String[]) line: 1124=20
Main.main(String[]) line: 1099=20



------=_NextPart_000_0048_01C7763E.F3A2C850
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3DISO-8859-1>
<META content=3D"MSHTML 6.00.6000.16414" name=3DGENERATOR></HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The import statement on the =
DefaultOperationHistory=20
class is:-</FONT></DIV><FONT face=3DArial size=3D2><B><FONT =
color=3D#7f0055 size=3D2>
<P align=3Dleft>import</B></FONT><FONT size=3D2>=20
org.eclipse.core.runtime.Assert;</P>
<DIV></FONT>I dont believe I have edited the MANIFEST.MF but the fact I =
have had=20
the rebuild the project already today worries me.</DIV>
<DIV>How do I re-generate the MANIFEST.MF ? or get a clean one (if that =
makes=20
sense).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for your time once =
more</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>"Ed Merks" &lt;<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt;=20
wrote in message <A=20
href=3D"news:eutgo6$4l8$1@build.eclipse.org">news:eutgo6$4l8$1@build.ecli=
pse.org</A>...</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">Stu,<BR><BR>Which=20
Assert is this?&nbsp; Did you add the plugin that provides it to the=20
MANIFEST.MF of the plugin that uses it.&nbsp; Don't ever edit the =
project=20
classpath directly via the properties view when developing plugins; =
always=20
edit the dependencies of the MANIFEST.MF instead.<BR><BR><BR>Stu =
wrote:=20
<BLOCKQUOTE cite=3Dmideutfu0$t8r$1@build.eclipse.org type=3D"cite">
<META content=3D"MSHTML 6.00.6000.16414" name=3DGENERATOR>
<STYLE></STYLE>

<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I've created a GMF diagram =
editor.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I create a diagram save and then =
relaunch and=20
reopen the diagram.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If I tried to add a new node I get =
the stack=20
dump (see bottom).</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The basic problem is Assert cannot =
be resolved=20
(see code below).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Has anyone had this ?</FONT></DIV>
<DIV>
<P align=3Dleft><FONT face=3DArial color=3D#0000ff size=3D2>public =
IStatus=20
execute(IUndoableOperation operation,</FONT></P>
<P align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2>IProgressMonitor=20
monitor, IAdaptable info)</FONT></P>
<P align=3Dleft><FONT face=3DArial color=3D#0000ff size=3D2>throws=20
ExecutionException {</FONT></P>
<P><FONT face=3DArial size=3D2><FONT=20
=
color=3D#0000ff><STRONG>Assert</STRONG>.isNotNull(operation); </FONT></FON=
T></P></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thread [main] (Suspended =
(breakpoint at line=20
469 in=20
=
DefaultOperationHistory))&nbsp;<BR>&nbsp;DefaultOperationHistory.execute(=
IUndoableOperation,=20
IProgressMonitor, IAdaptable) line:=20
469&nbsp;<BR>&nbsp;DiagramCommandStack.execute(ICommand, =
IProgressMonitor)=20
line: 205&nbsp;<BR>&nbsp;DiagramCommandStack.execute(Command,=20
IProgressMonitor) line:=20
168&nbsp;<BR>&nbsp;DiagramCommandStack.execute(Command) line:=20
=
155&nbsp;<BR> &nbsp;UnspecifiedTypeCreationTool(AbstractTool).executeC omma=
nd(Command)=20
line:=20
=
388&nbsp;<BR> &nbsp;UnspecifiedTypeCreationTool(AbstractTool).executeC urre=
ntCommand()=20
line:=20
=
400&nbsp;<BR> &nbsp;UnspecifiedTypeCreationTool(CreationTool).performC reat=
ion(int)=20
line:=20
=
133&nbsp;<BR> &nbsp;UnspecifiedTypeCreationTool(CreationTool).handleBu tton=
Up(int)=20
line:=20
=
178&nbsp;<BR> &nbsp;UnspecifiedTypeCreationTool(AbstractTool).mouseUp( Mous=
eEvent,=20
EditPartViewer) line:=20
=
1053&nbsp;<BR> &nbsp;DiagramEditDomain(EditDomain).mouseUp(MouseEvent,= 20
EditPartViewer) line:=20
=
259&nbsp;<BR> &nbsp;DomainEventDispatcher.dispatchMouseReleased(MouseE vent=
)=20
line: =
374&nbsp;<BR> &nbsp;LightweightSystem$EventHandler.mouseUp(MouseEvent) =20
line: 538&nbsp;<BR>&nbsp;TypedListener.handleEvent(Event) line:=20
194&nbsp;<BR>&nbsp;EventTable.sendEvent(Event) line:=20
66&nbsp;<BR>&nbsp;FigureCanvas(Widget).sendEvent(Event) line:=20
938&nbsp;<BR>&nbsp;Display.runDeferredEvents() line:=20
3490&nbsp;<BR>&nbsp;Display.readAndDispatch() line:=20
3104&nbsp;<BR>&nbsp;Workbench.runEventLoop(Window$IExceptionHandler, =

Display) line: 2264&nbsp;<BR>&nbsp;Workbench.runUI() line:=20
2228&nbsp;<BR>&nbsp;Workbench.access$4(Workbench) line:=20
2103&nbsp;<BR>&nbsp;Workbench$4.run() line:=20
457&nbsp;<BR>&nbsp;Realm.runWithDefault(Realm, Runnable) line:=20
289&nbsp;<BR>&nbsp;Workbench.createAndRunWorkbench(Display,=20
WorkbenchAdvisor) line:=20
452&nbsp;<BR>&nbsp;PlatformUI.createAndRunWorkbench(Display,=20
WorkbenchAdvisor) line:=20
149&nbsp;<BR>&nbsp;IDEApplication.start(IApplicationContext) line:=20
101&nbsp;<BR>&nbsp;EclipseAppHandle.run(Object) line:=20
146&nbsp;<BR>&nbsp;EclipseAppLauncher.runApplication(Object) line:=20
106&nbsp;<BR>&nbsp;EclipseAppLauncher.start(Object) line:=20
76&nbsp;<BR>&nbsp;EclipseStarter.run(Object) line:=20
354&nbsp;<BR>&nbsp;EclipseStarter.run(String[], Runnable) line:=20
169&nbsp;<BR>&nbsp;NativeMethodAccessorImpl.invoke0(Method, Object,=20
Object[]) line: not available [native=20
method]&nbsp;<BR>&nbsp;NativeMethodAccessorImpl.invoke(Object, =
Object[])=20
line: not=20
available&nbsp;<BR>&nbsp;DelegatingMethodAccessorImpl.invoke(Object, =

Object[]) line: not available&nbsp;<BR>&nbsp;Method.invoke(Object,=20
Object...) line: not =
available&nbsp;<BR>&nbsp;Main.invokeFramework(String[],=20
URL[]) line: 476&nbsp;<BR>&nbsp;Main.basicRun(String[]) line:=20
416&nbsp;<BR>&nbsp;Main.run(String[]) line:=20
1124&nbsp;<BR>&nbsp;Main.main(String[]) line:=20
=
1099&nbsp;<BR></FONT></DIV></BLOCKQUOTE><BR></BLOCKQUOTE ></BODY></HTML>

------=_NextPart_000_0048_01C7763E.F3A2C850--
Re: Assert cannot be resolved [message #116695 is a reply to message #116446] Tue, 03 April 2007 12:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

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

Stu,

You should edit the MANIFEST.MF and use the "Dependencies" tab to add a
dependency on the org.eclipse.equinox.common plugin. Or perhaps you
should just use a Java assert to avoid this dependency.


Stu wrote:
>
> The import statement on the DefaultOperationHistory class is:-
> **
>
> *import* org.eclipse.core.runtime.Assert;
>
> I dont believe I have edited the MANIFEST.MF but the fact I have had
> the rebuild the project already today worries me.
> How do I re-generate the MANIFEST.MF ? or get a clean one (if that
> makes sense).
>
> Thanks for your time once more
>
> "Ed Merks" <merks@ca.ibm.com <mailto:merks@ca.ibm.com>> wrote in
> message news:eutgo6$4l8$1@build.eclipse.org...
>
> Stu,
>
> Which Assert is this? Did you add the plugin that provides it to
> the MANIFEST.MF of the plugin that uses it. Don't ever edit the
> project classpath directly via the properties view when developing
> plugins; always edit the dependencies of the MANIFEST.MF instead.
>
>
> Stu wrote:
>> Hi,
>> I've created a GMF diagram editor.
>> I create a diagram save and then relaunch and reopen the diagram.
>>
>> If I tried to add a new node I get the stack dump (see bottom).
>>
>> The basic problem is Assert cannot be resolved (see code below).
>> Has anyone had this ?
>>
>> public IStatus execute(IUndoableOperation operation,
>>
>> IProgressMonitor monitor, IAdaptable info)
>>
>> throws ExecutionException {
>>
>> *Assert*.isNotNull(operation);
>>
>>
>>
>> Thread [main] (Suspended (breakpoint at line 469 in
>> DefaultOperationHistory))
>> DefaultOperationHistory.execute(IUndoableOperation,
>> IProgressMonitor, IAdaptable) line: 469
>> DiagramCommandStack.execute(ICommand, IProgressMonitor) line: 205
>> DiagramCommandStack.execute(Command, IProgressMonitor) line: 168
>> DiagramCommandStack.execute(Command) line: 155
>> UnspecifiedTypeCreationTool(AbstractTool).executeCommand(Com mand)
>> line: 388
>> UnspecifiedTypeCreationTool(AbstractTool).executeCurrentComm and()
>> line: 400
>> UnspecifiedTypeCreationTool(CreationTool).performCreation(in t)
>> line: 133
>> UnspecifiedTypeCreationTool(CreationTool).handleButtonUp(int )
>> line: 178
>> UnspecifiedTypeCreationTool(AbstractTool).mouseUp(MouseEvent ,
>> EditPartViewer) line: 1053
>> DiagramEditDomain(EditDomain).mouseUp(MouseEvent,
>> EditPartViewer) line: 259
>> DomainEventDispatcher.dispatchMouseReleased(MouseEvent) line: 374
>> LightweightSystem$EventHandler.mouseUp(MouseEvent) line: 538
>> TypedListener.handleEvent(Event) line: 194
>> EventTable.sendEvent(Event) line: 66
>> FigureCanvas(Widget).sendEvent(Event) line: 938
>> Display.runDeferredEvents() line: 3490
>> Display.readAndDispatch() line: 3104
>> Workbench.runEventLoop(Window$IExceptionHandler, Display) line:
>> 2264
>> Workbench.runUI() line: 2228
>> Workbench.access$4(Workbench) line: 2103
>> Workbench$4.run() line: 457
>> Realm.runWithDefault(Realm, Runnable) line: 289
>> Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line:
>> 452
>> PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor)
>> line: 149
>> IDEApplication.start(IApplicationContext) line: 101
>> EclipseAppHandle.run(Object) line: 146
>> EclipseAppLauncher.runApplication(Object) line: 106
>> EclipseAppLauncher.start(Object) line: 76
>> EclipseStarter.run(Object) line: 354
>> EclipseStarter.run(String[], Runnable) line: 169
>> NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line:
>> not available [native method]
>> NativeMethodAccessorImpl.invoke(Object, Object[]) line: not
>> available
>> DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: not
>> available
>> Method.invoke(Object, Object...) line: not available
>> Main.invokeFramework(String[], URL[]) line: 476
>> Main.basicRun(String[]) line: 416
>> Main.run(String[]) line: 1124
>> Main.main(String[]) line: 1099
>


--------------060604030105090504050808
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Stu,<br>
<br>
You should edit the MANIFEST.MF and use the "Dependencies" tab to add a
dependency on the org.eclipse.equinox.common plugin.&nbsp; Or perhaps you
should just use a Java assert to avoid this dependency.<br>
<br>
<br>
Stu wrote:
<blockquote cite="mideuth3g$ahg$1@build.eclipse.org" type="cite">
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<meta content="MSHTML 6.00.6000.16414" name="GENERATOR">
<div>&nbsp;</div>
<div><font face="Arial" size="2">The import statement on the
DefaultOperationHistory class is:-</font></div>
<font face="Arial" size="2"><b><font color="#7f0055" size="2"></font></b></font>
<p align="left"><font face="Arial" size="2"><b><font color="#7f0055"
size="2">import</font></b><font size="2">
org.eclipse.core.runtime.Assert;</font></font></p>
<div><font face="Arial" size="2">I dont believe I have edited the
MANIFEST.MF but the fact I have had the rebuild the project already
today worries me.</font></div>
<div><font face="Arial" size="2">How do I re-generate the MANIFEST.MF
? or get a clean one (if that makes sense).</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">Thanks for your time once more</font></div>
<div>&nbsp;</div>
<div>"Ed Merks" &lt;<a href="mailto:merks@ca.ibm.com">merks@ca.ibm.com</a>&gt;
wrote in message <a href="news:eutgo6$4l8$1@build.eclipse.org">news:eutgo6$4l8$1@build.eclipse.org</a>...</div>
<blockquote
style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">Stu,<br>
<br>
Which Assert is this?&nbsp; Did you add the plugin that provides it to the
MANIFEST.MF of the plugin that uses it.&nbsp; Don't ever edit the project
classpath directly via the properties view when developing plugins;
always edit the dependencies of the MANIFEST.MF instead.<br>
<br>
<br>
Stu wrote:
<blockquote cite="mideutfu0$t8r$1@build.eclipse.org" type="cite">
<meta content="MSHTML 6.00.6000.16414" name="GENERATOR">
<style></style>
<div><font face="Arial" size="2">Hi,</font></div>
<div><font face="Arial" size="2">I've created a GMF diagram
editor.</font></div>
<div><font face="Arial" size="2">I create a diagram save and then
relaunch and reopen the diagram.</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">If I tried to add a new node I
get the stack dump (see bottom).</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">The basic problem is Assert
cannot be resolved (see code below).</font></div>
<div><font face="Arial" size="2">Has anyone had this ?</font></div>
<div>
<p align="left"><font color="#0000ff" face="Arial" size="2">public
IStatus execute(IUndoableOperation operation,</font></p>
<p align="left"><font color="#0000ff" face="Arial" size="2">IProgressMonitor
monitor, IAdaptable info)</font></p>
<p align="left"><font color="#0000ff" face="Arial" size="2">throws
ExecutionException {</font></p>
<p><font face="Arial" size="2"><font color="#0000ff"><strong>Assert</strong>.isNotNull(operation); </font></font></p>
</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">Thread [main] (Suspended
(breakpoint at line 469 in DefaultOperationHistory))&nbsp;<br>
&nbsp;DefaultOperationHistory.execute(IUndoableOperation , IProgressMonitor,
IAdaptable) line: 469&nbsp;<br>
&nbsp;DiagramCommandStack.execute(ICommand, IProgressMonitor) line: 205&nbsp;<br>
&nbsp;DiagramCommandStack.execute(Command, IProgressMonitor) line: 168&nbsp;<br>
&nbsp;DiagramCommandStack.execute(Command) line: 155&nbsp;<br>
&nbsp;UnspecifiedTypeCreationTool(AbstractTool).executeC ommand(Command)
line: 388&nbsp;<br>
&nbsp;UnspecifiedTypeCreationTool(AbstractTool).executeC urrentCommand()
line: 400&nbsp;<br>
&nbsp;UnspecifiedTypeCreationTool(CreationTool).performC reation(int) line:
133&nbsp;<br>
&nbsp;UnspecifiedTypeCreationTool(CreationTool).handleBu ttonUp(int) line:
178&nbsp;<br>
&nbsp;UnspecifiedTypeCreationTool(AbstractTool).mouseUp( MouseEvent,
EditPartViewer) line: 1053&nbsp;<br>
&nbsp;DiagramEditDomain(EditDomain).mouseUp(MouseEvent, EditPartViewer)
line: 259&nbsp;<br>
&nbsp;DomainEventDispatcher.dispatchMouseReleased(MouseE vent) line: 374&nbsp;<br>
&nbsp;LightweightSystem$EventHandler.mouseUp(MouseEvent) line: 538&nbsp;<br>
&nbsp;TypedListener.handleEvent(Event) line: 194&nbsp;<br>
&nbsp;EventTable.sendEvent(Event) line: 66&nbsp;<br>
&nbsp;FigureCanvas(Widget).sendEvent(Event) line: 938&nbsp;<br>
&nbsp;Display.runDeferredEvents() line: 3490&nbsp;<br>
&nbsp;Display.readAndDispatch() line: 3104&nbsp;<br>
&nbsp;Workbench.runEventLoop(Window$IExceptionHandler, Display) line: 2264&nbsp;<br>
&nbsp;Workbench.runUI() line: 2228&nbsp;<br>
&nbsp;Workbench.access$4(Workbench) line: 2103&nbsp;<br>
&nbsp;Workbench$4.run() line: 457&nbsp;<br>
&nbsp;Realm.runWithDefault(Realm, Runnable) line: 289&nbsp;<br>
&nbsp;Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 452&nbsp;<br>
&nbsp;PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 149&nbsp;<br>
&nbsp;IDEApplication.start(IApplicationContext) line: 101&nbsp;<br>
&nbsp;EclipseAppHandle.run(Object) line: 146&nbsp;<br>
&nbsp;EclipseAppLauncher.runApplication(Object) line: 106&nbsp;<br>
&nbsp;EclipseAppLauncher.start(Object) line: 76&nbsp;<br>
&nbsp;EclipseStarter.run(Object) line: 354&nbsp;<br>
&nbsp;EclipseStarter.run(String[], Runnable) line: 169&nbsp;<br>
&nbsp;NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not
available [native method]&nbsp;<br>
&nbsp;NativeMethodAccessorImpl.invoke(Object, Object[]) line: not available&nbsp;<br>
&nbsp;DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: not
available&nbsp;<br>
&nbsp;Method.invoke(Object, Object...) line: not available&nbsp;<br>
&nbsp;Main.invokeFramework(String[], URL[]) line: 476&nbsp;<br>
&nbsp;Main.basicRun(String[]) line: 416&nbsp;<br>
&nbsp;Main.run(String[]) line: 1124&nbsp;<br>
&nbsp;Main.main(String[]) line: 1099&nbsp;<br>
</font></div>
</blockquote>
<br>
</blockquote>
</blockquote>
<br>
</body>
</html>

--------------060604030105090504050808--
Re: Assert cannot be resolved [message #116718 is a reply to message #116695] Tue, 03 April 2007 13:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: evaandoli.dodo.com.au

This is a multi-part message in MIME format.

------=_NextPart_000_0063_01C77645.0728BDC0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Im not sure if this makes sense, but I deleted the diagram and =
"initialised" a new one from the XML data file (right mouse click =
initialise <name> diagram).

This stopped the issue occuring.

I not sure why this would fix the issue (some sort of data error in the =
old .diagram file). =20
I have never knowing adjusted the MANIFEST.MF.

If I can help get more information to help let me know.

"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:eutijm$f5v$1@build.eclipse.org...
Stu,

You should edit the MANIFEST.MF and use the "Dependencies" tab to add =
a dependency on the org.eclipse.equinox.common plugin. Or perhaps you =
should just use a Java assert to avoid this dependency.


Stu wrote:=20

The import statement on the DefaultOperationHistory class is:-
import org.eclipse.core.runtime.Assert;

I dont believe I have edited the MANIFEST.MF but the fact I have had =
the rebuild the project already today worries me.
How do I re-generate the MANIFEST.MF ? or get a clean one (if that =
makes sense).

Thanks for your time once more

"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:eutgo6$4l8$1@build.eclipse.org...
Stu,

Which Assert is this? Did you add the plugin that provides it to =
the MANIFEST.MF of the plugin that uses it. Don't ever edit the project =
classpath directly via the properties view when developing plugins; =
always edit the dependencies of the MANIFEST.MF instead.


Stu wrote:=20
Hi,
I've created a GMF diagram editor.
I create a diagram save and then relaunch and reopen the =
diagram.

If I tried to add a new node I get the stack dump (see bottom).

The basic problem is Assert cannot be resolved (see code below).
Has anyone had this ?
public IStatus execute(IUndoableOperation operation,

IProgressMonitor monitor, IAdaptable info)

throws ExecutionException {

Assert.isNotNull(operation);



Thread [main] (Suspended (breakpoint at line 469 in =
DefaultOperationHistory))=20
DefaultOperationHistory.execute(IUndoableOperation, =
IProgressMonitor, IAdaptable) line: 469=20
DiagramCommandStack.execute(ICommand, IProgressMonitor) line: =
205=20
DiagramCommandStack.execute(Command, IProgressMonitor) line: =
168=20
DiagramCommandStack.execute(Command) line: 155=20
=
UnspecifiedTypeCreationTool(AbstractTool).executeCommand(Com mand) line: =
388=20
=
UnspecifiedTypeCreationTool(AbstractTool).executeCurrentComm and() line: =
400=20
UnspecifiedTypeCreationTool(CreationTool).performCreation(in t) =
line: 133=20
UnspecifiedTypeCreationTool(CreationTool).handleButtonUp(int ) =
line: 178=20
UnspecifiedTypeCreationTool(AbstractTool).mouseUp(MouseEvent , =
EditPartViewer) line: 1053=20
DiagramEditDomain(EditDomain).mouseUp(MouseEvent, =
EditPartViewer) line: 259=20
DomainEventDispatcher.dispatchMouseReleased(MouseEvent) line: =
374=20
LightweightSystem$EventHandler.mouseUp(MouseEvent) line: 538=20
TypedListener.handleEvent(Event) line: 194=20
EventTable.sendEvent(Event) line: 66=20
FigureCanvas(Widget).sendEvent(Event) line: 938=20
Display.runDeferredEvents() line: 3490=20
Display.readAndDispatch() line: 3104=20
Workbench.runEventLoop(Window$IExceptionHandler, Display) line: =
2264=20
Workbench.runUI() line: 2228=20
Workbench.access$4(Workbench) line: 2103=20
Workbench$4.run() line: 457=20
Realm.runWithDefault(Realm, Runnable) line: 289=20
Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) =
line: 452=20
PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) =
line: 149=20
IDEApplication.start(IApplicationContext) line: 101=20
EclipseAppHandle.run(Object) line: 146=20
EclipseAppLauncher.runApplication(Object) line: 106=20
EclipseAppLauncher.start(Object) line: 76=20
EclipseStarter.run(Object) line: 354=20
EclipseStarter.run(String[], Runnable) line: 169=20
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) =
line: not available [native method]=20
NativeMethodAccessorImpl.invoke(Object, Object[]) line: not =
available=20
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: not =
available=20
Method.invoke(Object, Object...) line: not available=20
Main.invokeFramework(String[], URL[]) line: 476=20
Main.basicRun(String[]) line: 416=20
Main.run(String[]) line: 1124=20
Main.main(String[]) line: 1099=20





------=_NextPart_000_0063_01C77645.0728BDC0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3DISO-8859-1>
<META content=3D"MSHTML 6.00.6000.16414" name=3DGENERATOR></HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Im not sure if this makes sense,&nbsp; =
but I=20
deleted the diagram and "initialised" a new one from the XML data file =
(right=20
mouse click initialise &lt;name&gt; diagram).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>This stopped the issue =
occuring.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I not sure why this would fix the issue =
(some sort=20
of data error in the old .diagram file).&nbsp; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have never knowing adjusted the=20
MANIFEST.MF.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If I can help get more information to =
help let me=20
know.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:eutijm$f5v$1@build.eclipse.org">news:eutijm$f5v$1@build.ecli=
pse.org</A>...</DIV>Stu,<BR><BR>You=20
should edit the MANIFEST.MF and use the "Dependencies" tab to add a =
dependency=20
on the org.eclipse.equinox.common plugin.&nbsp; Or perhaps you should =
just use=20
a Java assert to avoid this dependency.<BR><BR><BR>Stu wrote:=20
<BLOCKQUOTE cite=3Dmideuth3g$ahg$1@build.eclipse.org type=3D"cite">
<META content=3D"MSHTML 6.00.6000.16414" name=3DGENERATOR>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The import statement on the=20
DefaultOperationHistory class is:-</FONT></DIV><FONT face=3DArial=20
size=3D2><B><FONT color=3D#7f0055 size=3D2></FONT></B></FONT>
<P align=3Dleft><FONT face=3DArial size=3D2><B><FONT color=3D#7f0055 =

size=3D2>import</FONT></B><FONT size=3D2>=20
org.eclipse.core.runtime.Assert;</FONT></FONT></P>
<DIV><FONT face=3DArial size=3D2>I dont believe I have edited the =
MANIFEST.MF=20
but the fact I have had the rebuild the project already today =
worries=20
me.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>How do I re-generate the =
MANIFEST.MF ? or get a=20
clean one (if that makes sense).</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for your time once =
more</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>"Ed Merks" &lt;<A=20
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt; wrote in =
message <A=20
=
href=3D"news:eutgo6$4l8$1@build.eclipse.org">news:eutgo6$4l8$1@build.ecli=
pse.org</A>...</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">Stu,<BR><BR>Which=20
Assert is this?&nbsp; Did you add the plugin that provides it to =
the=20
MANIFEST.MF of the plugin that uses it.&nbsp; Don't ever edit the =
project=20
classpath directly via the properties view when developing =
plugins; always=20
edit the dependencies of the MANIFEST.MF instead.<BR><BR><BR>Stu =
wrote:=20
<BLOCKQUOTE cite=3Dmideutfu0$t8r$1@build.eclipse.org =
type=3D"cite">
<META content=3D"MSHTML 6.00.6000.16414" name=3DGENERATOR>
<STYLE></STYLE>

<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I've created a GMF diagram=20
editor.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I create a diagram save and =
then relaunch=20
and reopen the diagram.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If I tried to add a new node I =
get the=20
stack dump (see bottom).</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The basic problem is Assert =
cannot be=20
resolved (see code below).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Has anyone had this =
?</FONT></DIV>
<DIV>
<P align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2>public IStatus=20
execute(IUndoableOperation operation,</FONT></P>
<P align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2>IProgressMonitor=20
monitor, IAdaptable info)</FONT></P>
<P align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2>throws=20
ExecutionException {</FONT></P>
<P><FONT face=3DArial size=3D2><FONT=20
=
color=3D#0000ff><STRONG>Assert</STRONG>.isNotNull(operation); </FONT></FON=
T></P></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thread [main] (Suspended =
(breakpoint at=20
line 469 in=20
=
DefaultOperationHistory))&nbsp;<BR>&nbsp;DefaultOperationHistory.execute(=
IUndoableOperation,=20
IProgressMonitor, IAdaptable) line:=20
469&nbsp;<BR>&nbsp;DiagramCommandStack.execute(ICommand,=20
IProgressMonitor) line:=20
205&nbsp;<BR>&nbsp;DiagramCommandStack.execute(Command,=20
IProgressMonitor) line:=20
168&nbsp;<BR>&nbsp;DiagramCommandStack.execute(Command) line:=20
=
155&nbsp;<BR> &nbsp;UnspecifiedTypeCreationTool(AbstractTool).executeC omma=
nd(Command)=20
line:=20
=
388&nbsp;<BR> &nbsp;UnspecifiedTypeCreationTool(AbstractTool).executeC urre=
ntCommand()=20
line:=20
=
400&nbsp;<BR> &nbsp;UnspecifiedTypeCreationTool(CreationTool).performC reat=
ion(int)=20
line:=20
=
133&nbsp;<BR> &nbsp;UnspecifiedTypeCreationTool(CreationTool).handleBu tton=
Up(int)=20
line:=20
=
178&nbsp;<BR> &nbsp;UnspecifiedTypeCreationTool(AbstractTool).mouseUp( Mous=
eEvent,=20
EditPartViewer) line:=20
=
1053&nbsp;<BR> &nbsp;DiagramEditDomain(EditDomain).mouseUp(MouseEvent,= 20
EditPartViewer) line:=20
=
259&nbsp;<BR> &nbsp;DomainEventDispatcher.dispatchMouseReleased(MouseE vent=
)=20
line:=20
=
374&nbsp;<BR> &nbsp;LightweightSystem$EventHandler.mouseUp(MouseEvent) =20
line: 538&nbsp;<BR>&nbsp;TypedListener.handleEvent(Event) line:=20
194&nbsp;<BR>&nbsp;EventTable.sendEvent(Event) line:=20
66&nbsp;<BR>&nbsp;FigureCanvas(Widget).sendEvent(Event) line:=20
938&nbsp;<BR>&nbsp;Display.runDeferredEvents() line:=20
3490&nbsp;<BR>&nbsp;Display.readAndDispatch() line:=20
=
3104&nbsp;<BR> &nbsp;Workbench.runEventLoop(Window$IExceptionHandler,=2 0
Display) line: 2264&nbsp;<BR>&nbsp;Workbench.runUI() line:=20
2228&nbsp;<BR>&nbsp;Workbench.access$4(Workbench) line:=20
2103&nbsp;<BR>&nbsp;Workbench$4.run() line:=20
457&nbsp;<BR>&nbsp;Realm.runWithDefault(Realm, Runnable) line:=20
289&nbsp;<BR>&nbsp;Workbench.createAndRunWorkbench(Display,=20
WorkbenchAdvisor) line:=20
452&nbsp;<BR>&nbsp;PlatformUI.createAndRunWorkbench(Display,=20
WorkbenchAdvisor) line:=20
149&nbsp;<BR>&nbsp;IDEApplication.start(IApplicationContext) =
line:=20
101&nbsp;<BR>&nbsp;EclipseAppHandle.run(Object) line:=20
146&nbsp;<BR>&nbsp;EclipseAppLauncher.runApplication(Object) =
line:=20
106&nbsp;<BR>&nbsp;EclipseAppLauncher.start(Object) line:=20
76&nbsp;<BR>&nbsp;EclipseStarter.run(Object) line:=20
354&nbsp;<BR>&nbsp;EclipseStarter.run(String[], Runnable) line:=20
169&nbsp;<BR>&nbsp;NativeMethodAccessorImpl.invoke0(Method, =
Object,=20
Object[]) line: not available [native=20
method]&nbsp;<BR>&nbsp;NativeMethodAccessorImpl.invoke(Object, =
Object[])=20
line: not=20
=
available&nbsp;<BR>&nbsp;DelegatingMethodAccessorImpl.invoke(Object,=20
Object[]) line: not =
available&nbsp;<BR>&nbsp;Method.invoke(Object,=20
Object...) line: not=20
available&nbsp;<BR>&nbsp;Main.invokeFramework(String[], URL[]) =
line:=20
476&nbsp;<BR>&nbsp;Main.basicRun(String[]) line:=20
416&nbsp;<BR>&nbsp;Main.run(String[]) line:=20
1124&nbsp;<BR>&nbsp;Main.main(String[]) line:=20
=
1099&nbsp;<BR></FONT></DIV></BLOCKQUOTE><BR></BLOCKQUOTE ></BLOCKQUOTE><BR=
></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0063_01C77645.0728BDC0--
Re: Assert cannot be resolved [message #116747 is a reply to message #116718] Tue, 03 April 2007 13:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

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

Stu,

It did seem odd that the core runtime was not already available. This
is similar to the odd problem you mentioned on the EMF newsgroup.
Normally I have theories for odd problems, but I have none for this one...


Stu wrote:
> Im not sure if this makes sense, but I deleted the diagram and
> "initialised" a new one from the XML data file (right mouse click
> initialise <name> diagram).
>
> This stopped the issue occuring.
>
> I not sure why this would fix the issue (some sort of data error in
> the old .diagram file).
> I have never knowing adjusted the MANIFEST.MF.
>
> If I can help get more information to help let me know.
>
>
> "Ed Merks" <merks@ca.ibm.com <mailto:merks@ca.ibm.com>> wrote in
> message news:eutijm$f5v$1@build.eclipse.org...
> Stu,
>
> You should edit the MANIFEST.MF and use the "Dependencies" tab to
> add a dependency on the org.eclipse.equinox.common plugin. Or
> perhaps you should just use a Java assert to avoid this dependency.
>
>
> Stu wrote:
>>
>> The import statement on the DefaultOperationHistory class is:-
>>
>> *import* org.eclipse.core.runtime.Assert;
>>
>> I dont believe I have edited the MANIFEST.MF but the fact I have
>> had the rebuild the project already today worries me.
>> How do I re-generate the MANIFEST.MF ? or get a clean one (if
>> that makes sense).
>>
>> Thanks for your time once more
>>
>> "Ed Merks" <merks@ca.ibm.com <mailto:merks@ca.ibm.com>> wrote in
>> message news:eutgo6$4l8$1@build.eclipse.org...
>>
>> Stu,
>>
>> Which Assert is this? Did you add the plugin that provides
>> it to the MANIFEST.MF of the plugin that uses it. Don't ever
>> edit the project classpath directly via the properties view
>> when developing plugins; always edit the dependencies of the
>> MANIFEST.MF instead.
>>
>>
>> Stu wrote:
>>> Hi,
>>> I've created a GMF diagram editor.
>>> I create a diagram save and then relaunch and reopen the
>>> diagram.
>>>
>>> If I tried to add a new node I get the stack dump (see bottom).
>>>
>>> The basic problem is Assert cannot be resolved (see code below).
>>> Has anyone had this ?
>>>
>>> public IStatus execute(IUndoableOperation operation,
>>>
>>> IProgressMonitor monitor, IAdaptable info)
>>>
>>> throws ExecutionException {
>>>
>>> *Assert*.isNotNull(operation);
>>>
>>>
>>>
>>> Thread [main] (Suspended (breakpoint at line 469 in
>>> DefaultOperationHistory))
>>> DefaultOperationHistory.execute(IUndoableOperation,
>>> IProgressMonitor, IAdaptable) line: 469
>>> DiagramCommandStack.execute(ICommand, IProgressMonitor)
>>> line: 205
>>> DiagramCommandStack.execute(Command, IProgressMonitor)
>>> line: 168
>>> DiagramCommandStack.execute(Command) line: 155
>>> UnspecifiedTypeCreationTool(AbstractTool).executeCommand(Com mand)
>>> line: 388
>>> UnspecifiedTypeCreationTool(AbstractTool).executeCurrentComm and()
>>> line: 400
>>> UnspecifiedTypeCreationTool(CreationTool).performCreation(in t)
>>> line: 133
>>> UnspecifiedTypeCreationTool(CreationTool).handleButtonUp(int )
>>> line: 178
>>> UnspecifiedTypeCreationTool(AbstractTool).mouseUp(MouseEvent ,
>>> EditPartViewer) line: 1053
>>> DiagramEditDomain(EditDomain).mouseUp(MouseEvent,
>>> EditPartViewer) line: 259
>>> DomainEventDispatcher.dispatchMouseReleased(MouseEvent)
>>> line: 374
>>> LightweightSystem$EventHandler.mouseUp(MouseEvent) line: 538
>>> TypedListener.handleEvent(Event) line: 194
>>> EventTable.sendEvent(Event) line: 66
>>> FigureCanvas(Widget).sendEvent(Event) line: 938
>>> Display.runDeferredEvents() line: 3490
>>> Display.readAndDispatch() line: 3104
>>> Workbench.runEventLoop(Window$IExceptionHandler, Display)
>>> line: 2264
>>> Workbench.runUI() line: 2228
>>> Workbench.access$4(Workbench) line: 2103
>>> Workbench$4.run() line: 457
>>> Realm.runWithDefault(Realm, Runnable) line: 289
>>> Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor)
>>> line: 452
>>> PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor)
>>> line: 149
>>> IDEApplication.start(IApplicationContext) line: 101
>>> EclipseAppHandle.run(Object) line: 146
>>> EclipseAppLauncher.runApplication(Object) line: 106
>>> EclipseAppLauncher.start(Object) line: 76
>>> EclipseStarter.run(Object) line: 354
>>> EclipseStarter.run(String[], Runnable) line: 169
>>> NativeMethodAccessorImpl.invoke0(Method, Object, Object[])
>>> line: not available [native method]
>>> NativeMethodAccessorImpl.invoke(Object, Object[]) line: not
>>> available
>>> DelegatingMethodAccessorImpl.invoke(Object, Object[]) line:
>>> not available
>>> Method.invoke(Object, Object...) line: not available
>>> Main.invokeFramework(String[], URL[]) line: 476
>>> Main.basicRun(String[]) line: 416
>>> Main.run(String[]) line: 1124
>>> Main.main(String[]) line: 1099
>>
>


--------------050101040400050603080104
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Stu,<br>
<br>
It did seem odd that the core runtime was not already available.&nbsp; This
is similar to the odd problem you mentioned on the EMF newsgroup.&nbsp;
Normally I have theories for odd problems, but I have none for this
one...<br>
<br>
<br>
Stu wrote:
<blockquote cite="mideutjl2$i29$1@build.eclipse.org" type="cite">
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<meta content="MSHTML 6.00.6000.16414" name="GENERATOR">
<div><font face="Arial" size="2">Im not sure if this makes sense,&nbsp;
but I deleted the diagram and "initialised" a new one from the XML data
file (right mouse click initialise &lt;name&gt; diagram).</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">This stopped the issue occuring.</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">I not sure why this would fix the
issue (some sort of data error in the old .diagram file).&nbsp; </font></div>
<div><font face="Arial" size="2">I have never knowing adjusted the
MANIFEST.MF.</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">If I can help get more information
to help let me know.</font></div>
<div>&nbsp;</div>
<blockquote
style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div>"Ed Merks" &lt;<a href="mailto:merks@ca.ibm.com">merks@ca.ibm.com</a>&gt;
wrote in message <a href="news:eutijm$f5v$1@build.eclipse.org">news:eutijm$f5v$1@build.eclipse.org</a>...</div>
Stu,<br>
<br>
You should edit the MANIFEST.MF and use the "Dependencies" tab to add a
dependency on the org.eclipse.equinox.common plugin.&nbsp; Or perhaps you
should just use a Java assert to avoid this dependency.<br>
<br>
<br>
Stu wrote:
<blockquote cite="mideuth3g$ahg$1@build.eclipse.org" type="cite">
<meta content="MSHTML 6.00.6000.16414" name="GENERATOR">
<div>&nbsp;</div>
<div><font face="Arial" size="2">The import statement on the
DefaultOperationHistory class is:-</font></div>
<p align="left"><font face="Arial" size="2"><b><font
color="#7f0055" size="2">import</font></b><font size="2">
org.eclipse.core.runtime.Assert;</font></font></p>
<div><font face="Arial" size="2">I dont believe I have edited the
MANIFEST.MF but the fact I have had the rebuild the project already
today worries me.</font></div>
<div><font face="Arial" size="2">How do I re-generate the
MANIFEST.MF ? or get a clean one (if that makes sense).</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">Thanks for your time once more</font></div>
<div>&nbsp;</div>
<div>"Ed Merks" &lt;<a href="mailto:merks@ca.ibm.com">merks@ca.ibm.com</a>&gt;
wrote in message <a href="news:eutgo6$4l8$1@build.eclipse.org">news:eutgo6$4l8$1@build.eclipse.org</a>...</div>
<blockquote
style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">Stu,<br>
<br>
Which Assert is this?&nbsp; Did you add the plugin that provides it to the
MANIFEST.MF of the plugin that uses it.&nbsp; Don't ever edit the project
classpath directly via the properties view when developing plugins;
always edit the dependencies of the MANIFEST.MF instead.<br>
<br>
<br>
Stu wrote:
<blockquote cite="mideutfu0$t8r$1@build.eclipse.org" type="cite">
<meta content="MSHTML 6.00.6000.16414" name="GENERATOR">
<style></style>
<div><font face="Arial" size="2">Hi,</font></div>
<div><font face="Arial" size="2">I've created a GMF diagram
editor.</font></div>
<div><font face="Arial" size="2">I create a diagram save and
then relaunch and reopen the diagram.</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">If I tried to add a new node
I get the stack dump (see bottom).</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">The basic problem is Assert
cannot be resolved (see code below).</font></div>
<div><font face="Arial" size="2">Has anyone had this ?</font></div>
<div>
<p align="left"><font color="#0000ff" face="Arial" size="2">public
IStatus execute(IUndoableOperation operation,</font></p>
<p align="left"><font color="#0000ff" face="Arial" size="2">IProgressMonitor
monitor, IAdaptable info)</font></p>
<p align="left"><font color="#0000ff" face="Arial" size="2">throws
ExecutionException {</font></p>
<p><font face="Arial" size="2"><font color="#0000ff"><strong>Assert</strong>.isNotNull(operation); </font></font></p>
</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">Thread [main] (Suspended
(breakpoint at line 469 in DefaultOperationHistory))&nbsp;<br>
&nbsp;DefaultOperationHistory.execute(IUndoableOperation , IProgressMonitor,
IAdaptable) line: 469&nbsp;<br>
&nbsp;DiagramCommandStack.execute(ICommand, IProgressMonitor) line: 205&nbsp;<br>
&nbsp;DiagramCommandStack.execute(Command, IProgressMonitor) line: 168&nbsp;<br>
&nbsp;DiagramCommandStack.execute(Command) line: 155&nbsp;<br>
&nbsp;UnspecifiedTypeCreationTool(AbstractTool).executeC ommand(Command)
line: 388&nbsp;<br>
&nbsp;UnspecifiedTypeCreationTool(AbstractTool).executeC urrentCommand()
line: 400&nbsp;<br>
&nbsp;UnspecifiedTypeCreationTool(CreationTool).performC reation(int) line:
133&nbsp;<br>
&nbsp;UnspecifiedTypeCreationTool(CreationTool).handleBu ttonUp(int) line:
178&nbsp;<br>
&nbsp;UnspecifiedTypeCreationTool(AbstractTool).mouseUp( MouseEvent,
EditPartViewer) line: 1053&nbsp;<br>
&nbsp;DiagramEditDomain(EditDomain).mouseUp(MouseEvent, EditPartViewer)
line: 259&nbsp;<br>
&nbsp;DomainEventDispatcher.dispatchMouseReleased(MouseE vent) line: 374&nbsp;<br>
&nbsp;LightweightSystem$EventHandler.mouseUp(MouseEvent) line: 538&nbsp;<br>
&nbsp;TypedListener.handleEvent(Event) line: 194&nbsp;<br>
&nbsp;EventTable.sendEvent(Event) line: 66&nbsp;<br>
&nbsp;FigureCanvas(Widget).sendEvent(Event) line: 938&nbsp;<br>
&nbsp;Display.runDeferredEvents() line: 3490&nbsp;<br>
&nbsp;Display.readAndDispatch() line: 3104&nbsp;<br>
&nbsp;Workbench.runEventLoop(Window$IExceptionHandler, Display) line: 2264&nbsp;<br>
&nbsp;Workbench.runUI() line: 2228&nbsp;<br>
&nbsp;Workbench.access$4(Workbench) line: 2103&nbsp;<br>
&nbsp;Workbench$4.run() line: 457&nbsp;<br>
&nbsp;Realm.runWithDefault(Realm, Runnable) line: 289&nbsp;<br>
&nbsp;Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 452&nbsp;<br>
&nbsp;PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 149&nbsp;<br>
&nbsp;IDEApplication.start(IApplicationContext) line: 101&nbsp;<br>
&nbsp;EclipseAppHandle.run(Object) line: 146&nbsp;<br>
&nbsp;EclipseAppLauncher.runApplication(Object) line: 106&nbsp;<br>
&nbsp;EclipseAppLauncher.start(Object) line: 76&nbsp;<br>
&nbsp;EclipseStarter.run(Object) line: 354&nbsp;<br>
&nbsp;EclipseStarter.run(String[], Runnable) line: 169&nbsp;<br>
&nbsp;NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not
available [native method]&nbsp;<br>
&nbsp;NativeMethodAccessorImpl.invoke(Object, Object[]) line: not available&nbsp;<br>
&nbsp;DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: not
available&nbsp;<br>
&nbsp;Method.invoke(Object, Object...) line: not available&nbsp;<br>
&nbsp;Main.invokeFramework(String[], URL[]) line: 476&nbsp;<br>
&nbsp;Main.basicRun(String[]) line: 416&nbsp;<br>
&nbsp;Main.run(String[]) line: 1124&nbsp;<br>
&nbsp;Main.main(String[]) line: 1099&nbsp;<br>
</font></div>
</blockquote>
<br>
</blockquote>
</blockquote>
<br>
</blockquote>
</blockquote>
<br>
</body>
</html>

--------------050101040400050603080104--
Re: Assert cannot be resolved [message #116759 is a reply to message #116747] Tue, 03 April 2007 13:50 Go to previous message
Eclipse UserFriend
Originally posted by: evaandoli.dodo.com.au

This is a multi-part message in MIME format.

------=_NextPart_000_007A_01C7764A.D55D0890
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Actually it all started when I was trying to deal with the XML save =
default reply you gave me.
I never got that working and it started all this.
Would that change have an impact on the MANIFEST.MF ?
I did change the resourceType in the .genmodel to see if that would make =
the save defaults work but it didn't.
But maybe this has had a cascade effect.

Anyway all in all an enjoyable day :-)
"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:eutl78$lff$1@build.eclipse.org...
Stu,

It did seem odd that the core runtime was not already available. This =
is similar to the odd problem you mentioned on the EMF newsgroup. =
Normally I have theories for odd problems, but I have none for this =
one...


Stu wrote:=20
Im not sure if this makes sense, but I deleted the diagram and =
"initialised" a new one from the XML data file (right mouse click =
initialise <name> diagram).

This stopped the issue occuring.

I not sure why this would fix the issue (some sort of data error in =
the old .diagram file). =20
I have never knowing adjusted the MANIFEST.MF.

If I can help get more information to help let me know.

"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:eutijm$f5v$1@build.eclipse.org...
Stu,

You should edit the MANIFEST.MF and use the "Dependencies" tab to =
add a dependency on the org.eclipse.equinox.common plugin. Or perhaps =
you should just use a Java assert to avoid this dependency.


Stu wrote:=20

The import statement on the DefaultOperationHistory class is:-
import org.eclipse.core.runtime.Assert;

I dont believe I have edited the MANIFEST.MF but the fact I have =
had the rebuild the project already today worries me.
How do I re-generate the MANIFEST.MF ? or get a clean one (if =
that makes sense).

Thanks for your time once more

"Ed Merks" <merks@ca.ibm.com> wrote in message =
news:eutgo6$4l8$1@build.eclipse.org...
Stu,

Which Assert is this? Did you add the plugin that provides it =
to the MANIFEST.MF of the plugin that uses it. Don't ever edit the =
project classpath directly via the properties view when developing =
plugins; always edit the dependencies of the MANIFEST.MF instead.


Stu wrote:=20
Hi,
I've created a GMF diagram editor.
I create a diagram save and then relaunch and reopen the =
diagram.

If I tried to add a new node I get the stack dump (see =
bottom).

The basic problem is Assert cannot be resolved (see code =
below).
Has anyone had this ?
public IStatus execute(IUndoableOperation operation,

IProgressMonitor monitor, IAdaptable info)

throws ExecutionException {

Assert.isNotNull(operation);



Thread [main] (Suspended (breakpoint at line 469 in =
DefaultOperationHistory))=20
DefaultOperationHistory.execute(IUndoableOperation, =
IProgressMonitor, IAdaptable) line: 469=20
DiagramCommandStack.execute(ICommand, IProgressMonitor) =
line: 205=20
DiagramCommandStack.execute(Command, IProgressMonitor) =
line: 168=20
DiagramCommandStack.execute(Command) line: 155=20
=
UnspecifiedTypeCreationTool(AbstractTool).executeCommand(Com mand) line: =
388=20
=
UnspecifiedTypeCreationTool(AbstractTool).executeCurrentComm and() line: =
400=20
=
UnspecifiedTypeCreationTool(CreationTool).performCreation(in t) line: 133 =

=
UnspecifiedTypeCreationTool(CreationTool).handleButtonUp(int ) line: 178=20
=
UnspecifiedTypeCreationTool(AbstractTool).mouseUp(MouseEvent , =
EditPartViewer) line: 1053=20
DiagramEditDomain(EditDomain).mouseUp(MouseEvent, =
EditPartViewer) line: 259=20
DomainEventDispatcher.dispatchMouseReleased(MouseEvent) =
line: 374=20
LightweightSystem$EventHandler.mouseUp(MouseEvent) line: =
538=20
TypedListener.handleEvent(Event) line: 194=20
EventTable.sendEvent(Event) line: 66=20
FigureCanvas(Widget).sendEvent(Event) line: 938=20
Display.runDeferredEvents() line: 3490=20
Display.readAndDispatch() line: 3104=20
Workbench.runEventLoop(Window$IExceptionHandler, Display) =
line: 2264=20
Workbench.runUI() line: 2228=20
Workbench.access$4(Workbench) line: 2103=20
Workbench$4.run() line: 457=20
Realm.runWithDefault(Realm, Runnable) line: 289=20
Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) =
line: 452=20
PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) =
line: 149=20
IDEApplication.start(IApplicationContext) line: 101=20
EclipseAppHandle.run(Object) line: 146=20
EclipseAppLauncher.runApplication(Object) line: 106=20
EclipseAppLauncher.start(Object) line: 76=20
EclipseStarter.run(Object) line: 354=20
EclipseStarter.run(String[], Runnable) line: 169=20
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) =
line: not available [native method]=20
NativeMethodAccessorImpl.invoke(Object, Object[]) line: not =
available=20
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: =
not available=20
Method.invoke(Object, Object...) line: not available=20
Main.invokeFramework(String[], URL[]) line: 476=20
Main.basicRun(String[]) line: 416=20
Main.run(String[]) line: 1124=20
Main.main(String[]) line: 1099=20







------=_NextPart_000_007A_01C7764A.D55D0890
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3DISO-8859-1>
<META content=3D"MSHTML 6.00.6000.16414" name=3DGENERATOR></HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Actually it all started when I was =
trying to deal=20
with the XML save default reply you gave me.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I never got that working and it started =
all=20
this.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Would that change have an impact on the =
MANIFEST.MF=20
?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I did change the resourceType in the =
..genmodel to=20
see if that would make the save defaults work but it =
didn't.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>But maybe this has had a cascade=20
effect.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Anyway all in all an enjoyable day =
:-)</FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A =
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:eutl78$lff$1@build.eclipse.org">news:eutl78$lff$1@build.ecli=
pse.org</A>...</DIV>Stu,<BR><BR>It=20
did seem odd that the core runtime was not already available.&nbsp; =
This is=20
similar to the odd problem you mentioned on the EMF newsgroup.&nbsp; =
Normally=20
I have theories for odd problems, but I have none for this=20
one...<BR><BR><BR>Stu wrote:=20
<BLOCKQUOTE cite=3Dmideutjl2$i29$1@build.eclipse.org type=3D"cite">
<META content=3D"MSHTML 6.00.6000.16414" name=3DGENERATOR>
<DIV><FONT face=3DArial size=3D2>Im not sure if this makes =
sense,&nbsp; but I=20
deleted the diagram and "initialised" a new one from the XML data =
file=20
(right mouse click initialise &lt;name&gt; diagram).</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>This stopped the issue =
occuring.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I not sure why this would fix the =
issue (some=20
sort of data error in the old .diagram file).&nbsp; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have never knowing adjusted the=20
MANIFEST.MF.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If I can help get more information =
to help let=20
me know.</FONT></DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Ed Merks" &lt;<A=20
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt; wrote in =
message=20
<A=20
=
href=3D"news:eutijm$f5v$1@build.eclipse.org">news:eutijm$f5v$1@build.ecli=
pse.org</A>...</DIV>Stu,<BR><BR>You=20
should edit the MANIFEST.MF and use the "Dependencies" tab to add =
a=20
dependency on the org.eclipse.equinox.common plugin.&nbsp; Or =
perhaps you=20
should just use a Java assert to avoid this =
dependency.<BR><BR><BR>Stu=20
wrote:=20
<BLOCKQUOTE cite=3Dmideuth3g$ahg$1@build.eclipse.org =
type=3D"cite">
<META content=3D"MSHTML 6.00.6000.16414" name=3DGENERATOR>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The import statement on the=20
DefaultOperationHistory class is:-</FONT></DIV>
<P align=3Dleft><FONT face=3DArial size=3D2><B><FONT =
color=3D#7f0055=20
size=3D2>import</FONT></B><FONT size=3D2>=20
org.eclipse.core.runtime.Assert;</FONT></FONT></P>
<DIV><FONT face=3DArial size=3D2>I dont believe I have edited =
the=20
MANIFEST.MF but the fact I have had the rebuild the project =
already=20
today worries me.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>How do I re-generate the =
MANIFEST.MF ? or=20
get a clean one (if that makes sense).</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for your time once =
more</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>"Ed Merks" &lt;<A=20
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>&gt; wrote =
in message=20
<A=20
=
href=3D"news:eutgo6$4l8$1@build.eclipse.org">news:eutgo6$4l8$1@build.ecli=
pse.org</A>...</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: =
5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: =
0px">Stu,<BR><BR>Which=20
Assert is this?&nbsp; Did you add the plugin that provides it =
to the=20
MANIFEST.MF of the plugin that uses it.&nbsp; Don't ever edit =
the=20
project classpath directly via the properties view when =
developing=20
plugins; always edit the dependencies of the MANIFEST.MF=20
instead.<BR><BR><BR>Stu wrote:=20
<BLOCKQUOTE cite=3Dmideutfu0$t8r$1@build.eclipse.org =
type=3D"cite">
<META content=3D"MSHTML 6.00.6000.16414" name=3DGENERATOR>
<STYLE></STYLE>

<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I've created a GMF diagram=20
editor.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I create a diagram save and =
then=20
relaunch and reopen the diagram.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If I tried to add a new =
node I get the=20
stack dump (see bottom).</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The basic problem is Assert =
cannot be=20
resolved (see code below).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Has anyone had this =
?</FONT></DIV>
<DIV>
<P align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2>public IStatus=20
execute(IUndoableOperation operation,</FONT></P>
<P align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2>IProgressMonitor=20
monitor, IAdaptable info)</FONT></P>
<P align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2>throws=20
ExecutionException {</FONT></P>
<P><FONT face=3DArial size=3D2><FONT=20
=
color=3D#0000ff><STRONG>Assert</STRONG>.isNotNull(operation); </FONT></FON=
T></P></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thread [main] (Suspended =
(breakpoint at=20
line 469 in=20
=
DefaultOperationHistory))&nbsp;<BR>&nbsp;DefaultOperationHistory.execute(=
IUndoableOperation,=20
IProgressMonitor, IAdaptable) line:=20
469&nbsp;<BR>&nbsp;DiagramCommandStack.execute(ICommand,=20
IProgressMonitor) line:=20
205&nbsp;<BR>&nbsp;DiagramCommandStack.execute(Command,=20
IProgressMonitor) line:=20
168&nbsp;<BR>&nbsp;DiagramCommandStack.execute(Command) =
line:=20
=
155&nbsp;<BR> &nbsp;UnspecifiedTypeCreationTool(AbstractTool).executeC omma=
nd(Command)=20
line:=20
=
388&nbsp;<BR> &nbsp;UnspecifiedTypeCreationTool(AbstractTool).executeC urre=
ntCommand()=20
line:=20
=
400&nbsp;<BR> &nbsp;UnspecifiedTypeCreationTool(CreationTool).performC reat=
ion(int)=20
line:=20
=
133&nbsp;<BR> &nbsp;UnspecifiedTypeCreationTool(CreationTool).handleBu tton=
Up(int)=20
line:=20
=
178&nbsp;<BR> &nbsp;UnspecifiedTypeCreationTool(AbstractTool).mouseUp( Mous=
eEvent,=20
EditPartViewer) line:=20
=
1053&nbsp;<BR> &nbsp;DiagramEditDomain(EditDomain).mouseUp(MouseEvent,= 20
EditPartViewer) line:=20
=
259&nbsp;<BR> &nbsp;DomainEventDispatcher.dispatchMouseReleased(MouseE vent=
)=20
line:=20
=
374&nbsp;<BR> &nbsp;LightweightSystem$EventHandler.mouseUp(MouseEvent) =20
line: 538&nbsp;<BR>&nbsp;TypedListener.handleEvent(Event) =
line:=20
194&nbsp;<BR>&nbsp;EventTable.sendEvent(Event) line:=20
66&nbsp;<BR>&nbsp;FigureCanvas(Widget).sendEvent(Event) =
line:=20
938&nbsp;<BR>&nbsp;Display.runDeferredEvents() line:=20
3490&nbsp;<BR>&nbsp;Display.readAndDispatch() line:=20
=
3104&nbsp;<BR> &nbsp;Workbench.runEventLoop(Window$IExceptionHandler,=2 0
Display) line: 2264&nbsp;<BR>&nbsp;Workbench.runUI() line:=20
2228&nbsp;<BR>&nbsp;Workbench.access$4(Workbench) line:=20
2103&nbsp;<BR>&nbsp;Workbench$4.run() line:=20
457&nbsp;<BR>&nbsp;Realm.runWithDefault(Realm, Runnable) =
line:=20
289&nbsp;<BR>&nbsp;Workbench.createAndRunWorkbench(Display,=20
WorkbenchAdvisor) line:=20
452&nbsp;<BR>&nbsp;PlatformUI.createAndRunWorkbench(Display, =

WorkbenchAdvisor) line:=20
149&nbsp;<BR>&nbsp;IDEApplication.start(IApplicationContext) =
line:=20
101&nbsp;<BR>&nbsp;EclipseAppHandle.run(Object) line:=20
146&nbsp;<BR>&nbsp;EclipseAppLauncher.runApplication(Object) =
line:=20
106&nbsp;<BR>&nbsp;EclipseAppLauncher.start(Object) line:=20
76&nbsp;<BR>&nbsp;EclipseStarter.run(Object) line:=20
354&nbsp;<BR>&nbsp;EclipseStarter.run(String[], Runnable) =
line:=20
169&nbsp;<BR>&nbsp;NativeMethodAccessorImpl.invoke0(Method, =
Object,=20
Object[]) line: not available [native=20
=
method]&nbsp;<BR>&nbsp;NativeMethodAccessorImpl.invoke(Object,=20
Object[]) line: not=20
=
available&nbsp;<BR>&nbsp;DelegatingMethodAccessorImpl.invoke(Object,=20
Object[]) line: not =
available&nbsp;<BR>&nbsp;Method.invoke(Object,=20
Object...) line: not=20
available&nbsp;<BR>&nbsp;Main.invokeFramework(String[], =
URL[]) line:=20
476&nbsp;<BR>&nbsp;Main.basicRun(String[]) line:=20
416&nbsp;<BR>&nbsp;Main.run(String[]) line:=20
1124&nbsp;<BR>&nbsp;Main.main(String[]) line:=20
=
1099&nbsp;<BR></FONT></DIV></BLOCKQUOTE><BR></BLOCKQUOTE ></BLOCKQUOTE><BR=
></BLOCKQUOTE></BLOCKQUOTE><BR></BLOCKQUOTE></BODY></HTML >

------=_NextPart_000_007A_01C7764A.D55D0890--
Previous Topic:How to add a label/text to NoteFigure?
Next Topic:GMF Plugin Development
Goto Forum:
  


Current Time: Thu Aug 01 03:27:19 GMT 2024

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

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

Back to the top