~bzr-eclipse/bzr-eclipse/trunk

« back to all changes in this revision

Viewing changes to org.vcs.bazaar.eclipse.ui/src/org/vcs/bazaar/eclipse/ui/actions/WorkbenchAction.java

  • Committer: Piotr Piastucki
  • Date: 2013-09-26 12:31:48 UTC
  • mfrom: (366.1.3 bzr-eclipse-pp)
  • Revision ID: piotr_piastucki-20130926123148-v182l4l2kfzkxqst
MergeĀ lp:~piastucki/bzr-eclipse/branch-location-manager

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
import org.vcs.bazaar.eclipse.core.model.IBzrResourceStatus;
24
24
import org.vcs.bazaar.eclipse.core.model.local.IBzrLocalResource;
25
25
import org.vcs.bazaar.eclipse.core.repository.BranchFactory;
26
 
import org.vcs.bazaar.eclipse.core.repository.BranchLocationManager;
27
26
import org.vcs.bazaar.eclipse.internal.core.BazaarException;
28
27
import org.vcs.bazaar.eclipse.internal.core.model.LocalBranch;
29
28
import org.vcs.bazaar.eclipse.ui.UITexts;
 
29
import org.vcs.bazaar.eclipse.ui.branch.BranchLocationManager;
30
30
 
31
31
/**
32
32
 * <p>
83
83
 
84
84
        protected Collection<IBzrBranch> getAllSavedBranches() throws BazaarException {
85
85
                Set<IBzrBranch> locations = new TreeSet<IBzrBranch>();
86
 
                for (IBzrBranch branch : BranchLocationManager.getInstance().getAllBranches()) {
 
86
                for (IBzrBranch branch : BranchLocationManager.getAllBranches()) {
87
87
                        if (branch != null && branch.getBranchLocation() != null)
88
88
                                locations.add(branch);
89
89
                }