Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'incoming/org.eclipse.papyrus.onefile/src/org/eclipse/papyrus/onefile/model/IPapyrusModelFactory.java')
-rw-r--r--incoming/org.eclipse.papyrus.onefile/src/org/eclipse/papyrus/onefile/model/IPapyrusModelFactory.java50
1 files changed, 50 insertions, 0 deletions
diff --git a/incoming/org.eclipse.papyrus.onefile/src/org/eclipse/papyrus/onefile/model/IPapyrusModelFactory.java b/incoming/org.eclipse.papyrus.onefile/src/org/eclipse/papyrus/onefile/model/IPapyrusModelFactory.java
new file mode 100644
index 00000000000..f1b1dd7e27d
--- /dev/null
+++ b/incoming/org.eclipse.papyrus.onefile/src/org/eclipse/papyrus/onefile/model/IPapyrusModelFactory.java
@@ -0,0 +1,50 @@
+/*****************************************************************************
+ * Copyright (c) 2011 Atos Origin Integration.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Tristan Faure (Atos Origin Integration) tristan.faure@atosorigin.com - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.onefile.model;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IResource;
+
+/**
+ * Factory able to create instances of model interfaces
+ *
+ * @author tristan.faure@atosorigin.com
+ *
+ */
+public interface IPapyrusModelFactory {
+
+ /**
+ * Create an instance of {@link IPapyrusFile} with the given file
+ *
+ * @param file
+ * @return
+ */
+ IPapyrusFile createIPapyrusFile(IFile file);
+
+ /**
+ * Create an instanceof {@link IPapyrusFile} with the given file and the
+ * given {@link IPapyrusFile}
+ *
+ * @param papy
+ * @param r
+ * @return
+ */
+ ISubResourceFile createISubResourceFile(IPapyrusFile papy, IFile r);
+
+ /**
+ * Determines if the file in parameter is a di
+ *
+ * @param file
+ * @return
+ */
+ boolean isDi(IResource file);
+}

Back to the top