本文整理匯總了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);
}
示例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();
}
示例3: setVersion
import org.netbeans.modeler.specification.version.SoftwareVersion; //導入依賴的package包/類
public void setVersion(SoftwareVersion value) {
this.version = value.getValue();
}
示例4: getPreviousVersion
import org.netbeans.modeler.specification.version.SoftwareVersion; //導入依賴的package包/類
/**
* @return the previousVersion
*/
public SoftwareVersion getPreviousVersion() {
return previousVersion;
}
示例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;
}
示例6: getVersion
import org.netbeans.modeler.specification.version.SoftwareVersion; //導入依賴的package包/類
/**
* @return the version
*/
public SoftwareVersion getVersion() {
return version;
}
示例7: setVersion
import org.netbeans.modeler.specification.version.SoftwareVersion; //導入依賴的package包/類
/**
* @param version the version to set
*/
public void setVersion(SoftwareVersion version) {
this.version = version;
}
示例8: getArchitectureVersion
import org.netbeans.modeler.specification.version.SoftwareVersion; //導入依賴的package包/類
/**
* @return the architectureVersion
*/
public SoftwareVersion getArchitectureVersion() {
return architectureVersion;
}
示例9: setArchitectureVersion
import org.netbeans.modeler.specification.version.SoftwareVersion; //導入依賴的package包/類
/**
* @param architectureVersion the architectureVersion to set
*/
public void setArchitectureVersion(SoftwareVersion architectureVersion) {
this.architectureVersion = architectureVersion;
}
示例10: getCurrentVersion
import org.netbeans.modeler.specification.version.SoftwareVersion; //導入依賴的package包/類
public SoftwareVersion getCurrentVersion() {
return this.getModelerDiagramModel().getDiagramModel().getVersion();
}
示例11: getArchitectureVersion
import org.netbeans.modeler.specification.version.SoftwareVersion; //導入依賴的package包/類
public SoftwareVersion getArchitectureVersion() {
return this.getModelerDiagramModel().getDiagramModel().getArchitectureVersion();
}
示例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");
}
}