From: SourceForge.net <no...@so...> - 2008-05-12 13:11:00
|
Bugs item #1962329, was opened at 2008-05-12 13:26 Message generated for change (Comment added) made by eraonel You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=460297&aid=1962329&group_id=50595 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Filip Gustafsson (qfilgus) Assigned to: Nobody/Anonymous (nobody) Summary: Automatically checkout resources if necessary Initial Comment: Hello "Automatically checkout resources if necessary" -> "prompt" is not =3D20 implemented? Should I create a bugreport on the site? I have added a messagebox in =3D20 "net.sourceforge.eclipseccase.ClearcaseModificationHandler" in method =3D20 checkout at row 142. Maybe this package should not have UI access but =3D20 I did this anyway for now. I need to add "org.eclipse.jface" as =3D20 dependency plugin.xml. My version: // fail if not set to always if (!ClearcasePlugin.isCheckoutAutoAlways()) { MessageDialog checkoutQuestion = new MessageDialog(new Shell(), "Checkout", null, "Do you really want to checkout?", MessageDialog.QUESTION, new String[] "Yes", "No", "Cancel" }, 0); int returncode = checkoutQuestion.open(); if (returncode == 1) { //No StringBuffer message = new StringBuffer("No auto checkout performed for the following resources:\n"); for (int i = 0; i < files.length; i++) { IFile file = files[i]; message.append("\n\t" + file.getFullPath()); } return new Status(IStatus.ERROR, ClearcaseProvider.ID, TeamException.NOT_CHECKED_OUT, message.toString(), null); } else if(returncode == 2) { //Cancel return CANCEL; } } I also attached the complete file. ---------------------------------------------------------------------- >Comment By: Mikael Petterson (eraonel) Date: 2008-05-12 15:10 Message: Logged In: YES user_id=102780 Originator: NO Hi, Which version of the eclipse clearcase plugin did you test this on? What version of Eclipse are you using? cheers, //mike ---------------------------------------------------------------------- Comment By: Mikael Petterson (eraonel) Date: 2008-05-12 13:32 Message: Logged In: YES user_id=102780 Originator: NO Hi, Which version of the eclipse clearcase plugin did you test this on? What version of Eclipse are you using? cheers, //mike ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=460297&aid=1962329&group_id=50595 |