本文整理汇总了Java中org.eclipse.osgi.util.TextProcessor.process方法的典型用法代码示例。如果您正苦于以下问题:Java TextProcessor.process方法的具体用法?Java TextProcessor.process怎么用?Java TextProcessor.process使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.osgi.util.TextProcessor
的用法示例。
在下文中一共展示了TextProcessor.process方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: markLTR
import org.eclipse.osgi.util.TextProcessor; //导入方法依赖的package包/类
/**
* Adds special marks so that that the given styled string is readable in a BiDi environment.
*
* @param styledString the styled string
* @return the processed styled string
* @since 3.4
*/
public static StyledString markLTR(StyledString styledString) {
/*
* NOTE: For performance reasons we do not call markLTR(styledString, null)
*/
if (!USE_TEXT_PROCESSOR)
return styledString;
String inputString= styledString.getString();
String string= TextProcessor.process(inputString);
if (string != inputString)
insertMarks(styledString, inputString, string);
return styledString;
}
示例2: markLTR
import org.eclipse.osgi.util.TextProcessor; //导入方法依赖的package包/类
/**
* Adds special marks so that that the given styled string is readable in a BiDi environment.
*
* @param styledString the styled string
* @return the processed styled string
* @since 3.4
*/
public static StyledString markLTR(StyledString styledString) {
/*
* NOTE: For performance reasons we do not call markLTR(styledString, null)
*/
if (!USE_TEXT_PROCESSOR)
return styledString;
String inputString= styledString.getString();
String string= TextProcessor.process(inputString);
if (string != inputString)
insertMarks(styledString, inputString, string);
return styledString;
}
示例3: markLTR
import org.eclipse.osgi.util.TextProcessor; //导入方法依赖的package包/类
/**
* Adds special marks so that that the given styled string is readable in a BiDi environment.
*
* @param styledString the styled string
* @return the processed styled string
* @since 3.4
*/
public static StyledString markLTR(StyledString styledString) {
/*
* NOTE: For performance reasons we do not call markLTR(styledString, null)
*/
if (!USE_TEXT_PROCESSOR) return styledString;
String inputString = styledString.getString();
String string = TextProcessor.process(inputString);
if (string != inputString) insertMarks(styledString, inputString, string);
return styledString;
}
示例4: markJavaElementLabelLTR
import org.eclipse.osgi.util.TextProcessor; //导入方法依赖的package包/类
/**
* Adds special marks so that that the given styled Java element label is readable in a BiDi
* environment.
*
* @param styledString the styled string
* @return the processed styled string
* @since 3.6
*/
public static StyledString markJavaElementLabelLTR(StyledString styledString) {
if (!USE_TEXT_PROCESSOR) return styledString;
String inputString = styledString.getString();
String string = TextProcessor.process(inputString, JAVA_ELEMENT_DELIMITERS);
if (string != inputString) insertMarks(styledString, inputString, string);
return styledString;
}
示例5: markJavaElementLabelLTR
import org.eclipse.osgi.util.TextProcessor; //导入方法依赖的package包/类
/**
* Adds special marks so that that the given styled Java element label is readable in a BiDi
* environment.
*
* @param styledString the styled string
* @return the processed styled string
* @since 3.6
*/
public static StyledString markJavaElementLabelLTR(StyledString styledString) {
if (!USE_TEXT_PROCESSOR)
return styledString;
String inputString= styledString.getString();
String string= TextProcessor.process(inputString, JAVA_ELEMENT_DELIMITERS);
if (string != inputString)
insertMarks(styledString, inputString, string);
return styledString;
}
示例6: load
import org.eclipse.osgi.util.TextProcessor; //导入方法依赖的package包/类
public Object load( )
{
if ( input == null )
return ""; //$NON-NLS-1$
DesignElementHandle handle = (DesignElementHandle) DEUtil.getInputFirstElement( input );
if ( handle != null )
return TextProcessor.process( ( (ModuleHandle) handle ).getFileName( ), PATH_DELIMETER );
return ""; //$NON-NLS-1$
}
示例7: markJavaElementLabelLTR
import org.eclipse.osgi.util.TextProcessor; //导入方法依赖的package包/类
/**
* Adds special marks so that that the given styled Java element label is readable in a BiDi
* environment.
*
* @param styledString the styled string
* @return the processed styled string
* @since 3.6
*/
public static StyledString markJavaElementLabelLTR(StyledString styledString) {
if (!USE_TEXT_PROCESSOR)
return styledString;
String inputString= styledString.getString();
String string= TextProcessor.process(inputString, JAVA_ELEMENT_DELIMITERS);
if (string != inputString)
insertMarks(styledString, inputString, string);
return styledString;
}
示例8: markLTR
import org.eclipse.osgi.util.TextProcessor; //导入方法依赖的package包/类
/**
* Adds special marks so that that the given string is readable in a BIDI environment.
*
* @param string the string
* @param delimiters the additional delimiters
* @return the processed styled string
*/
private static String markLTR(String string, String delimiters) {
return TextProcessor.process(string, delimiters);
}
示例9: markLTR
import org.eclipse.osgi.util.TextProcessor; //导入方法依赖的package包/类
/**
* Adds special marks so that that the given string is readable in a BIDI environment.
*
* @param string the string
* @param delimiters the additional delimiters
* @return the processed styled string
* @since 3.4
*/
private static String markLTR(String string, String delimiters) {
return TextProcessor.process(string, delimiters);
}
示例10: markLTR
import org.eclipse.osgi.util.TextProcessor; //导入方法依赖的package包/类
/**
* Adds special marks so that that the given string is readable in a BIDI environment.
*
* @param string the string
* @param delimiters the additional delimiters
* @return the processed styled string
* @since 3.4
*/
private static String markLTR(String string, String delimiters) {
return TextProcessor.process(string, delimiters);
}