Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/internal/LookupFolderPartByRawModelVisitor.java')
-rw-r--r--plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/internal/LookupFolderPartByRawModelVisitor.java126
1 files changed, 63 insertions, 63 deletions
diff --git a/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/internal/LookupFolderPartByRawModelVisitor.java b/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/internal/LookupFolderPartByRawModelVisitor.java
index a533e7f3df5..2b37f50df1c 100644
--- a/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/internal/LookupFolderPartByRawModelVisitor.java
+++ b/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/internal/LookupFolderPartByRawModelVisitor.java
@@ -1,63 +1,63 @@
-/**
- *
- */
-package org.eclipse.papyrus.infra.core.sasheditor.internal;
-
-
-
-/**
- * A visitor used to lookup a {@link TabFolderPart} by its raw model.
- *
- * @author cedric dumoulin
- *
- */
-public class LookupFolderPartByRawModelVisitor extends PartVisitor {
-
- private Object rawModel;
-
- private TabFolderPart result;
-
-
- public LookupFolderPartByRawModelVisitor(Object rawModel) {
- this.rawModel = rawModel;
- }
-
- /**
- * Get the result of the lookup.
- *
- * @return
- */
- public TabFolderPart result() {
- return result;
- }
-
- /**
- * Check if the part is for the specified rawModel.
- *
- * @param part
- * @return
- */
- private boolean isModelFor(TabFolderPart part) {
-
- if (part.getRawModel() == rawModel) {
- result = part;
- return true;
- }
- // stop looking
- return false;
- }
-
- /**
- * Check if it is this Component
- */
- @Override
- protected boolean acceptTabFolderPart(TabFolderPart part) {
- if (isModelFor(part)) {
- return false;
- }
-
- // Continue looking
- return true;
- }
-
-}
+/**
+ *
+ */
+package org.eclipse.papyrus.infra.core.sasheditor.internal;
+
+
+
+/**
+ * A visitor used to lookup a {@link TabFolderPart} by its raw model.
+ *
+ * @author cedric dumoulin
+ *
+ */
+public class LookupFolderPartByRawModelVisitor extends PartVisitor {
+
+ private Object rawModel;
+
+ private TabFolderPart result;
+
+
+ public LookupFolderPartByRawModelVisitor(Object rawModel) {
+ this.rawModel = rawModel;
+ }
+
+ /**
+ * Get the result of the lookup.
+ *
+ * @return
+ */
+ public TabFolderPart result() {
+ return result;
+ }
+
+ /**
+ * Check if the part is for the specified rawModel.
+ *
+ * @param part
+ * @return
+ */
+ private boolean isModelFor(TabFolderPart part) {
+
+ if (part.getRawModel() == rawModel) {
+ result = part;
+ return true;
+ }
+ // stop looking
+ return false;
+ }
+
+ /**
+ * Check if it is this Component
+ */
+ @Override
+ protected boolean acceptTabFolderPart(TabFolderPart part) {
+ if (isModelFor(part)) {
+ return false;
+ }
+
+ // Continue looking
+ return true;
+ }
+
+}

Back to the top