aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Besedin2011-08-26 10:41:20 (EDT)
committerOleg Besedin2011-08-26 10:41:20 (EDT)
commit0e6b5c387e0b772258456ff552bdaa6345558600 (patch)
treebe144deb13fe2f3917b30326463d409ffe891cc2
parent7c4edd7341a40fb56c6cdd8ffef1ffec15307c02 (diff)
downloadrt.equinox.bundles-0e6b5c387e0b772258456ff552bdaa6345558600.zip
rt.equinox.bundles-0e6b5c387e0b772258456ff552bdaa6345558600.tar.gz
rt.equinox.bundles-0e6b5c387e0b772258456ff552bdaa6345558600.tar.bz2
Bug 183164 - [Implementation for] Display of Complex Expressions
Containing Bidirectional Text
-rw-r--r--bundles/org.eclipse.equinox.bidi/src/org/eclipse/equinox/bidi/advanced/STextExpertFactory.java44
1 files changed, 21 insertions, 23 deletions
diff --git a/bundles/org.eclipse.equinox.bidi/src/org/eclipse/equinox/bidi/advanced/STextExpertFactory.java b/bundles/org.eclipse.equinox.bidi/src/org/eclipse/equinox/bidi/advanced/STextExpertFactory.java
index 1c567b7..e8e7f22 100644
--- a/bundles/org.eclipse.equinox.bidi/src/org/eclipse/equinox/bidi/advanced/STextExpertFactory.java
+++ b/bundles/org.eclipse.equinox.bidi/src/org/eclipse/equinox/bidi/advanced/STextExpertFactory.java
@@ -134,29 +134,6 @@ final public class STextExpertFactory {
/**
* Obtains a ISTextExpert instance for processing structured text with
- * the specified type handler and the specified environment.
- * This expert instance can handle states.
- *
- * @param handler the type handler instance. It may have been obtained using
- * {@link STextTypeHandlerFactory#getHandler(String)} or
- * by instantiating a type handler.
- * @param environment the current environment, which may affect the behavior of
- * the expert. This parameter may be specified as
- * <code>null</code>, in which case the
- * {@link STextEnvironment#DEFAULT DEFAULT}
- * environment should be assumed.
- * @return the ISTextExpert instance.
- * @throws IllegalArgumentException if <code>type</code> is not a known type
- * identifier.
- */
- static public ISTextExpert getStatefulExpert(STextTypeHandler handler, STextEnvironment environment) {
- if (environment == null)
- environment = STextEnvironment.DEFAULT;
- return new STextImpl(handler, environment, true);
- }
-
- /**
- * Obtains a ISTextExpert instance for processing structured text with
* the specified type handler.
* This expert instance can handle states.
*
@@ -192,6 +169,27 @@ final public class STextExpertFactory {
STextTypeHandler handler = STextTypeHandlerFactory.getHandler(type);
if (handler == null)
throw new IllegalArgumentException("Invalid type argument"); //$NON-NLS-1$
+ return getStatefulExpert(handler, environment);
+ }
+
+ /**
+ * Obtains a ISTextExpert instance for processing structured text with
+ * the specified type handler and the specified environment.
+ * This expert instance can handle states.
+ *
+ * @param handler the type handler instance. It may have been obtained using
+ * {@link STextTypeHandlerFactory#getHandler(String)} or
+ * by instantiating a type handler.
+ * @param environment the current environment, which may affect the behavior of
+ * the expert. This parameter may be specified as
+ * <code>null</code>, in which case the
+ * {@link STextEnvironment#DEFAULT DEFAULT}
+ * environment should be assumed.
+ * @return the ISTextExpert instance.
+ * @throws IllegalArgumentException if <code>type</code> is not a known type
+ * identifier.
+ */
+ static public ISTextExpert getStatefulExpert(STextTypeHandler handler, STextEnvironment environment) {
if (environment == null)
environment = STextEnvironment.DEFAULT;
return new STextImpl(handler, environment, true);