Reputation: 11
I was wondering if there is a manner to make it impossible to open more than 1 editor at a time? what I have now is a button that each time it is pressed gives a new editor. I am using eclipse RCP
thanks
Upvotes: 1
Views: 441
Reputation: 12718
You could add an IPartListener
on the IPartService
of the IWorkbenchWindow
that close all other editors when a new editor is opened. You find the current set of editors via IWorkbenchPage.getEditorReferences()
.
Upvotes: 1