Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvlorenzo2014-01-30 10:21:50 +0000
committervlorenzo2014-01-30 10:21:50 +0000
commitf17eca6334c65f703381821171c33c0c92565ccf (patch)
tree6a1b0458fc222a92490f7b0bd3343878f1de255d /plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src
parent5f52b815044c4db5af82fd995dd9c80b7d249b62 (diff)
downloadorg.eclipse.papyrus-f17eca6334c65f703381821171c33c0c92565ccf.tar.gz
org.eclipse.papyrus-f17eca6334c65f703381821171c33c0c92565ccf.tar.xz
org.eclipse.papyrus-f17eca6334c65f703381821171c33c0c92565ccf.zip
Fix 2 infinite recursive loops (found with finds bugs).
Diffstat (limited to 'plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src')
-rw-r--r--plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/contentprovider/simple/SimpleSashWindowsContentProvider.java4
-rw-r--r--plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/contentprovider/singlefolder/SingleFolderContentProvider.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/contentprovider/simple/SimpleSashWindowsContentProvider.java b/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/contentprovider/simple/SimpleSashWindowsContentProvider.java
index c9f6057210c..48690ff6ae3 100644
--- a/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/contentprovider/simple/SimpleSashWindowsContentProvider.java
+++ b/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/contentprovider/simple/SimpleSashWindowsContentProvider.java
@@ -121,7 +121,7 @@ public class SimpleSashWindowsContentProvider implements ISashWindowsContentProv
*
* {@inheritDoc}
*/
- public void addPage(int index, IPageModel newModel) {
+ public void addPage(IPageModel newModel, int index) {
currentTabFolder.doAddItem(index, newModel);
firePropertyChanged(new ContentEvent(ContentEvent.ADDED, this, newModel));
}
@@ -130,7 +130,7 @@ public class SimpleSashWindowsContentProvider implements ISashWindowsContentProv
*
* {@inheritDoc}
*/
- public void addPage(ITabFolderModel toFolderModel, int index, IPageModel newModel) {
+ public void addPage(ITabFolderModel toFolderModel, IPageModel newModel, int index) {
TabFolderModel srcFolder = (TabFolderModel)toFolderModel;
srcFolder.doAddItem(index, newModel);
firePropertyChanged(new ContentEvent(ContentEvent.ADDED, this, newModel));
diff --git a/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/contentprovider/singlefolder/SingleFolderContentProvider.java b/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/contentprovider/singlefolder/SingleFolderContentProvider.java
index d92a78f5e68..9fab42698f2 100644
--- a/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/contentprovider/singlefolder/SingleFolderContentProvider.java
+++ b/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/contentprovider/singlefolder/SingleFolderContentProvider.java
@@ -102,7 +102,7 @@ public class SingleFolderContentProvider implements ISashWindowsContentProvider,
*
* {@inheritDoc}
*/
- public void addPage(int index, IPageModel newModel) {
+ public void addPage(IPageModel newModel, int index) {
currentTabFolder.addItem(index, newModel);
}
@@ -110,7 +110,7 @@ public class SingleFolderContentProvider implements ISashWindowsContentProvider,
* Do nothing because this implementation doesn't allows folders. {@inheritDoc}
*/
public void createFolder(ITabFolderModel tabFolder, int tabIndex, ITabFolderModel targetFolder, int side) {
- // TODO Auto-generated method stub
+
}
/**

Back to the top