Java Code Examples for com.ximpleware.VTDGen#parseFile()
The following examples show how to use
com.ximpleware.VTDGen#parseFile() .
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: TSFileHandler.java From translationstudio8 with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws XPathParseException, XPathEvalException, NavException { TSFileHandler ts = new TSFileHandler(); VTDGen vg = new VTDGen(); if (vg .parseFile( "/data/john/Workspaces/Other/net.heartsome.cat.ts.core/testSrc/net/heartsome/cat/ts/core/file/test/Test.txt.xlf", true)) { ts.openFile("/data/john/Workspaces/Other/net.heartsome.cat.ts.core/testSrc/net/heartsome/cat/ts/core/file/test/Test.txt.xlf"); System.out.println(ts.getSourceLanguage(3)); System.out.println(ts.getTargetLanguage(3)); // System.out // .println(ts // .analysisTranslatorProgress( // vg.getNav(), // "/data/john/Workspaces/Other/net.heartsome.cat.ts.core/testSrc/net/heartsome/cat/ts/core/file/test/Test.txt.xlf", // 0)); } }
Example 2
Source File: Mq2Xliff.java From translationstudio8 with GNU General Public License v2.0 | 6 votes |
/** * 将mq 的骨架文件拷到R8 的骨架文件中 * @throws Exception */ private void copyMqSklToHsSkl(File mqSkeletonFile) throws Exception { VTDGen vg = new VTDGen(); AutoPilot ap = new AutoPilot(); String mqSklContent = ""; String xpath = "/mq:externalparts"; if(vg.parseFile(mqSkeletonFile.getAbsolutePath(), true)){ VTDNav vn = vg.getNav(); ap.bind(vn); VTDUtils vu = new VTDUtils(vn); ap.declareXPathNameSpace("mq", "MemoQ Xliff external parts"); ap.selectXPath(xpath); if (ap.evalXPath() != -1) { mqSklContent = vu.getElementContent(); } } //下面添加到 r8 的骨架文件中去 ap.bind(sklVN); xpath = "/xliff/file/header/skl"; ap.selectXPath(xpath); if (ap.evalXPath() != -1) { sklXM.insertAfterElement("<sklContent>" + mqSklContent + "</sklContent>"); sklXM.output(skeletonFile); } }
Example 3
Source File: PartOperate.java From translationstudio8 with GNU General Public License v2.0 | 6 votes |
/** * 解析文件 * @param nameSpaceMap 要申明的命名空间 * @throws Exception */ protected void loadFile(Map<String, String> nameSpaceMap) throws Exception { VTDGen vg = new VTDGen(); if (vg.parseFile(partPath, true)) { vn = vg.getNav(); ap = new AutoPilot(vn); otherAP = new AutoPilot(vn); childAP = new AutoPilot(vn); extendAP = new AutoPilot(vn); vu = new VTDUtils(vn); xm = new XMLModifier(vn); // 给 ap 申明命名空间 for(Entry<String, String> entry : nameSpaceMap.entrySet()){ ap.declareXPathNameSpace(entry.getKey(), entry.getValue()); childAP.declareXPathNameSpace(entry.getKey(), entry.getValue()); otherAP.declareXPathNameSpace(entry.getKey(), entry.getValue()); extendAP.declareXPathNameSpace(entry.getKey(), entry.getValue()); } }else { throw new DocxConverterException(MessageFormat.format(Messages.getString("docxConvert.msg2"), partPath)); } }
Example 4
Source File: AbstractVersionModifyingMojo.java From revapi with Apache License 2.0 | 6 votes |
void updateProjectParentVersion(MavenProject project, Version version) throws MojoExecutionException { try { VTDGen gen = new VTDGen(); gen.enableIgnoredWhiteSpace(true); gen.parseFile(project.getFile().getAbsolutePath(), true); VTDNav nav = gen.getNav(); AutoPilot ap = new AutoPilot(nav); ap.selectXPath("namespace-uri(.)"); String ns = ap.evalXPathToString(); nav.toElementNS(VTDNav.FIRST_CHILD, ns, "parent"); nav.toElementNS(VTDNav.FIRST_CHILD, ns, "version"); int pos = nav.getText(); XMLModifier mod = new XMLModifier(nav); mod.updateToken(pos, version.toString()); try (OutputStream out = new FileOutputStream(project.getFile())) { mod.output(out); } } catch (IOException | ModifyException | NavException | XPathParseException | TranscodeException e) { throw new MojoExecutionException("Failed to update the parent version of project " + project, e); } }
Example 5
Source File: PluginConfigManageDialog.java From translationstudio8 with GNU General Public License v2.0 | 6 votes |
private void editPlugindata(PluginConfigBean bean) { VTDGen vg = new VTDGen(); vg.parseFile(pluginXmlLocation, true); VTDNav vn = vg.getNav(); AutoPilot ap = new AutoPilot(vn); try { ap.selectXPath(manage.buildXpath(curPluginBean)); XMLModifier xm = new XMLModifier(vn); while (ap.evalXPath() != -1) { xm.remove(); xm.insertAfterElement(manage.buildPluginData(bean)); manage.updataPluginMenu(bean); } FileOutputStream fos = new FileOutputStream(pluginXmlLocation); BufferedOutputStream bos = new BufferedOutputStream(fos); xm.output(bos); // 写入文件 bos.close(); fos.close(); } catch (Exception e) { LOGGER.error("", e); } }
Example 6
Source File: Xliff2Wf.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
/** * 解析结果文件(解析时这个结果文件还是一个骨架文件) * @param file * @throws Exception */ private void parseOutputFile(String file, String xliffFile) throws Exception { VTDGen vg = new VTDGen(); if (vg.parseFile(file, true)) { outputVN = vg.getNav(); outputXM = new XMLModifier(outputVN); outputAP = new AutoPilot(outputVN); }else { String errorInfo = MessageFormat.format(Messages.getString("wf.parse.msg2"), new Object[]{new File(xliffFile).getName()}); throw new Exception(errorInfo); } }
Example 7
Source File: Xliff2Ttx.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
/** * 解析要被逆转换的xliff文件 * @param xliffFile * @throws Exception */ private void parseXlfFile(String xliffFile) throws Exception { VTDGen vg = new VTDGen(); if (vg.parseFile(xliffFile, true)) { xlfVN = vg.getNav(); xlfAP = new AutoPilot(xlfVN); }else { String errorInfo = MessageFormat.format("文件 {0} 的骨架信息无法解析,逆转换失败!", new Object[]{new File(xliffFile).getName()}); throw new Exception(errorInfo); } }
Example 8
Source File: Xliff2Mq.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
/** * 解析要被逆转换的xliff文件 * @param xliffFile * @throws Exception */ private void parseXlfFile(String xliffFile) throws Exception { VTDGen vg = new VTDGen(); if (vg.parseFile(xliffFile, true)) { xlfVN = vg.getNav(); }else { String errorInfo = MessageFormat.format(Messages.getString("mq.parse.msg1"), new Object[]{new File(xliffFile).getName()}); throw new Exception(errorInfo); } }
Example 9
Source File: Wf2Xliff.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
/** * 解析骨架文件,此时的骨架文件的内容就是源文件的内容 * @throws Exception */ private void parseSkeletonFile() throws Exception{ String errorInfo = ""; VTDGen vg = new VTDGen(); if (vg.parseFile(skeletonFile, true)) { sklVN = vg.getNav(); sklXM = new XMLModifier(sklVN); }else { errorInfo = MessageFormat.format(Messages.getString("wf.parse.msg1"), new Object[]{new File(inputFile).getName()}); throw new Exception(errorInfo); } }
Example 10
Source File: Mq2Xliff.java From translationstudio8 with GNU General Public License v2.0 | 5 votes |
/** * 解析R8 的骨架文件 * @throws Exception */ private void parseHSSkeletonFile() throws Exception { String errorInfo = ""; VTDGen vg = new VTDGen(); if (vg.parseFile(skeletonFile, true)) { sklVN = vg.getNav(); sklXM = new XMLModifier(sklVN); }else { errorInfo = MessageFormat.format(Messages.getString("mq.parse.msg1"), new Object[]{new File(inputFile).getName()}); throw new Exception(errorInfo); } }
Example 11
Source File: Xliff2Ttx.java From translationstudio8 with GNU General Public License v2.0 | 5 votes |
/** * 解析结果文件(解析时这个结果文件还是一个骨架文件) * @param file * @throws Exception */ private void parseOutputFile(String file, String xliffFile) throws Exception { VTDGen vg = new VTDGen(); if (vg.parseFile(file, true)) { outputVN = vg.getNav(); outputXM = new XMLModifier(outputVN); outputAP = new AutoPilot(outputVN); outputVU = new VTDUtils(outputVN); }else { String errorInfo = MessageFormat.format("文件 {0} 的骨架信息无法解析,逆转换失败!", new Object[]{new File(xliffFile).getName()}); throw new Exception(errorInfo); } }
Example 12
Source File: TmxTuCache.java From tmxeditor8 with GNU General Public License v2.0 | 4 votes |
public static void main(String[] args) { String fileLC = "E:\\1\\TMX_edit\\medicaldevicesc.tmx"; VTDGen vg = new VTDGen(); vg.parseFile(fileLC, true); try { // VTDNav vn = vg.getNav(); // VTDUtils vu = new VTDUtils(vn); // // long time2 = System.currentTimeMillis(); // for(int i = 100000 ; i < 100005; i++){ // time2 = System.currentTimeMillis(); // readTu(i, vu); // AutoPilot ap = new AutoPilot(vn); // String xp = "/tmx/body/tu["+i+"]"; // try { // ap.selectXPath("/tmx/body/tu["+i+"]"); // if (ap.evalXPath() != -1) { // System.out.println(vu.getElementFragment()); // TmxFileDataAccessUtils.readTUAttr4VTDNav(vu, tu); // TmxFileDataAccessUtils.readTUNote4VTDNav(vu, tu); // TmxFileDataAccessUtils.readTUProp4VTDNav(vu, tu); // TmxFileDataAccessUtils.readTUTuv4VTDNav(vu, tu, super.currSrcLang, super.currTgtLang); // } // } catch (VTDException e1) { // e1.printStackTrace(); // } // vu.pilot("/tmx/body/tu["+i+"]"); // System.out.println(System.currentTimeMillis() - time2); // } // // int i = 300000; // while(i < 300004){ // time2 = System.currentTimeMillis(); // i++; // vu.pilot("/tmx/body/tu["+i+"]"); // System.out.println(System.currentTimeMillis() - time2); // } //// // vu.pilot("/tmx/body/tu[300000]"); // System.out.println(System.currentTimeMillis() - time2); // time2 = System.currentTimeMillis(); // vu.pilot("/tmx/body/tu[300001]"); // System.out.println(System.currentTimeMillis() - time2); // time2 = System.currentTimeMillis(); // vu.pilot("/tmx/body/tu[300002]"); // System.out.println(System.currentTimeMillis() - time2); // time2 = System.currentTimeMillis(); // vu.pilot("/tmx/body/tu[300003]"); // System.out.println(System.currentTimeMillis() - time2); VTDNav vn = vg.getNav(); long time1 = System.currentTimeMillis(); AutoPilot ap = new AutoPilot(vn); ap.selectXPath("/tmx/body/tu[" + 300000 + "]"); if (ap.evalXPath() != -1) { System.out.println("----------==="); } System.out.println(System.currentTimeMillis() - time1); long time2 = System.currentTimeMillis(); //following ap.selectXPath("/tmx/body/tu[" + 300015 + "]"); if (ap.evalXPath() != -1) { System.out.println("----------"); } System.out.println(System.currentTimeMillis() - time2); } catch (Exception e) { // TODO: handle exception } }
Example 13
Source File: PPTX2XLIFF.java From tmxeditor8 with GNU General Public License v2.0 | 4 votes |
/** * 解析 ppt/slideMasters 目录下的 slideMasterN.xml 文件,查找 ph 中 type 不是 dt 和 sldNum 的节点,<br/> * 取出其 type, idx 属性值和坐标值,因为有的幻灯片中节点的坐标是存放在此文件中的 * @throws Exception */ private void parseSlideMaster(IProgressMonitor monitor) throws Exception { File slideMasterDic = new File(strTmpFolderPath + File.separator + "ppt" + File.separator + "slideMasters"); if (slideMasterDic.isDirectory()) { VTDGen vg = new VTDGen(); VTDUtils vu = new VTDUtils(); AutoPilot ap = new AutoPilot(); ap.declareXPathNameSpace(PREFIX_A, NAMESPACE_A); ap.declareXPathNameSpace(PREFIX_P, NAMESPACE_P); File[] arrSlideMasterFile = slideMasterDic.listFiles(); monitor.beginTask("", arrSlideMasterFile.length); for (File slideMasterFile : arrSlideMasterFile) { if (monitor.isCanceled()) { throw new OperationCanceledException(Messages.getString("preference.cancel")); } monitor.subTask(MessageFormat.format(Messages.getString("pptx.PPTX2XLIFF.task4"), slideMasterFile.getName())); if (slideMasterFile.isFile() && slideMasterFile.getName().toLowerCase().endsWith(".xml")) { if (vg.parseFile(slideMasterFile.getAbsolutePath(), true)) { String name = slideMasterFile.getName(); VTDNav vn = vg.getNav(); vu.bind(vn); ap.bind(vn); ap.selectXPath("/p:sldMaster/p:cSld/p:spTree//p:sp[descendant::p:ph[not(@type='dt') and not(@type='sldNum')]]"); ArrayList<String[]> lstFld = new ArrayList<String[]>(); while (ap.evalXPath() != -1) { String strType = vu.getElementAttribute(".//p:ph", "type"); String idx = vu.getElementAttribute(".//p:ph", "idx"); if (strType == null && idx == null) { continue; } String strX = vu.getElementAttribute(".//a:xfrm/a:off", "x"); String strY = vu.getElementAttribute(".//a:xfrm/a:off", "y"); if (strX != null && strY != null) { lstFld.add(new String[] { strType, idx, strX, strY }); } } if (lstFld.size() > 0) { mapSldMasterPH.put(name, lstFld); } } } monitor.worked(1); } } monitor.done(); }
Example 14
Source File: OpenFileWithValidAction.java From tmxeditor8 with GNU General Public License v2.0 | 4 votes |
/** * 验证是否已经被打开 * @param iFile * @return 如果当前要打开的文件未被打开,那么验证通过,返回true,否则返回false。 */ private boolean validIsopened(IFile iFile) throws Exception{ String extention = iFile.getFileExtension(); if (IDE.getDefaultEditor(iFile, true) != null && XLIFF_EDITOR_ID.equals(IDE.getDefaultEditor(iFile, true).getId()) && CommonFunction.validXlfExtension(extention)) { IEditorReference[] editorRes = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage() .getEditorReferences(); IEditorPart editor = null; IFile openIFile = null; String needOpenIfileLc = iFile.getLocation().toOSString(); for (int i = 0; i < editorRes.length; i++) { if (editorRes[i].getId().equals(XLIFF_EDITOR_ID)) { // 备注:这里的两行代码已经被注释了,原因是因为 getEditor 方法会让每一个 editor 都初始一次,这并不是本次需求所要的。注意。 2013-01-04 //editor = editorRes[i].getEditor(true); //openIFile = ((IFileEditorInput) editor.getEditorInput()).getFile(); openIFile = ((IFileEditorInput) editorRes[i].getEditorInput()).getFile(); // 判断是否是合并打开,后缀名为xlp为合并打开,后缀名为xlf为单一打开 if ("xlp".equals(openIFile.getFileExtension())) { // 开始解析这个合并打开临时文件,获取合并打开的文件。 VTDGen vg = new VTDGen(); if (vg.parseFile(openIFile.getLocation().toOSString(), true)) { VTDNav vn = vg.getNav(); AutoPilot ap = new AutoPilot(vn); try { ap.selectXPath("/mergerFiles/mergerFile/@filePath"); int index = -1; while ((index = ap.evalXPath()) != -1) { String fileLC = vn.toString(index + 1); if (fileLC != null && !"".equals(fileLC)) { if (fileLC.equals(needOpenIfileLc)) { editor = editorRes[i].getEditor(true); page.activate(editor); return false; } } } } catch (Exception e) { e.printStackTrace(); } } else { return false; } } } } } return true; }
Example 15
Source File: PluginConfigManage.java From translationstudio8 with GNU General Public License v2.0 | 4 votes |
/** * 从插件配置文件中获取插件配置的相关信息 * @return ; */ public List<PluginConfigBean> getPluginCofigData() { System.out.println(pluginXmlLocation); List<PluginConfigBean> dataList = new LinkedList<PluginConfigBean>(); File pluginXMl = new File(pluginXmlLocation); if (!pluginXMl.exists()) { return dataList; } VTDGen vg = new VTDGen(); vg.parseFile(pluginXmlLocation, true); VTDNav vn = vg.getNav(); AutoPilot ap = new AutoPilot(vn); try { ap.selectXPath("/shortcuts/plugin"); PluginConfigBean bean; while (ap.evalXPath() != -1) { String id = ""; String name = ""; String commandLine = ""; String output = ""; String input = ""; String shortcutKey = ""; String outputPath = ""; int index = -1; if ((index = vn.getAttrVal("id")) != -1) { id = vn.toString(index); } if ((index = vn.getText()) != -1) { name = vn.toString(index); } if ((index = vn.getAttrVal("command")) != -1) { commandLine = vn.toString(index); } if ((index = vn.getAttrVal("output")) != -1) { output = vn.toString(index); } if ((index = vn.getAttrVal("input")) != -1) { input = vn.toString(index); } if ((index = vn.getAttrVal("shortcut-key")) != -1) { shortcutKey = vn.toString(index); } if ((index = vn.getAttrVal("outputpath")) != -1) { outputPath = vn.toString(index); } bean = new PluginConfigBean(id, name, commandLine, input, output, outputPath, shortcutKey); dataList.add(bean); } } catch (Exception e) { LOGGER.error("", e); } return dataList; }
Example 16
Source File: ConvertToXmlConfigMojo.java From revapi with Apache License 2.0 | 4 votes |
private void updateAllConfigurationFiles(MavenProject project, Map<String, ModelNode> extensionSchemas, int indentationSize) throws Exception { VTDGen gen = new VTDGen(); gen.enableIgnoredWhiteSpace(true); gen.parseFile(project.getFile().getAbsolutePath(), true); VTDNav nav = gen.getNav(); XMLModifier mod = new XMLModifier(nav); AutoPilot ap = new AutoPilot(nav); ThrowingConsumer<String> update = xpath -> { ap.resetXPath(); ap.selectXPath(xpath); while (ap.evalXPath() != -1) { int textPos = nav.getText(); String configFile = nav.toString(textPos); File newFile = updateConfigurationFile(new File(configFile), extensionSchemas, indentationSize); if (newFile == null) { continue; } mod.updateToken(textPos, newFile.getPath()); } }; update.accept("//plugin[groupId = 'org.revapi' and artifactId = 'revapi-maven-plugin']" + "/configuration/analysisConfigurationFiles/*[not(self::configurationFile)]"); update.accept("//plugin[groupId = 'org.revapi' and artifactId = 'revapi-maven-plugin']" + "/configuration/analysisConfigurationFiles/configurationFile[not(roots)]/path"); update.accept("//plugin[groupId = 'org.revapi' and artifactId = 'revapi-maven-plugin']" + "/executions/execution/configuration/analysisConfigurationFiles/*[not(self::configurationFile)]"); update.accept("//plugin[groupId = 'org.revapi' and artifactId = 'revapi-maven-plugin']" + "/executions/execution/configuration/analysisConfigurationFiles/configurationFile[not(roots)]/path"); try (OutputStream out = new FileOutputStream(project.getFile())) { mod.output(out); } }
Example 17
Source File: QAXmlHandler.java From translationstudio8 with GNU General Public License v2.0 | 4 votes |
/** * 获取 hunspell 所支持的语言 2013-01-15 * @param xmlPath * @return */ public Map<String, String> getHunspellAvailableLang(String xmlPath){ Map<String, String> langMap = new HashMap<String, String>(); VTDGen vg = new VTDGen(); if (!vg.parseFile(xmlPath, true)) { logger.error("Hunspell 语言管理文件破损,无法解析。"); return null; } VTDNav vn = vg.getNav(); AutoPilot ap = new AutoPilot(vn); AutoPilot childAP = new AutoPilot(vn); String xpath = "/config/language"; try { ap.selectXPath(xpath); while (ap.evalXPath() != -1) { String code = null; String dictionary = null; vn.push(); childAP.selectXPath("./isoCode"); if(childAP.evalXPath() != -1){ if (vn.getText() != -1) { code = vn.toRawString(vn.getText()); } } vn.pop(); vn.push(); childAP.selectXPath("./dict"); if (childAP.evalXPath() != -1) { if (vn.getText() != -1) { dictionary = vn.toRawString(vn.getText()); } } vn.pop(); if (code != null && dictionary != null && !"".equals(code) && !"".equals(dictionary)) { langMap.put(code, dictionary); } } } catch (Exception e) { logger.error("Hunspell 语言管理文件内容获取失败!", e); } return langMap; }
Example 18
Source File: ConvertToXmlConfigMojo.java From revapi with Apache License 2.0 | 4 votes |
private static void updateAllConfigurations(File pomXml, Map<String, ModelNode> extensionSchemas, int indentationSize) throws Exception { VTDGen gen = new VTDGen(); gen.enableIgnoredWhiteSpace(true); gen.parseFile(pomXml.getAbsolutePath(), true); VTDNav nav = gen.getNav(); XMLModifier mod = new XMLModifier(nav); Callable<Void> update = () -> { int textPos = nav.getText(); String jsonConfig = nav.toRawString(textPos); PlexusConfiguration xml = convertToXml(extensionSchemas, jsonConfig); if (xml == null) { return null; } StringWriter pretty = new StringWriter(); XmlUtil.toIndentedString(xml, indentationSize, nav.getTokenDepth(textPos), pretty); //remove the first indentation, because text is already indented String prettyXml = pretty.toString().substring(indentationSize * nav.getTokenDepth(textPos)); mod.insertAfterElement(prettyXml); mod.remove(); return null; }; AutoPilot ap = new AutoPilot(nav); ap.selectXPath("//plugin[groupId = 'org.revapi' and artifactId = 'revapi-maven-plugin']/configuration/analysisConfiguration"); while (ap.evalXPath() != -1) { update.call(); } ap.resetXPath(); ap.selectXPath("//plugin[groupId = 'org.revapi' and artifactId = 'revapi-maven-plugin']/executions/execution/configuration/analysisConfiguration"); while (ap.evalXPath() != -1) { update.call(); } try (OutputStream out = new FileOutputStream(pomXml)) { mod.output(out); } }
Example 19
Source File: ExportDocx.java From translationstudio8 with GNU General Public License v2.0 | votes |
/** * 给标记的 r:id 属性添加关系申明 */ private void addTagRIdToRels() throws Exception{ VTDGen vg = new VTDGen(); String docRelsPath = docxFolderPath + File.separator + "word" + File.separator + "_rels" + File.separator + "document.xml.rels"; boolean parseResult = vg.parseFile(docRelsPath, true); if (!parseResult) { throw new Exception(MessageFormat.format("文件{0}解析失败!", new Object[]{docRelsPath})); } VTDNav vn = vg.getNav(); AutoPilot ap = new AutoPilot(vn); XMLModifier xm = new XMLModifier(vn); ap.selectXPath("/Relationships"); if (ap.evalXPath() != -1) { String tagRelationShip = "<Relationship Id=\"" + tagRId + "\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink\" Target=\"http://null\" TargetMode=\"External\"/>"; xm.insertBeforeTail(tagRelationShip); xm.output(docRelsPath); } }
Example 20
Source File: TmxCustomFilterUtil.java From tmxeditor8 with GNU General Public License v2.0 | votes |
/** * 打开过滤器存储文件 */ private void openFilter(){ try { if (!new File(FILTERFILEPATH).exists()) { creatFilterFile(); } VTDGen vg = new VTDGen(); if (vg.parseFile(FILTERFILEPATH, true)) { vn = vg.getNav(); vu = new VTDUtils(vn); xm = new XMLModifier(vn); isFilterOpened = true; }else { boolean isCreate = OpenMessageUtils.openConfirmMessage(Messages.getString("core.tmxCutomFilterUtil.error.filterFileWrong")); if (isCreate) { creatFilterFile(); openFilter(); }else { isFilterOpened = false; } } } catch (Exception e) { LOGGER.error("", e); } }