Fix compile errors due to restricted access.
diff --git a/plugins/org.eclipse.objectteams.otdt.ui/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.objectteams.otdt.ui/.settings/org.eclipse.jdt.core.prefs
index 36b5ae2..2aafee8 100644
--- a/plugins/org.eclipse.objectteams.otdt.ui/.settings/org.eclipse.jdt.core.prefs
+++ b/plugins/org.eclipse.objectteams.otdt.ui/.settings/org.eclipse.jdt.core.prefs
@@ -13,6 +13,7 @@
 org.eclipse.jdt.core.compiler.problem.discouragedReference=ignore
 org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
 org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=warning
 org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
 org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled
 org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
diff --git a/plugins/org.eclipse.objectteams.otdt.ui/src/org/eclipse/objectteams/otdt/internal/ui/javaeditor/RoleOverrideIndicatorManager.java b/plugins/org.eclipse.objectteams.otdt.ui/src/org/eclipse/objectteams/otdt/internal/ui/javaeditor/RoleOverrideIndicatorManager.java
index 3c727ee..f0271ea 100644
--- a/plugins/org.eclipse.objectteams.otdt.ui/src/org/eclipse/objectteams/otdt/internal/ui/javaeditor/RoleOverrideIndicatorManager.java
+++ b/plugins/org.eclipse.objectteams.otdt.ui/src/org/eclipse/objectteams/otdt/internal/ui/javaeditor/RoleOverrideIndicatorManager.java
@@ -56,6 +56,7 @@
  * @author stephan
  * @since 1.2.8
  */
+@SuppressWarnings("restriction") // uses internal classes below org.eclipse.jdt.internal.ui
 public class RoleOverrideIndicatorManager implements IJavaReconcilingListener {
 
 	/**
diff --git a/plugins/org.eclipse.objectteams.otdt.ui/src/org/eclipse/objectteams/otdt/internal/ui/wizards/typecreation/TypeCreator.java b/plugins/org.eclipse.objectteams.otdt.ui/src/org/eclipse/objectteams/otdt/internal/ui/wizards/typecreation/TypeCreator.java
index 41b4437..b8d9bca 100644
--- a/plugins/org.eclipse.objectteams.otdt.ui/src/org/eclipse/objectteams/otdt/internal/ui/wizards/typecreation/TypeCreator.java
+++ b/plugins/org.eclipse.objectteams.otdt.ui/src/org/eclipse/objectteams/otdt/internal/ui/wizards/typecreation/TypeCreator.java
@@ -91,6 +91,7 @@
  *
  * @author kaschja
  */
+@SuppressWarnings("restriction") // uses internal classes from org.eclipse.jdt.internal.corext
 public abstract class TypeCreator
 {
 
diff --git a/plugins/org.eclipse.objectteams.otdt.ui/src/org/eclipse/objectteams/otdt/ui/dialogs/TeamSelectionDialog.java b/plugins/org.eclipse.objectteams.otdt.ui/src/org/eclipse/objectteams/otdt/ui/dialogs/TeamSelectionDialog.java
index 3aa15ca..9281501 100644
--- a/plugins/org.eclipse.objectteams.otdt.ui/src/org/eclipse/objectteams/otdt/ui/dialogs/TeamSelectionDialog.java
+++ b/plugins/org.eclipse.objectteams.otdt.ui/src/org/eclipse/objectteams/otdt/ui/dialogs/TeamSelectionDialog.java
@@ -33,8 +33,6 @@
 import org.eclipse.jdt.core.search.IJavaSearchConstants;
 import org.eclipse.jdt.core.search.IJavaSearchScope;
 import org.eclipse.jdt.core.search.SearchPattern;
-import org.eclipse.jdt.internal.corext.util.Strings;
-import org.eclipse.jdt.internal.ui.util.StringMatcher;
 import org.eclipse.jface.dialogs.MessageDialog;
 import org.eclipse.jface.operation.IRunnableContext;
 import org.eclipse.objectteams.otdt.core.IOTType;
@@ -190,6 +188,7 @@
 
 //------------------------------------------------------------------------------
 
+	@SuppressWarnings("restriction") // using internal class org.eclipse.jdt.internal.ui.util.StringMatcher
     private static class TypeFilterMatcher
         implements FilteredList.FilterMatcher
     {
@@ -197,8 +196,8 @@
         private static final char END_SYMBOL = '<';
         private static final char ANY_STRING = '*';
 
-		private StringMatcher fMatcher;
-        private StringMatcher fQualifierMatcher;
+		private org.eclipse.jdt.internal.ui.util.StringMatcher fMatcher;
+		private org.eclipse.jdt.internal.ui.util.StringMatcher fQualifierMatcher;
 
         /*
          * @see FilteredList.FilterMatcher#setFilter(String, boolean)
@@ -214,7 +213,7 @@
             {
                 fQualifierMatcher = null;
                 fMatcher =
-                    new StringMatcher(
+                    new org.eclipse.jdt.internal.ui.util.StringMatcher(
                         adjustPattern(pattern),
                         ignoreCase,
                         igoreWildCards);
@@ -224,12 +223,12 @@
             else
             {
                 fQualifierMatcher =
-                    new StringMatcher(
+                    new org.eclipse.jdt.internal.ui.util.StringMatcher(
                         pattern.substring(0, qualifierIndex),
                         ignoreCase,
                         igoreWildCards);
                 fMatcher =
-                    new StringMatcher(
+                    new org.eclipse.jdt.internal.ui.util.StringMatcher(
                         adjustPattern(pattern.substring(qualifierIndex + 1)),
                         ignoreCase,
                         igoreWildCards);
@@ -308,14 +307,14 @@
             String leftString = (String) left;
             String rightString = (String) right;
 
-            if (Strings.isLowerCase(leftString.charAt(0))
-                && !Strings.isLowerCase(rightString.charAt(0)))
+            if (Character.isLowerCase(leftString.charAt(0))
+                && !Character.isLowerCase(rightString.charAt(0)))
             {
                 return +1;
             }
 
-            if (Strings.isLowerCase(rightString.charAt(0))
-                && !Strings.isLowerCase(leftString.charAt(0)))
+            if (Character.isLowerCase(rightString.charAt(0))
+                && !Character.isLowerCase(leftString.charAt(0)))
             {
                 return -1;
             }