use of org.eclipse.swtbot.eclipse.finder.finders.WorkbenchContentsFinder in project translationstudio8 by heartsome.
the class XlfEditor method getAllRowIds.
/**
* @return List<String> 当前文件中所有文本段的 RowID,合并、分割文本段后应重新获取 (每个 RowID 由 XLIFF 文件路径、源文件路径、trans-unit ID 组成)
*/
public List<String> getAllRowIds() {
WorkbenchContentsFinder finder = new WorkbenchContentsFinder();
IEditorPart activateEditor = finder.activeWorkbenchWindow().getActivePage().getActiveEditor();
IXliffEditor xliffEditor = (IXliffEditor) activateEditor;
XLFHandler handler = xliffEditor.getXLFHandler();
return handler.getAllRowIds();
}
use of org.eclipse.swtbot.eclipse.finder.finders.WorkbenchContentsFinder in project translationstudio8 by heartsome.
the class XlfEditor method getRowIds.
/**
* @return List<String> 当前所有可见文本段的 RowID,合并、分割文本段后应重新获取
*/
public ArrayList<String> getRowIds() {
WorkbenchContentsFinder finder = new WorkbenchContentsFinder();
IEditorPart activateEditor = finder.activeWorkbenchWindow().getActivePage().getActiveEditor();
IXliffEditor xliffEditor = (IXliffEditor) activateEditor;
XLFHandler handler = xliffEditor.getXLFHandler();
return handler.getRowIds();
}
Aggregations