Search in sources :

Example 1 with SourceCodeAnalysis

use of com.kyj.fx.voeditor.visual.words.spec.auto.msword.biz.SourceCodeAnalysis in project Gargoyle by callakrsos.

the class CodeAnalysisJavaTextArea method init.

@FxPostInitialize
public void init() {
    List<SourceAnalysisDVO> methodList = Collections.emptyList();
    try {
        newInstance = new BizFile(javaFile);
        List<String> readLines = newInstance.getReadLines();
        txtJavaTextArea.setContent(readLines);
        // svo = ProgramSpecUtil.doJavaFile("sampleJavaProject",
        // javaFile.getName(), (AbstractJavaProgramSpecFile) newInstance);
        // this.setContent(svo.getFile().getInspectorSourceMeta().getSourceCode());
        SourceCodeAnalysis sa = newInstance.getJavaSourceAnalysis();
        methodList = sa.findStatement();
        choMethod.getItems().addAll(methodList);
    } catch (Exception e) {
        LOGGER.error(ValueUtil.toString(e));
    }
}
Also used : SourceCodeAnalysis(com.kyj.fx.voeditor.visual.words.spec.auto.msword.biz.SourceCodeAnalysis) SourceAnalysisDVO(com.kyj.fx.voeditor.visual.words.spec.auto.msword.vo.SourceAnalysisDVO) BizFile(com.kyj.fx.voeditor.visual.words.spec.auto.msword.model.BizFile) FxPostInitialize(com.kyj.fx.voeditor.visual.framework.annotation.FxPostInitialize)

Aggregations

FxPostInitialize (com.kyj.fx.voeditor.visual.framework.annotation.FxPostInitialize)1 SourceCodeAnalysis (com.kyj.fx.voeditor.visual.words.spec.auto.msword.biz.SourceCodeAnalysis)1 BizFile (com.kyj.fx.voeditor.visual.words.spec.auto.msword.model.BizFile)1 SourceAnalysisDVO (com.kyj.fx.voeditor.visual.words.spec.auto.msword.vo.SourceAnalysisDVO)1