Menu

#385 Checkout with UCM don't work

2.x
closed-fixed
nobody
UCM (2)
9
2015-05-29
2015-02-10
Hakim
No

Hi,

If you enable UCM option in preferences, Checkout dont't do anything.
The methode net.sourceforge.eclipseccase.ui.UcmActivity.ActivityDialogRunnable.run() doesn't seem to do the job.

public void run() {
            final IResource resource = resources[0];
            if (resource != null) {
                final String view = ClearCaseProvider.getViewName(resource);
                ActivityDialog dlg = new ActivityDialog(shell, provider, resource);
                dlg.setBlockOnOpen(true);
                if (dlg.open() == Window.OK) {

                    String activity = dlg.getSelectedActivity();
                    if (activity != null) {
                        provider.setActivity(activity, view);
                                                // >>> setCheckout(true) is not enough, no ?
                        setCheckout(true);
                    }

                } else {
                    // Answer was N or Cancel.
                    setCheckout(false);
                }

            }
            // resource null don't check-out.
            setCheckout(false);
        }

In attachement, I propose a simple correction.

Thanks
Hakim

1 Attachments

Discussion

  • Mikael Petterson

    Looks good. I will implement asap.

    //mike

     
  • Mikael Petterson

    Release in 2.2.37

     
  • Mikael Petterson

    • status: open --> closed-fixed
     

Log in to post a comment.