当前位置: 代码迷 >> Eclipse >> eclipse中多个Editor的save有关问题
  详细解决方案

eclipse中多个Editor的save有关问题

热度:56   发布时间:2016-04-23 18:47:45.0
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)


------解决方案--------------------
老弟,拿我们开刷吧
------解决方案--------------------
晕,
------解决方案--------------------
那就散散分吧,好歹我们也来捧场了
------解决方案--------------------
学习!!
  相关解决方案