當前位置: 首頁>>代碼示例>>Java>>正文


Java SoftwareVersion類代碼示例

本文整理匯總了Java中org.netbeans.modeler.specification.version.SoftwareVersion的典型用法代碼示例。如果您正苦於以下問題:Java SoftwareVersion類的具體用法?Java SoftwareVersion怎麽用?Java SoftwareVersion使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


SoftwareVersion類屬於org.netbeans.modeler.specification.version包,在下文中一共展示了SoftwareVersion類的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setPreviousVersion

import org.netbeans.modeler.specification.version.SoftwareVersion; //導入依賴的package包/類
/**
 * @param previousVersion the previousVersion to set
 */
public void setPreviousVersion(String previousVersion) {
    if (StringUtils.isBlank(previousVersion)) {
        previousVersion = "0.0";
    }
    this.previousVersion = new SoftwareVersion(previousVersion);
}
 
開發者ID:jeddict,項目名稱:jCode,代碼行數:10,代碼來源:EntityMappings.java

示例2: init

import org.netbeans.modeler.specification.version.SoftwareVersion; //導入依賴的package包/類
@Override
public void init() {
    super.init();

    //After installation of new version, auto save file 
    ModelerFile file = this.getModelerFile();
    EntityMappings entityMappings = (EntityMappings) file.getDefinitionElement();
    if (SoftwareVersion.getInstance(entityMappings.getVersion()).compareTo(file.getArchitectureVersion()) < 0) {
        file.getModelerUtil().saveModelerFile(file);
    }
    
    getWorkSpaceManager().loadWorkspaceUI();
}
 
開發者ID:jeddict,項目名稱:jeddict,代碼行數:14,代碼來源:JPAModelerScene.java

示例3: setVersion

import org.netbeans.modeler.specification.version.SoftwareVersion; //導入依賴的package包/類
public void setVersion(SoftwareVersion value) {
    this.version = value.getValue();
}
 
開發者ID:jeddict,項目名稱:jCode,代碼行數:4,代碼來源:EntityMappings.java

示例4: getPreviousVersion

import org.netbeans.modeler.specification.version.SoftwareVersion; //導入依賴的package包/類
/**
 * @return the previousVersion
 */
public SoftwareVersion getPreviousVersion() {
    return previousVersion;
}
 
開發者ID:jeddict,項目名稱:jCode,代碼行數:7,代碼來源:EntityMappings.java

示例5: DiagramModel

import org.netbeans.modeler.specification.version.SoftwareVersion; //導入依賴的package包/類
public DiagramModel(String id, String name, SoftwareVersion version, SoftwareVersion architectureVersion) {
    this.id = id;
    this.name = name;
    this.version = version;
    this.architectureVersion = architectureVersion;
}
 
開發者ID:jeddict,項目名稱:NBModeler,代碼行數:7,代碼來源:DiagramModel.java

示例6: getVersion

import org.netbeans.modeler.specification.version.SoftwareVersion; //導入依賴的package包/類
/**
 * @return the version
 */
public SoftwareVersion getVersion() {
    return version;
}
 
開發者ID:jeddict,項目名稱:NBModeler,代碼行數:7,代碼來源:DiagramModel.java

示例7: setVersion

import org.netbeans.modeler.specification.version.SoftwareVersion; //導入依賴的package包/類
/**
 * @param version the version to set
 */
public void setVersion(SoftwareVersion version) {
    this.version = version;
}
 
開發者ID:jeddict,項目名稱:NBModeler,代碼行數:7,代碼來源:DiagramModel.java

示例8: getArchitectureVersion

import org.netbeans.modeler.specification.version.SoftwareVersion; //導入依賴的package包/類
/**
 * @return the architectureVersion
 */
public SoftwareVersion getArchitectureVersion() {
    return architectureVersion;
}
 
開發者ID:jeddict,項目名稱:NBModeler,代碼行數:7,代碼來源:DiagramModel.java

示例9: setArchitectureVersion

import org.netbeans.modeler.specification.version.SoftwareVersion; //導入依賴的package包/類
/**
 * @param architectureVersion the architectureVersion to set
 */
public void setArchitectureVersion(SoftwareVersion architectureVersion) {
    this.architectureVersion = architectureVersion;
}
 
開發者ID:jeddict,項目名稱:NBModeler,代碼行數:7,代碼來源:DiagramModel.java

示例10: getCurrentVersion

import org.netbeans.modeler.specification.version.SoftwareVersion; //導入依賴的package包/類
public SoftwareVersion getCurrentVersion() {
    return this.getModelerDiagramModel().getDiagramModel().getVersion();
}
 
開發者ID:jeddict,項目名稱:NBModeler,代碼行數:4,代碼來源:ModelerFile.java

示例11: getArchitectureVersion

import org.netbeans.modeler.specification.version.SoftwareVersion; //導入依賴的package包/類
public SoftwareVersion getArchitectureVersion() {
    return this.getModelerDiagramModel().getDiagramModel().getArchitectureVersion();
}
 
開發者ID:jeddict,項目名稱:NBModeler,代碼行數:4,代碼來源:ModelerFile.java

示例12: run

import org.netbeans.modeler.specification.version.SoftwareVersion; //導入依賴的package包/類
@Override
public void run() {

    try {
        modelerFile.getModelerDiagramModel().setDiagramModel(new DiagramModel(diagramModelConfig.id(), diagramModelConfig.name(), new SoftwareVersion(diagramModelConfig.version()), new SoftwareVersion(diagramModelConfig.architectureVersion())));

        Class<? extends IModelerPanel> modelerPanel = diagramModelConfig.modelerPanel();
        if (modelerPanel != IModelerPanel.class) {
            modelerFile.getModelerScene().setModelerPanelTopComponent(modelerPanel.newInstance());
        } else {
            modelerFile.getModelerScene().setModelerPanelTopComponent(new ModelerPanelTopComponent());
        }
        Class<? extends IRelationValidator> relationValidator = diagramModelConfig.relationValidator();
        modelerFile.getModelerDiagramModel().setRelationValidator(relationValidator.newInstance());

        Class<? extends IExportManager> exportManager = diagramModelConfig.exportManager();
        if (exportManager != IExportManager.class) {
            modelerFile.getModelerDiagramModel().setExportManager(exportManager.newInstance());
        } else {
            modelerFile.getModelerDiagramModel().setExportManager(new DefaultExportManager());
        }

        Class<? extends IExceptionHandler> exceptionHandler = diagramModelConfig.exceptionHandler();
        if (exceptionHandler != IExceptionHandler.class) {
            modelerFile.getModelerDiagramModel().setExceptionHandler(exceptionHandler.newInstance());
        } else if (modelerFile.getParentFile() != null) {
            modelerFile.getModelerDiagramModel().setExceptionHandler(modelerFile.getParentFile().getModelerDiagramModel().getExceptionHandler());
        } else {
            modelerFile.getModelerDiagramModel().setExceptionHandler((Throwable throwable, ModelerFile file) -> {
                Exceptions.printStackTrace(throwable);
            });
        }

        //System.out.println("E1 B3B Total time : " + (new Date().getTime() - st) + " sec");
    } catch (InstantiationException | IllegalAccessException ex) {
        Exceptions.printStackTrace(ex);
    } finally {
        //long st = new Date().getTime();
        latch.countDown();
        //System.out.println("E1 B3A Total time : " + (new Date().getTime() - st) + " sec");
    }

}
 
開發者ID:jeddict,項目名稱:NBModeler,代碼行數:44,代碼來源:ModelerFileActionListener.java


注:本文中的org.netbeans.modeler.specification.version.SoftwareVersion類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。