problem about save the canvas [message #182988] |
Tue, 31 May 2005 01:25 |
Eclipse User |
|
|
|
Originally posted by: tankun.web.de
hello:
i want save the canvas of my editor.and i did following things.
in the Model class:
public InputStream getAsStream() throws IOException {
ByteArrayOutputStream os = new ByteArrayOutputStream();
ObjectOutputStream out = new ObjectOutputStream(os);
out.writeObject(this);
out.close();
InputStream istream = new ByteArrayInputStream(os.toByteArray());
os.close();
return istream;
}
public static Diagram makeFromStream(InputStream istream) throws
IOException, ClassNotFoundException {
ObjectInputStream ois = new ObjectInputStream(istream);
Diagram diagram = (Diagram) ois.readObject();
ois.close();
return diagram;
}
and in the Editor class:
public void doSave(IProgressMonitor monitor) {
try {
IFile file = ((IFileEditorInput) getEditorInput()).getFile();
file.setContents(this.diagram.getAsStream(), true, false,
monitor);
getCommandStack().markSaveLocation();
}
catch (Exception e) {
e.printStackTrace();
}
}
public void doSaveAs() {
SaveAsDialog dialog = new
SaveAsDialog(getSite().getWorkbenchWindow().getShell());
dialog.setOriginalFile(((IFileEditorInput)
getEditorInput()).getFile());
dialog.open();
IPath path = dialog.getResult();
if (path == null)
return;
IWorkspace workspace = ResourcesPlugin.getWorkspace();
final IFile file = workspace.getRoot().getFile(path);
WorkspaceModifyOperation op = new WorkspaceModifyOperation() {
public void execute(final IProgressMonitor monitor) throws
CoreException {
try {
file.create(diagram.getAsStream(), true, monitor);
}
catch (Exception e) {
e.printStackTrace();
}
}
};
try {
new
ProgressMonitorDialog(getSite().getWorkbenchWindow().getShel l()).run(false,
true, op);
setInput(new FileEditorInput((IFile) file));
getCommandStack().markSaveLocation();
}
catch (Exception e) {
e.printStackTrace();
}
}
public void gotoMarker(IMarker marker) {
}
public boolean isDirty() {
// rely on the command stack to determine dirty flag
return getCommandStack().isDirty();
}
public boolean isSaveAsAllowed() {
// allow Save As
return true;
}
but it come always the warning when the editor start:
java.io.EOFException
at
java.io.ObjectInputStream$PeekInputStream.readFully(ObjectIn putStream.java:2165)
at
java.io.ObjectInputStream$BlockDataInputStream.readShort(Obj ectInputStream.java:2631)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream .java:734)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:253)
at model.Diagram.makeFromStream(Diagram.java:65)
at ui.Geditor.setInput(Geditor.java:82)
at org.eclipse.gef.ui.parts.GraphicalEditor.init(GraphicalEdito r.java:292)
at
org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:719)
at
org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:788)
at org.eclipse.ui.internal.EditorManager.access$12(EditorManage r.java:774)
at org.eclipse.ui.internal.EditorManager$9.run(EditorManager.ja va:959)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:616)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at
org.eclipse.ui.internal.EditorManager.busyRestoreEditor(Edit orManager.java:933)
at org.eclipse.ui.internal.EditorManager$8.run(EditorManager.ja va:926)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.EditorManager.restoreEditor(EditorMa nager.java:922)
at
org.eclipse.ui.internal.EditorManager.restoreEditorState(Edi torManager.java:1498)
at
org.eclipse.ui.internal.EditorManager.restoreState(EditorMan ager.java:885)
at
org.eclipse.ui.internal.WorkbenchPage.restoreState(Workbench Page.java:2470)
at
org.eclipse.ui.internal.WorkbenchWindow.restoreState(Workben chWindow.java:1372)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1224)
at org.eclipse.ui.internal.Workbench.access$10(Workbench.java:1 185)
at org.eclipse.ui.internal.Workbench$13.run(Workbench.java:1096 )
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:616)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1029)
at
org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(Wor kbenchConfigurer.java:167)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:652)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:819)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1325)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:96)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
and when it closed:
java.io.NotSerializableException:
org.eclipse.ui.views.properties.TextPropertyDescriptor
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.j ava:1054)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.jav a:1224)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.j ava:1050)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputSt ream.java:1332)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStrea m.java:1304)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputS tream.java:1247)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.j ava:1052)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.ja va:278)
at java.util.ArrayList.writeObject(ArrayList.java:529)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClas s.java:809)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStrea m.java:1296)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputS tream.java:1247)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.j ava:1052)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputSt ream.java:1332)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStrea m.java:1304)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputS tream.java:1247)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.j ava:1052)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.ja va:278)
at model.Diagram.getAsStream(Diagram.java:57)
at ui.Geditor.doSave(Geditor.java:106)
at org.eclipse.ui.internal.SaveableHelper$1.run(SaveableHelper. java:88)
at org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper. java:109)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:303)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:253)
at
org.eclipse.jface.window.ApplicationWindow$1.run(Application Window.java:588)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.jface.window.ApplicationWindow.run(ApplicationWi ndow.java:585)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow. java:1653)
at
org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOpe ration(SaveableHelper.java:115)
at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelp er.java:93)
at org.eclipse.ui.internal.EditorManager.savePart(EditorManager .java:1104)
at
org.eclipse.ui.internal.EditorManager.saveEditor(EditorManag er.java:1112)
at
org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchP age.java:974)
at
org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchP age.java:959)
at org.eclipse.ui.internal.EditorPane.doHide(EditorPane.java:95 )
at org.eclipse.ui.internal.PartStack.close(PartStack.java:339)
at org.eclipse.ui.internal.EditorStack.close(EditorStack.java:2 38)
at org.eclipse.ui.internal.PartStack$1.close(PartStack.java:74)
at
org.eclipse.ui.internal.presentations.DefaultPartPresentatio n$1.closeButtonPressed(DefaultPartPresentation.java:107)
at
org.eclipse.ui.internal.presentations.PaneFolder.notifyClose Listeners(PaneFolder.java:484)
at
org.eclipse.ui.internal.presentations.PaneFolder$3.close(Pan eFolder.java:169)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:20 75)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.j ava:291)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2773)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2432)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:96)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
please help me ,where is the problem?and what should i do?
|
|
|
Re: problem about save the canvas [message #183003 is a reply to message #182988] |
Tue, 31 May 2005 02:04 |
Pratik Shah Messages: 1077 Registered: July 2009 |
Senior Member |
|
|
I take it you meant that you're trying to save the model and not the canvas
itself. Open up the saved file in a text editor to see if there's anything
in there. Catch the exception in makeFromStream, and create a new Diagram
if you couldn't read the one loaded. That way your editor will still come
up. Then try saving it again and see if it's saving fine.
Anyway, this is all I/O stuff, and not really GEF-related.
"Kun Tan" <tankun@web.de> wrote in message
news:f1cd050ae1b441c3e92362b4f8c883d6$1@www.eclipse.org...
> hello:
>
> i want save the canvas of my editor.and i did following things.
> in the Model class:
>
> public InputStream getAsStream() throws IOException {
> ByteArrayOutputStream os = new ByteArrayOutputStream();
> ObjectOutputStream out = new ObjectOutputStream(os);
> out.writeObject(this);
> out.close();
> InputStream istream = new ByteArrayInputStream(os.toByteArray());
> os.close();
> return istream;
> }
>
> public static Diagram makeFromStream(InputStream istream) throws
> IOException, ClassNotFoundException {
> ObjectInputStream ois = new ObjectInputStream(istream);
> Diagram diagram = (Diagram) ois.readObject();
> ois.close();
> return diagram;
> }
>
> and in the Editor class:
>
> public void doSave(IProgressMonitor monitor) {
> try {
> IFile file = ((IFileEditorInput) getEditorInput()).getFile();
> file.setContents(this.diagram.getAsStream(), true, false,
> monitor);
> getCommandStack().markSaveLocation();
> }
> catch (Exception e) {
> e.printStackTrace();
> }
>
> }
>
> public void doSaveAs() {
> SaveAsDialog dialog = new
> SaveAsDialog(getSite().getWorkbenchWindow().getShell());
> dialog.setOriginalFile(((IFileEditorInput)
> getEditorInput()).getFile());
> dialog.open();
> IPath path = dialog.getResult();
>
> if (path == null)
> return;
>
> IWorkspace workspace = ResourcesPlugin.getWorkspace();
> final IFile file = workspace.getRoot().getFile(path);
>
> WorkspaceModifyOperation op = new WorkspaceModifyOperation() {
> public void execute(final IProgressMonitor monitor) throws
> CoreException {
> try {
> file.create(diagram.getAsStream(), true, monitor);
> }
> catch (Exception e) {
> e.printStackTrace();
> }
> }
> };
>
> try {
> new
>
ProgressMonitorDialog(getSite().getWorkbenchWindow().getShel l()).run(false,
> true, op);
> setInput(new FileEditorInput((IFile) file));
> getCommandStack().markSaveLocation();
> }
> catch (Exception e) {
> e.printStackTrace();
> }
> }
>
> public void gotoMarker(IMarker marker) {
> }
>
> public boolean isDirty() {
> // rely on the command stack to determine dirty flag
> return getCommandStack().isDirty();
> }
>
> public boolean isSaveAsAllowed() {
> // allow Save As
> return true;
> }
>
> but it come always the warning when the editor start:
> java.io.EOFException
> at
>
java.io.ObjectInputStream$PeekInputStream.readFully(ObjectIn putStream.java:2
165)
> at
>
java.io.ObjectInputStream$BlockDataInputStream.readShort(Obj ectInputStream.j
ava:2631)
> at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream .java:734)
> at java.io.ObjectInputStream.<init>(ObjectInputStream.java:253)
> at model.Diagram.makeFromStream(Diagram.java:65)
> at ui.Geditor.setInput(Geditor.java:82)
> at org.eclipse.gef.ui.parts.GraphicalEditor.init(GraphicalEdito r.java:292)
> at
> org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:719)
> at
>
org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:
788)
> at org.eclipse.ui.internal.EditorManager.access$12(EditorManage r.java:774)
> at org.eclipse.ui.internal.EditorManager$9.run(EditorManager.ja va:959)
> at
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
:616)
> at org.eclipse.core.runtime.Platform.run(Platform.java:747)
> at
>
org.eclipse.ui.internal.EditorManager.busyRestoreEditor(Edit orManager.java:9
33)
> at org.eclipse.ui.internal.EditorManager$8.run(EditorManager.ja va:926)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
>
org.eclipse.ui.internal.EditorManager.restoreEditor(EditorMa nager.java:922)
> at
>
org.eclipse.ui.internal.EditorManager.restoreEditorState(Edi torManager.java:
1498)
> at
> org.eclipse.ui.internal.EditorManager.restoreState(EditorMan ager.java:885)
> at
>
org.eclipse.ui.internal.WorkbenchPage.restoreState(Workbench Page.java:2470)
> at
>
org.eclipse.ui.internal.WorkbenchWindow.restoreState(Workben chWindow.java:13
72)
> at org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1224)
> at org.eclipse.ui.internal.Workbench.access$10(Workbench.java:1 185)
> at org.eclipse.ui.internal.Workbench$13.run(Workbench.java:1096 )
> at
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
:616)
> at org.eclipse.core.runtime.Platform.run(Platform.java:747)
> at org.eclipse.ui.internal.Workbench.restoreState(Workbench.jav a:1029)
> at
>
org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(Wor kbenchConfigurer
..java:167)
> at
>
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.jav
a:652)
> at org.eclipse.ui.internal.Workbench.init(Workbench.java:819)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1325)
> at
>
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:96)
> at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
java:335)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
..java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
> at org.eclipse.core.launcher.Main.run(Main.java:704)
> at org.eclipse.core.launcher.Main.main(Main.java:688)
>
> and when it closed:
> java.io.NotSerializableException:
> org.eclipse.ui.views.properties.TextPropertyDescriptor
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.j ava:1054)
> at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.jav a:1224)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.j ava:1050)
> at
>
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputSt ream.java:1332)
> at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStrea m.java:1304)
> at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputS tream.java:1247)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.j ava:1052)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.ja va:278)
> at java.util.ArrayList.writeObject(ArrayList.java:529)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
..java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClas s.java:809)
> at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStrea m.java:1296)
> at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputS tream.java:1247)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.j ava:1052)
> at
>
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputSt ream.java:1332)
> at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStrea m.java:1304)
> at
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputS tream.java:1247)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.j ava:1052)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.ja va:278)
> at model.Diagram.getAsStream(Diagram.java:57)
> at ui.Geditor.doSave(Geditor.java:106)
> at org.eclipse.ui.internal.SaveableHelper$1.run(SaveableHelper. java:88)
> at org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper. java:109)
> at
>
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.jav
a:303)
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:253)
> at
>
org.eclipse.jface.window.ApplicationWindow$1.run(Application Window.java:588)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
> at
> org.eclipse.jface.window.ApplicationWindow.run(ApplicationWi ndow.java:585)
> at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow. java:1653)
> at
>
org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOpe ration(SaveableH
elper.java:115)
> at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelp er.java:93)
> at org.eclipse.ui.internal.EditorManager.savePart(EditorManager .java:1104)
> at
> org.eclipse.ui.internal.EditorManager.saveEditor(EditorManag er.java:1112)
> at
> org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchP age.java:974)
> at
> org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchP age.java:959)
> at org.eclipse.ui.internal.EditorPane.doHide(EditorPane.java:95 )
> at org.eclipse.ui.internal.PartStack.close(PartStack.java:339)
> at org.eclipse.ui.internal.EditorStack.close(EditorStack.java:2 38)
> at org.eclipse.ui.internal.PartStack$1.close(PartStack.java:74)
> at
>
org.eclipse.ui.internal.presentations.DefaultPartPresentatio n$1.closeButtonP
ressed(DefaultPartPresentation.java:107)
> at
>
org.eclipse.ui.internal.presentations.PaneFolder.notifyClose Listeners(PaneFo
lder.java:484)
> at
>
org.eclipse.ui.internal.presentations.PaneFolder$3.close(Pan eFolder.java:169
)
> at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:20 75)
> at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.j ava:291)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2773)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2432)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1377)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
> at
>
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:96)
> at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
java:335)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
..java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
> at org.eclipse.core.launcher.Main.run(Main.java:704)
> at org.eclipse.core.launcher.Main.main(Main.java:688)
>
>
> please help me ,where is the problem?and what should i do?
>
|
|
|
Powered by
FUDForum. Page generated in 0.02432 seconds