Package org.openquark.cal.services

Examples of org.openquark.cal.services.RevisionHistory


     * @param selectedRevision the revision to select when the dialog is displayed, or -1 to select the first item.
     * @return the selected revision, or null if the dialog was cancelled.
     */
    public Integer showDialog(String resourceName, int selectedRevision) {
       
        RevisionHistory revisionHistory = isModuleChooser ? vault.getModuleRevisionHistory(ModuleName.make(resourceName)) :
                                                            vault.getWorkspaceDeclarationRevisionHistory(resourceName);
        int[] availableRevisions = revisionHistory.getAvailableRevisions();

        // Construct a set of available revisions.
        Set<Integer> availableRevisionSet = new TreeSet<Integer>();
        for (final int revision : availableRevisions) {
            availableRevisionSet.add(Integer.valueOf(revision));
View Full Code Here


                moduleRevisions[i] = new DeployWorkspaceDialog.ModuleRevisionInfo(moduleName, latestIdenticalRevision, false);
                moduleNameToExistingRevisionMap.put(moduleName, new Integer(latestIdenticalRevision));
           
            } else {
                // We must deploy a new revision of the module.
                RevisionHistory revisionHistory = vault.getModuleRevisionHistory(moduleName);
                int latestRevision = revisionHistory.getLatestRevision();
                int revisionToDeploy = (latestRevision < 0) ? 1 : latestRevision + 1;
                moduleRevisions[i] = new DeployWorkspaceDialog.ModuleRevisionInfo(moduleName, revisionToDeploy, true);
            }
        }
       
View Full Code Here

TOP

Related Classes of org.openquark.cal.services.RevisionHistory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.