]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman/src/org/splat/simer/DocumentFacade.java
Salome HOME
Modifications to respect PMD rules.
[tools/siman.git] / Workspace / Siman / src / org / splat / simer / DocumentFacade.java
index 074b9e439e4dddb0ff01e8d15016b3c2fe11a93e..f94b37cb7fd3953403899001bee9700b0ad6d90f 100644 (file)
@@ -33,7 +33,7 @@ import org.splat.wapp.PopupMenu;
 
 public class DocumentFacade implements HistoryFacade {
 
-       private OpenObject owner;
+       private AbstractOpenObject owner;
        private Publication me;
        private Document my; // Published document
        private ProgressState state; // Document state
@@ -62,7 +62,7 @@ public class DocumentFacade implements HistoryFacade {
        // Constructors
        // ==============================================================================================================================
 
-       public DocumentFacade(OpenObject opened, Publication represented,
+       public DocumentFacade(AbstractOpenObject opened, Publication represented,
                        ProjectSettingsService projectSettings,
                        PublicationService publicationService) {
                // ------------------------------------------------------------------
@@ -88,7 +88,7 @@ public class DocumentFacade implements HistoryFacade {
         * @param represented
         *            the represented history document
         */
-       private DocumentFacade(OpenObject opened, Document represented,
+       private DocumentFacade(AbstractOpenObject opened, Document represented,
                        ProjectSettingsService projectSettings,
                        PublicationService publicationService) {
                // ----------------------------------------------------------------
@@ -125,10 +125,10 @@ public class DocumentFacade implements HistoryFacade {
                                for (Iterator<Publication> i = relist.iterator(); i.hasNext();) {
                                        Publication used = i.next();
                                        long index = used.getIndex();
-                                       DocumentFacade facade = OpenObject.docpres.get(index);
+                                       DocumentFacade facade = AbstractOpenObject.docpres.get(index);
                                        if (facade == null) {
                                                facade = new DocumentFacade(owner, used, getProjectSettings(), getPublicationService());
-                                               OpenObject.docpres.put(index, facade);
+                                               AbstractOpenObject.docpres.put(index, facade);
                                        }
                                        uses.add(facade);
                                }