Skip to content
Snippets Groups Projects
Commit 22464c76 authored by Vincent Aravantinos's avatar Vincent Aravantinos
Browse files

preparation in the model binding service

refs 2122
parent 2592369c
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ import org.fortiss.tooling.kernel.utils.KernelModelElementUtils;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: 8D45C2B6E2FC7158EF002A9ECE848DD2
* @ConQAT.Rating YELLOW Hash: 80D28FF058F332A4D8620A37CB266B7B
*/
public class ModelEditorBindingService extends
EObjectAwareServiceBase<IModelEditorBinding<EObject>> implements
......@@ -327,4 +327,14 @@ public class ModelEditorBindingService extends
ModelEditorBindingService.this.partOpened(part);
}
}
/** {@inheritDoc} */
@Override
public void closeAllEditors() {
IEditorPart[] parts = new IEditorPart[0];
for(IEditorPart editor : currentEditors.keySet().toArray(parts)) {
closeEditor(editor);
}
}
}
......@@ -33,7 +33,7 @@ import org.fortiss.tooling.kernel.ui.internal.ModelEditorBindingService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: 2FEAD5483335038FD9E86D2AA0E1F0C8
* @ConQAT.Rating YELLOW Hash: CE61AA28F176D4C96D6D253254B77F88
*/
public interface IModelEditorBindingService {
......@@ -46,6 +46,9 @@ public interface IModelEditorBindingService {
/** Closes editors which depend on the given element or a sub-element. */
void closeEditors(EObject parentElement);
/** Closes all editors. */
void closeAllEditors();
/** Closes editor of the given element. */
void closeEditor(EObject element);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment