| commit | e65b93878f1bdd4ed592f444e985bb9569f4a980 | [log] [tgz] |
|---|---|---|
| author | Richard Craddock <rcraddoc@cisco.com> | Tue Apr 07 12:41:03 2020 +0100 |
| committer | Richard Craddock <rcraddoc@cisco.com> | Tue Apr 07 12:41:03 2020 +0100 |
| tree | d813bda3571b61419551cdda3470e1e6e8599ffe | |
| parent | 57b6be1567237a78f5e20f243b53174e5e6963bf [diff] |
Fix for facet scope page no loading. I'm not sure why this was a problem, and why the fix resolves it...
diff --git a/plugins/org.eclipse.tigerstripe.workbench.ui.base/src/java/org/eclipse/tigerstripe/workbench/ui/internal/editors/segment/scope/IncludeExcludeSection.java b/plugins/org.eclipse.tigerstripe.workbench.ui.base/src/java/org/eclipse/tigerstripe/workbench/ui/internal/editors/segment/scope/IncludeExcludeSection.java index 16ddcf2..59d7722 100644 --- a/plugins/org.eclipse.tigerstripe.workbench.ui.base/src/java/org/eclipse/tigerstripe/workbench/ui/internal/editors/segment/scope/IncludeExcludeSection.java +++ b/plugins/org.eclipse.tigerstripe.workbench.ui.base/src/java/org/eclipse/tigerstripe/workbench/ui/internal/editors/segment/scope/IncludeExcludeSection.java
@@ -439,9 +439,11 @@ // multiple patterns to Facet editor int index = 0; while (scope.containsPattern(newPattern)) { - newPattern.setPattern(newPattern.getPattern().substring(0, - newPattern.getPattern().lastIndexOf((index - 1 == -1 ? "" : String.valueOf(index - 1)) + ".*")) - + String.valueOf(index) + ".*"); + String pString = newPattern.getPattern().substring(0, + newPattern.getPattern().lastIndexOf((index - 1 == -1 ? "" : String.valueOf(index - 1)) + ".*")) ; + pString = pString + String.valueOf(index) + ".*"; + + newPattern.setPattern(pString); index++; }