Home » Modeling » GMF (Graphical Modeling Framework) » Assert cannot be resolved 
| Assert cannot be resolved [message #116430] | 
Tue, 03 April 2007 08:05   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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> </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> </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> </DIV> 
<DIV><FONT face=3DArial size=3D2></FONT> </DIV> 
<DIV><FONT face=3DArial size=3D2>Thread [main] (Suspended (breakpoint at = 
line 469 in=20 
DefaultOperationHistory)) <BR> DefaultOperationHistory.execute(= 
IUndoableOperation,=20 
IProgressMonitor, IAdaptable) line:=20 
469 <BR> DiagramCommandStack.execute(ICommand, = 
IProgressMonitor) line:=20 
205 <BR> DiagramCommandStack.execute(Command, = 
IProgressMonitor) line:=20 
168 <BR> DiagramCommandStack.execute(Command) line:=20 
155 <BR>  UnspecifiedTypeCreationTool(AbstractTool).executeC omma= 
nd(Command)=20 
line:=20 
388 <BR>  UnspecifiedTypeCreationTool(AbstractTool).executeC urre= 
ntCommand()=20 
line:=20 
400 <BR>  UnspecifiedTypeCreationTool(CreationTool).performC reat= 
ion(int)=20 
line:=20 
133 <BR>  UnspecifiedTypeCreationTool(CreationTool).handleBu tton= 
Up(int)=20 
line:=20 
178 <BR>  UnspecifiedTypeCreationTool(AbstractTool).mouseUp( Mous= 
eEvent,=20 
EditPartViewer) line:=20 
1053 <BR>  DiagramEditDomain(EditDomain).mouseUp(MouseEvent,= 20 
EditPartViewer) line:=20 
259 <BR>  DomainEventDispatcher.dispatchMouseReleased(MouseE vent= 
) line:=20 
374 <BR>  LightweightSystem$EventHandler.mouseUp(MouseEvent) = 
line:=20 
538 <BR> TypedListener.handleEvent(Event) line:=20 
194 <BR> EventTable.sendEvent(Event) line:=20 
66 <BR> FigureCanvas(Widget).sendEvent(Event) line:=20 
938 <BR> Display.runDeferredEvents() line:=20 
3490 <BR> Display.readAndDispatch() line:=20 
3104 <BR> Workbench.runEventLoop(Window$IExceptionHandler, = 
Display)=20 
line: 2264 <BR> Workbench.runUI() line:=20 
2228 <BR> Workbench.access$4(Workbench) line:=20 
2103 <BR> Workbench$4.run() line:=20 
457 <BR> Realm.runWithDefault(Realm, Runnable) line:=20 
289 <BR> Workbench.createAndRunWorkbench(Display, = 
WorkbenchAdvisor)=20 
line: 452 <BR> PlatformUI.createAndRunWorkbench(Display,=20 
WorkbenchAdvisor) line:=20 
149 <BR> IDEApplication.start(IApplicationContext) line:=20 
101 <BR> EclipseAppHandle.run(Object) line:=20 
146 <BR> EclipseAppLauncher.runApplication(Object) line:=20 
106 <BR> EclipseAppLauncher.start(Object) line:=20 
76 <BR> EclipseStarter.run(Object) line:=20 
354 <BR> EclipseStarter.run(String[], Runnable) line:=20 
169 <BR> NativeMethodAccessorImpl.invoke0(Method, Object, = 
Object[])=20 
line: not available [native=20 
method] <BR> NativeMethodAccessorImpl.invoke(Object, Object[]) = 
line:=20 
not available <BR> DelegatingMethodAccessorImpl.invoke(Object, = 
 
Object[]) line: not available <BR> Method.invoke(Object, = 
Object...)=20 
line: not available <BR> Main.invokeFramework(String[], URL[]) = 
line:=20 
476 <BR> Main.basicRun(String[]) line:=20 
416 <BR> Main.run(String[]) line:=20 
1124 <BR> Main.main(String[]) line:=20 
1099 <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 08:18    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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?  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.<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> </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> </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> </div> 
  <div> </div> 
  <div><font face="Arial" size="2">Thread [main] (Suspended (breakpoint 
at line 469 in DefaultOperationHistory)) <br> 
  DefaultOperationHistory.execute(IUndoableOperation , IProgressMonitor, 
IAdaptable) line: 469 <br> 
 DiagramCommandStack.execute(ICommand, IProgressMonitor) line: 205 <br> 
 DiagramCommandStack.execute(Command, IProgressMonitor) line: 168 <br> 
 DiagramCommandStack.execute(Command) line: 155 <br> 
  UnspecifiedTypeCreationTool(AbstractTool).executeC ommand(Command) 
line: 388 <br> 
  UnspecifiedTypeCreationTool(AbstractTool).executeC urrentCommand() 
line: 400 <br> 
  UnspecifiedTypeCreationTool(CreationTool).performC reation(int) line: 
133 <br> 
  UnspecifiedTypeCreationTool(CreationTool).handleBu ttonUp(int) line: 
178 <br> 
  UnspecifiedTypeCreationTool(AbstractTool).mouseUp( MouseEvent, 
EditPartViewer) line: 1053 <br> 
 DiagramEditDomain(EditDomain).mouseUp(MouseEvent, EditPartViewer) 
line: 259 <br> 
  DomainEventDispatcher.dispatchMouseReleased(MouseE vent) line: 374 <br> 
  LightweightSystem$EventHandler.mouseUp(MouseEvent) line: 538 <br> 
 TypedListener.handleEvent(Event) line: 194 <br> 
 EventTable.sendEvent(Event) line: 66 <br> 
 FigureCanvas(Widget).sendEvent(Event) line: 938 <br> 
 Display.runDeferredEvents() line: 3490 <br> 
 Display.readAndDispatch() line: 3104 <br> 
 Workbench.runEventLoop(Window$IExceptionHandler, Display) line: 2264 <br> 
 Workbench.runUI() line: 2228 <br> 
 Workbench.access$4(Workbench) line: 2103 <br> 
 Workbench$4.run() line: 457 <br> 
 Realm.runWithDefault(Realm, Runnable) line: 289 <br> 
 Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 452 <br> 
 PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 149 <br> 
 IDEApplication.start(IApplicationContext) line: 101 <br> 
 EclipseAppHandle.run(Object) line: 146 <br> 
 EclipseAppLauncher.runApplication(Object) line: 106 <br> 
 EclipseAppLauncher.start(Object) line: 76 <br> 
 EclipseStarter.run(Object) line: 354 <br> 
 EclipseStarter.run(String[], Runnable) line: 169 <br> 
 NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not 
available [native method] <br> 
 NativeMethodAccessorImpl.invoke(Object, Object[]) line: not available <br> 
 DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: not 
available <br> 
 Method.invoke(Object, Object...) line: not available <br> 
 Main.invokeFramework(String[], URL[]) line: 476 <br> 
 Main.basicRun(String[]) line: 416 <br> 
 Main.run(String[]) line: 1124 <br> 
 Main.main(String[]) line: 1099 <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 08:25    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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> </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> </DIV> 
<DIV><FONT face=3DArial size=3D2>Thanks for your time once = 
more</FONT></DIV> 
<DIV> </DIV> 
<DIV>"Ed Merks" <<A = 
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>>=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?  Did you add the plugin that provides it to the=20 
  MANIFEST.MF of the plugin that uses it.  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> </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> </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> </DIV> 
    <DIV> </DIV> 
    <DIV><FONT face=3DArial size=3D2>Thread [main] (Suspended = 
(breakpoint at line=20 
    469 in=20 
    = 
DefaultOperationHistory)) <BR> DefaultOperationHistory.execute(= 
IUndoableOperation,=20 
    IProgressMonitor, IAdaptable) line:=20 
    469 <BR> DiagramCommandStack.execute(ICommand, = 
IProgressMonitor)=20 
    line: 205 <BR> DiagramCommandStack.execute(Command,=20 
    IProgressMonitor) line:=20 
    168 <BR> DiagramCommandStack.execute(Command) line:=20 
    = 
155 <BR>  UnspecifiedTypeCreationTool(AbstractTool).executeC omma= 
nd(Command)=20 
    line:=20 
    = 
388 <BR>  UnspecifiedTypeCreationTool(AbstractTool).executeC urre= 
ntCommand()=20 
    line:=20 
    = 
400 <BR>  UnspecifiedTypeCreationTool(CreationTool).performC reat= 
ion(int)=20 
    line:=20 
    = 
133 <BR>  UnspecifiedTypeCreationTool(CreationTool).handleBu tton= 
Up(int)=20 
    line:=20 
    = 
178 <BR>  UnspecifiedTypeCreationTool(AbstractTool).mouseUp( Mous= 
eEvent,=20 
    EditPartViewer) line:=20 
    = 
1053 <BR>  DiagramEditDomain(EditDomain).mouseUp(MouseEvent,= 20 
    EditPartViewer) line:=20 
    = 
259 <BR>  DomainEventDispatcher.dispatchMouseReleased(MouseE vent= 
)=20 
    line: = 
374 <BR>  LightweightSystem$EventHandler.mouseUp(MouseEvent) =20 
    line: 538 <BR> TypedListener.handleEvent(Event) line:=20 
    194 <BR> EventTable.sendEvent(Event) line:=20 
    66 <BR> FigureCanvas(Widget).sendEvent(Event) line:=20 
    938 <BR> Display.runDeferredEvents() line:=20 
    3490 <BR> Display.readAndDispatch() line:=20 
    3104 <BR> Workbench.runEventLoop(Window$IExceptionHandler, = 
 
    Display) line: 2264 <BR> Workbench.runUI() line:=20 
    2228 <BR> Workbench.access$4(Workbench) line:=20 
    2103 <BR> Workbench$4.run() line:=20 
    457 <BR> Realm.runWithDefault(Realm, Runnable) line:=20 
    289 <BR> Workbench.createAndRunWorkbench(Display,=20 
    WorkbenchAdvisor) line:=20 
    452 <BR> PlatformUI.createAndRunWorkbench(Display,=20 
    WorkbenchAdvisor) line:=20 
    149 <BR> IDEApplication.start(IApplicationContext) line:=20 
    101 <BR> EclipseAppHandle.run(Object) line:=20 
    146 <BR> EclipseAppLauncher.runApplication(Object) line:=20 
    106 <BR> EclipseAppLauncher.start(Object) line:=20 
    76 <BR> EclipseStarter.run(Object) line:=20 
    354 <BR> EclipseStarter.run(String[], Runnable) line:=20 
    169 <BR> NativeMethodAccessorImpl.invoke0(Method, Object,=20 
    Object[]) line: not available [native=20 
    method] <BR> NativeMethodAccessorImpl.invoke(Object, = 
Object[])=20 
    line: not=20 
    available <BR> DelegatingMethodAccessorImpl.invoke(Object, = 
 
    Object[]) line: not available <BR> Method.invoke(Object,=20 
    Object...) line: not = 
available <BR> Main.invokeFramework(String[],=20 
    URL[]) line: 476 <BR> Main.basicRun(String[]) line:=20 
    416 <BR> Main.run(String[]) line:=20 
    1124 <BR> Main.main(String[]) line:=20 
  = 
1099 <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 08:50    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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.  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> </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> </div> 
  <div><font face="Arial" size="2">Thanks for your time once more</font></div> 
  <div> </div> 
  <div>"Ed Merks" <<a href="mailto:merks@ca.ibm.com">merks@ca.ibm.com</a>> 
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?  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.<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> </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> </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> </div> 
      <div> </div> 
      <div><font face="Arial" size="2">Thread [main] (Suspended 
(breakpoint at line 469 in DefaultOperationHistory)) <br> 
  DefaultOperationHistory.execute(IUndoableOperation , IProgressMonitor, 
IAdaptable) line: 469 <br> 
 DiagramCommandStack.execute(ICommand, IProgressMonitor) line: 205 <br> 
 DiagramCommandStack.execute(Command, IProgressMonitor) line: 168 <br> 
 DiagramCommandStack.execute(Command) line: 155 <br> 
  UnspecifiedTypeCreationTool(AbstractTool).executeC ommand(Command) 
line: 388 <br> 
  UnspecifiedTypeCreationTool(AbstractTool).executeC urrentCommand() 
line: 400 <br> 
  UnspecifiedTypeCreationTool(CreationTool).performC reation(int) line: 
133 <br> 
  UnspecifiedTypeCreationTool(CreationTool).handleBu ttonUp(int) line: 
178 <br> 
  UnspecifiedTypeCreationTool(AbstractTool).mouseUp( MouseEvent, 
EditPartViewer) line: 1053 <br> 
 DiagramEditDomain(EditDomain).mouseUp(MouseEvent, EditPartViewer) 
line: 259 <br> 
  DomainEventDispatcher.dispatchMouseReleased(MouseE vent) line: 374 <br> 
  LightweightSystem$EventHandler.mouseUp(MouseEvent) line: 538 <br> 
 TypedListener.handleEvent(Event) line: 194 <br> 
 EventTable.sendEvent(Event) line: 66 <br> 
 FigureCanvas(Widget).sendEvent(Event) line: 938 <br> 
 Display.runDeferredEvents() line: 3490 <br> 
 Display.readAndDispatch() line: 3104 <br> 
 Workbench.runEventLoop(Window$IExceptionHandler, Display) line: 2264 <br> 
 Workbench.runUI() line: 2228 <br> 
 Workbench.access$4(Workbench) line: 2103 <br> 
 Workbench$4.run() line: 457 <br> 
 Realm.runWithDefault(Realm, Runnable) line: 289 <br> 
 Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 452 <br> 
 PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 149 <br> 
 IDEApplication.start(IApplicationContext) line: 101 <br> 
 EclipseAppHandle.run(Object) line: 146 <br> 
 EclipseAppLauncher.runApplication(Object) line: 106 <br> 
 EclipseAppLauncher.start(Object) line: 76 <br> 
 EclipseStarter.run(Object) line: 354 <br> 
 EclipseStarter.run(String[], Runnable) line: 169 <br> 
 NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not 
available [native method] <br> 
 NativeMethodAccessorImpl.invoke(Object, Object[]) line: not available <br> 
 DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: not 
available <br> 
 Method.invoke(Object, Object...) line: not available <br> 
 Main.invokeFramework(String[], URL[]) line: 476 <br> 
 Main.basicRun(String[]) line: 416 <br> 
 Main.run(String[]) line: 1124 <br> 
 Main.main(String[]) line: 1099 <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 09:08    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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,  = 
but I=20 
deleted the diagram and "initialised" a new one from the XML data file = 
(right=20 
mouse click initialise <name> diagram).</FONT></DIV> 
<DIV><FONT face=3DArial size=3D2></FONT> </DIV> 
<DIV><FONT face=3DArial size=3D2>This stopped the issue = 
occuring.</FONT></DIV> 
<DIV><FONT face=3DArial size=3D2></FONT> </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).  </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> </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> </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" <<A = 
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>>=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.  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> </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> </DIV> 
    <DIV><FONT face=3DArial size=3D2>Thanks for your time once = 
more</FONT></DIV> 
    <DIV> </DIV> 
    <DIV>"Ed Merks" <<A=20 
    href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>> 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?  Did you add the plugin that provides it to = 
the=20 
      MANIFEST.MF of the plugin that uses it.  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> </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> </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> </DIV> 
        <DIV> </DIV> 
        <DIV><FONT face=3DArial size=3D2>Thread [main] (Suspended = 
(breakpoint at=20 
        line 469 in=20 
        = 
DefaultOperationHistory)) <BR> DefaultOperationHistory.execute(= 
IUndoableOperation,=20 
        IProgressMonitor, IAdaptable) line:=20 
        469 <BR> DiagramCommandStack.execute(ICommand,=20 
        IProgressMonitor) line:=20 
        205 <BR> DiagramCommandStack.execute(Command,=20 
        IProgressMonitor) line:=20 
        168 <BR> DiagramCommandStack.execute(Command) line:=20 
        = 
155 <BR>  UnspecifiedTypeCreationTool(AbstractTool).executeC omma= 
nd(Command)=20 
        line:=20 
        = 
388 <BR>  UnspecifiedTypeCreationTool(AbstractTool).executeC urre= 
ntCommand()=20 
        line:=20 
        = 
400 <BR>  UnspecifiedTypeCreationTool(CreationTool).performC reat= 
ion(int)=20 
        line:=20 
        = 
133 <BR>  UnspecifiedTypeCreationTool(CreationTool).handleBu tton= 
Up(int)=20 
        line:=20 
        = 
178 <BR>  UnspecifiedTypeCreationTool(AbstractTool).mouseUp( Mous= 
eEvent,=20 
        EditPartViewer) line:=20 
        = 
1053 <BR>  DiagramEditDomain(EditDomain).mouseUp(MouseEvent,= 20 
        EditPartViewer) line:=20 
        = 
259 <BR>  DomainEventDispatcher.dispatchMouseReleased(MouseE vent= 
)=20 
        line:=20 
        = 
374 <BR>  LightweightSystem$EventHandler.mouseUp(MouseEvent) =20 
        line: 538 <BR> TypedListener.handleEvent(Event) line:=20 
        194 <BR> EventTable.sendEvent(Event) line:=20 
        66 <BR> FigureCanvas(Widget).sendEvent(Event) line:=20 
        938 <BR> Display.runDeferredEvents() line:=20 
        3490 <BR> Display.readAndDispatch() line:=20 
        = 
3104 <BR>  Workbench.runEventLoop(Window$IExceptionHandler,=2 0 
        Display) line: 2264 <BR> Workbench.runUI() line:=20 
        2228 <BR> Workbench.access$4(Workbench) line:=20 
        2103 <BR> Workbench$4.run() line:=20 
        457 <BR> Realm.runWithDefault(Realm, Runnable) line:=20 
        289 <BR> Workbench.createAndRunWorkbench(Display,=20 
        WorkbenchAdvisor) line:=20 
        452 <BR> PlatformUI.createAndRunWorkbench(Display,=20 
        WorkbenchAdvisor) line:=20 
        149 <BR> IDEApplication.start(IApplicationContext) = 
line:=20 
        101 <BR> EclipseAppHandle.run(Object) line:=20 
        146 <BR> EclipseAppLauncher.runApplication(Object) = 
line:=20 
        106 <BR> EclipseAppLauncher.start(Object) line:=20 
        76 <BR> EclipseStarter.run(Object) line:=20 
        354 <BR> EclipseStarter.run(String[], Runnable) line:=20 
        169 <BR> NativeMethodAccessorImpl.invoke0(Method, = 
Object,=20 
        Object[]) line: not available [native=20 
        method] <BR> NativeMethodAccessorImpl.invoke(Object, = 
Object[])=20 
        line: not=20 
        = 
available <BR> DelegatingMethodAccessorImpl.invoke(Object,=20 
        Object[]) line: not = 
available <BR> Method.invoke(Object,=20 
        Object...) line: not=20 
        available <BR> Main.invokeFramework(String[], URL[]) = 
line:=20 
        476 <BR> Main.basicRun(String[]) line:=20 
        416 <BR> Main.run(String[]) line:=20 
        1124 <BR> Main.main(String[]) line:=20 
      = 
1099 <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 09:35    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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.  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...<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,  
but I deleted the diagram and "initialised" a new one from the XML data 
file (right mouse click initialise <name> diagram).</font></div> 
  <div> </div> 
  <div><font face="Arial" size="2">This stopped the issue occuring.</font></div> 
  <div> </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).  </font></div> 
  <div><font face="Arial" size="2">I have never knowing adjusted the 
MANIFEST.MF.</font></div> 
  <div> </div> 
  <div><font face="Arial" size="2">If I can help get more information 
to help let me know.</font></div> 
  <div> </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" <<a href="mailto:merks@ca.ibm.com">merks@ca.ibm.com</a>> 
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.  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> </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> </div> 
      <div><font face="Arial" size="2">Thanks for your time once more</font></div> 
      <div> </div> 
      <div>"Ed Merks" <<a href="mailto:merks@ca.ibm.com">merks@ca.ibm.com</a>> 
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?  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.<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> </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> </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> </div> 
          <div> </div> 
          <div><font face="Arial" size="2">Thread [main] (Suspended 
(breakpoint at line 469 in DefaultOperationHistory)) <br> 
  DefaultOperationHistory.execute(IUndoableOperation , IProgressMonitor, 
IAdaptable) line: 469 <br> 
 DiagramCommandStack.execute(ICommand, IProgressMonitor) line: 205 <br> 
 DiagramCommandStack.execute(Command, IProgressMonitor) line: 168 <br> 
 DiagramCommandStack.execute(Command) line: 155 <br> 
  UnspecifiedTypeCreationTool(AbstractTool).executeC ommand(Command) 
line: 388 <br> 
  UnspecifiedTypeCreationTool(AbstractTool).executeC urrentCommand() 
line: 400 <br> 
  UnspecifiedTypeCreationTool(CreationTool).performC reation(int) line: 
133 <br> 
  UnspecifiedTypeCreationTool(CreationTool).handleBu ttonUp(int) line: 
178 <br> 
  UnspecifiedTypeCreationTool(AbstractTool).mouseUp( MouseEvent, 
EditPartViewer) line: 1053 <br> 
 DiagramEditDomain(EditDomain).mouseUp(MouseEvent, EditPartViewer) 
line: 259 <br> 
  DomainEventDispatcher.dispatchMouseReleased(MouseE vent) line: 374 <br> 
  LightweightSystem$EventHandler.mouseUp(MouseEvent) line: 538 <br> 
 TypedListener.handleEvent(Event) line: 194 <br> 
 EventTable.sendEvent(Event) line: 66 <br> 
 FigureCanvas(Widget).sendEvent(Event) line: 938 <br> 
 Display.runDeferredEvents() line: 3490 <br> 
 Display.readAndDispatch() line: 3104 <br> 
 Workbench.runEventLoop(Window$IExceptionHandler, Display) line: 2264 <br> 
 Workbench.runUI() line: 2228 <br> 
 Workbench.access$4(Workbench) line: 2103 <br> 
 Workbench$4.run() line: 457 <br> 
 Realm.runWithDefault(Realm, Runnable) line: 289 <br> 
 Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 452 <br> 
 PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 149 <br> 
 IDEApplication.start(IApplicationContext) line: 101 <br> 
 EclipseAppHandle.run(Object) line: 146 <br> 
 EclipseAppLauncher.runApplication(Object) line: 106 <br> 
 EclipseAppLauncher.start(Object) line: 76 <br> 
 EclipseStarter.run(Object) line: 354 <br> 
 EclipseStarter.run(String[], Runnable) line: 169 <br> 
 NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not 
available [native method] <br> 
 NativeMethodAccessorImpl.invoke(Object, Object[]) line: not available <br> 
 DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: not 
available <br> 
 Method.invoke(Object, Object...) line: not available <br> 
 Main.invokeFramework(String[], URL[]) line: 476 <br> 
 Main.basicRun(String[]) line: 416 <br> 
 Main.run(String[]) line: 1124 <br> 
 Main.main(String[]) line: 1099 <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 09:50   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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> </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" <<A = 
href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>>=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.  = 
This is=20 
  similar to the odd problem you mentioned on the EMF newsgroup.  = 
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,  but I=20 
    deleted the diagram and "initialised" a new one from the XML data = 
file=20 
    (right mouse click initialise <name> diagram).</FONT></DIV> 
    <DIV> </DIV> 
    <DIV><FONT face=3DArial size=3D2>This stopped the issue = 
occuring.</FONT></DIV> 
    <DIV> </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).  </FONT></DIV> 
    <DIV><FONT face=3DArial size=3D2>I have never knowing adjusted the=20 
    MANIFEST.MF.</FONT></DIV> 
    <DIV> </DIV> 
    <DIV><FONT face=3DArial size=3D2>If I can help get more information = 
to help let=20 
    me know.</FONT></DIV> 
    <DIV> </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" <<A=20 
      href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>> 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.  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> </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> </DIV> 
        <DIV><FONT face=3DArial size=3D2>Thanks for your time once = 
more</FONT></DIV> 
        <DIV> </DIV> 
        <DIV>"Ed Merks" <<A=20 
        href=3D"mailto:merks@ca.ibm.com">merks@ca.ibm.com</A>> 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?  Did you add the plugin that provides it = 
to the=20 
          MANIFEST.MF of the plugin that uses it.  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> </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> </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> </DIV> 
            <DIV> </DIV> 
            <DIV><FONT face=3DArial size=3D2>Thread [main] (Suspended = 
(breakpoint at=20 
            line 469 in=20 
            = 
DefaultOperationHistory)) <BR> DefaultOperationHistory.execute(= 
IUndoableOperation,=20 
            IProgressMonitor, IAdaptable) line:=20 
            469 <BR> DiagramCommandStack.execute(ICommand,=20 
            IProgressMonitor) line:=20 
            205 <BR> DiagramCommandStack.execute(Command,=20 
            IProgressMonitor) line:=20 
            168 <BR> DiagramCommandStack.execute(Command) = 
line:=20 
            = 
155 <BR>  UnspecifiedTypeCreationTool(AbstractTool).executeC omma= 
nd(Command)=20 
            line:=20 
            = 
388 <BR>  UnspecifiedTypeCreationTool(AbstractTool).executeC urre= 
ntCommand()=20 
            line:=20 
            = 
400 <BR>  UnspecifiedTypeCreationTool(CreationTool).performC reat= 
ion(int)=20 
            line:=20 
            = 
133 <BR>  UnspecifiedTypeCreationTool(CreationTool).handleBu tton= 
Up(int)=20 
            line:=20 
            = 
178 <BR>  UnspecifiedTypeCreationTool(AbstractTool).mouseUp( Mous= 
eEvent,=20 
            EditPartViewer) line:=20 
            = 
1053 <BR>  DiagramEditDomain(EditDomain).mouseUp(MouseEvent,= 20 
            EditPartViewer) line:=20 
            = 
259 <BR>  DomainEventDispatcher.dispatchMouseReleased(MouseE vent= 
)=20 
            line:=20 
            = 
374 <BR>  LightweightSystem$EventHandler.mouseUp(MouseEvent) =20 
            line: 538 <BR> TypedListener.handleEvent(Event) = 
line:=20 
            194 <BR> EventTable.sendEvent(Event) line:=20 
            66 <BR> FigureCanvas(Widget).sendEvent(Event) = 
line:=20 
            938 <BR> Display.runDeferredEvents() line:=20 
            3490 <BR> Display.readAndDispatch() line:=20 
            = 
3104 <BR>  Workbench.runEventLoop(Window$IExceptionHandler,=2 0 
            Display) line: 2264 <BR> Workbench.runUI() line:=20 
            2228 <BR> Workbench.access$4(Workbench) line:=20 
            2103 <BR> Workbench$4.run() line:=20 
            457 <BR> Realm.runWithDefault(Realm, Runnable) = 
line:=20 
            289 <BR> Workbench.createAndRunWorkbench(Display,=20 
            WorkbenchAdvisor) line:=20 
            452 <BR> PlatformUI.createAndRunWorkbench(Display, = 
 
            WorkbenchAdvisor) line:=20 
            149 <BR> IDEApplication.start(IApplicationContext) = 
line:=20 
            101 <BR> EclipseAppHandle.run(Object) line:=20 
            146 <BR> EclipseAppLauncher.runApplication(Object) = 
line:=20 
            106 <BR> EclipseAppLauncher.start(Object) line:=20 
            76 <BR> EclipseStarter.run(Object) line:=20 
            354 <BR> EclipseStarter.run(String[], Runnable) = 
line:=20 
            169 <BR> NativeMethodAccessorImpl.invoke0(Method, = 
Object,=20 
            Object[]) line: not available [native=20 
            = 
method] <BR> NativeMethodAccessorImpl.invoke(Object,=20 
            Object[]) line: not=20 
            = 
available <BR> DelegatingMethodAccessorImpl.invoke(Object,=20 
            Object[]) line: not = 
available <BR> Method.invoke(Object,=20 
            Object...) line: not=20 
            available <BR> Main.invokeFramework(String[], = 
URL[]) line:=20 
            476 <BR> Main.basicRun(String[]) line:=20 
            416 <BR> Main.run(String[]) line:=20 
            1124 <BR> Main.main(String[]) line:=20 
            = 
1099 <BR></FONT></DIV></BLOCKQUOTE><BR></BLOCKQUOTE ></BLOCKQUOTE><BR= 
></BLOCKQUOTE></BLOCKQUOTE><BR></BLOCKQUOTE></BODY></HTML > 
 
------=_NextPart_000_007A_01C7764A.D55D0890--
 |  
 |  
  |   
Goto Forum:
 
 Current Time: Tue Nov 04 03:11:33 EST 2025 
 Powered by  FUDForum. Page generated in 0.06352 seconds  
 |