org.eclipse.jface.text.BadLocationException.toString()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(143)

本文整理了Java中org.eclipse.jface.text.BadLocationException.toString()方法的一些代码示例,展示了BadLocationException.toString()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BadLocationException.toString()方法的具体详情如下:
包路径:org.eclipse.jface.text.BadLocationException
类名称:BadLocationException
方法名:toString

BadLocationException.toString介绍

暂无

代码示例

代码示例来源:origin: oyse/yedit

/**
 * @param node A node as returned by SnakeYAML
 * @param parent The parent element
 * @param type The type of YAML element that this is. The different element types are defined
 * as constants in this class.
 * @param document The document containing the YAML text.
 */
protected YAMLOutlineElement( Node node, YAMLOutlineElement parent, int type, IDocument document ){
  this.node = node;
  this.parent = parent;
  this.type = type;
  this.document = document;
  
  if(this.parent != null ){
    this.nodePath = parent.nodePath;
  }
  this.nodePath.add(System.identityHashCode(this.node));
  
  parseNode( node );
  position = getPosition( node );
  try {
    document.addPosition(YAMLContentOutlinePage.YAMLSEGMENT, position);
  } catch (BadLocationException e) {
    YEditLog.logger.warning(e.toString());				
  } catch (BadPositionCategoryException e) {
    YEditLog.logger.warning(e.toString());
  }            
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

private void openErrorDialog(BadLocationException e) {
  Shell shell= getTextViewer().getTextWidget().getShell();
  String message= e.getMessage();
  MessageDialog.openError(shell, JavaTextMessages.FilledArgumentNamesMethodProposal_error_msg,
      message == null ? e.toString() : message);
}

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui

private void openErrorDialog(BadLocationException e) {
  Shell shell= getTextViewer().getTextWidget().getShell();
  String message= e.getMessage();
  MessageDialog.openError(shell, JavaTextMessages.FilledArgumentNamesMethodProposal_error_msg,
      message == null ? e.toString() : message);
}

代码示例来源:origin: oyse/yedit

YEditLog.logger.warning( e.toString() );

相关文章