当前位置: 首页>>代码示例>>Java>>正文


Java TextProcessor.process方法代码示例

本文整理汇总了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;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:23,代码来源:Strings.java

示例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;
}
 
开发者ID:fabioz,项目名称:eclipse.spellchecker,代码行数:23,代码来源:Strings.java

示例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;
}
 
开发者ID:eclipse,项目名称:che,代码行数:21,代码来源:Strings.java

示例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;
}
 
开发者ID:eclipse,项目名称:che,代码行数:17,代码来源:Strings.java

示例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;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:19,代码来源:Strings.java

示例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$
}
 
开发者ID:eclipse,项目名称:birt,代码行数:10,代码来源:PathDescriptorProvider.java

示例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;
}
 
开发者ID:fabioz,项目名称:eclipse.spellchecker,代码行数:19,代码来源:Strings.java

示例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);
}
 
开发者ID:eclipse,项目名称:che,代码行数:11,代码来源:BasicElementLabels.java

示例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);
}
 
开发者ID:fabioz,项目名称:Pydev,代码行数:12,代码来源:BasicElementLabels.java

示例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);
}
 
开发者ID:fabioz,项目名称:Pydev,代码行数:12,代码来源:BasicElementLabels.java


注:本文中的org.eclipse.osgi.util.TextProcessor.process方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。