Java Code Examples for org.eclipse.swt.custom.StyledText#getChildren()

The following examples show how to use org.eclipse.swt.custom.StyledText#getChildren() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SegmentViewer.java    From translationstudio8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 重置 ;
 */
public void reset() {
	StyledText styledText = getTextWidget();
	Control[] children = styledText.getChildren();
	for (Control child : children) {
		if (child != null && !child.isDisposed()) {
			child.dispose();
		}
	}
	innerTagCacheList.clear();
	errorTagStart = 0;
}
 
Example 2
Source File: SegmentViewer.java    From tmxeditor8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 重置 ;
 */
public void reset() {
	StyledText styledText = getTextWidget();
	Control[] children = styledText.getChildren();
	for (Control child : children) {
		if (child != null && !child.isDisposed()) {
			child.dispose();
		}
	}
	innerTagCacheList.clear();
	errorTagStart = 0;
}