1 17 package org.eclipse.emf.edit.domain; 18 19 20 import java.util.Collection ; 21 import java.util.List ; 22 23 import org.eclipse.emf.common.command.Command; 24 import org.eclipse.emf.common.command.CommandStack; 25 import org.eclipse.emf.common.util.TreeIterator; 26 import org.eclipse.emf.ecore.resource.Resource; 27 import org.eclipse.emf.ecore.resource.ResourceSet; 28 import org.eclipse.emf.edit.command.CommandParameter; 29 import org.eclipse.emf.edit.command.OverrideableCommand; 30 31 32 47 public interface EditingDomain 48 { 49 52 Resource createResource(String fileNameURI); 53 54 57 Resource loadResource(String fileNameURI); 58 59 62 ResourceSet getResourceSet(); 63 64 68 Command createCommand(Class commandClass, CommandParameter commandParameter); 69 70 73 Command createOverrideCommand(OverrideableCommand command); 74 75 78 CommandStack getCommandStack(); 79 80 83 Collection getChildren(Object object); 84 85 88 Object getParent(Object object); 89 90 93 Object getRoot(Object object); 94 95 101 Collection getNewChildDescriptors(Object object, Object sibling); 102 103 106 TreeIterator treeIterator(Object object); 107 108 111 List getTreePath(Object object); 112 113 114 117 Collection getClipboard(); 118 119 122 void setClipboard(Collection clipboard); 123 124 127 boolean getOptimizeCopy(); 128 129 132 boolean isReadOnly(Resource resource); 133 } 134 | Popular Tags |