首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

eclipse中多个Editor的save有关问题

2012-01-13 
eclipse中多个Editor的save问题!当对一个java文件进行保存时,我希望触发另一个editor的保存。但是保存不成

eclipse中多个Editor的save问题!
当对一个java文件进行保存时,我希望触发另一个editor的保存。但是保存不成功,且log里有以下异常。

这个异常是什么意思呢?(xx.a和xx.b是另外那个editor打开的文件)
!ENTRY   org.eclipse.ui   2   0   2007-03-09   10:28:02.812
!MESSAGE   Save   Failed
!STACK   0
java.lang.IllegalArgumentException:   Attempted   to   beginRule:   MultiRule[xx.a,xx.b],   does   not   match   outer   scope   rule:   ***.java
at   org.eclipse.core.runtime.Assert.isLegal(Assert.java:62)
at   org.eclipse.core.internal.jobs.ThreadJob.illegalPush(ThreadJob.java:116)
at   org.eclipse.core.internal.jobs.ThreadJob.push(ThreadJob.java:225)
at   org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:58)
at   org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:219)
at   org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:96)
at   org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1684)
at   org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1732)
at   org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:113)
at   org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.document.WorkspaceOperationRunner.run(WorkspaceOperationRunner.java:75)
at   org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.document.WorkspaceOperationRunner.run(WorkspaceOperationRunner.java:65)
at   org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider.executeOperation(AbstractDocumentProvider.java:528)
at   org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider.saveDocument(AbstractDocumentProvider.java:579)
at   org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor.performSave(DiagramDocumentEditor.java:825)
at   org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor.doSave(DiagramDocumentEditor.java:646)


[解决办法]
老弟,拿我们开刷吧
[解决办法]
晕,
[解决办法]
那就散散分吧,好歹我们也来捧场了
[解决办法]
学习!!

热点排行