|
Lines 10-15
Link Here
|
| 10 |
|
10 |
|
| 11 |
import java.io.IOException; |
11 |
import java.io.IOException; |
| 12 |
import java.util.HashSet; |
12 |
import java.util.HashSet; |
|
|
13 |
import java.util.Iterator; |
| 14 |
import java.util.List; |
| 13 |
import java.util.Map; |
15 |
import java.util.Map; |
| 14 |
import java.util.Set; |
16 |
import java.util.Set; |
| 15 |
|
17 |
|
|
Lines 18-24
Link Here
|
| 18 |
import org.eclipse.core.runtime.IStatus; |
20 |
import org.eclipse.core.runtime.IStatus; |
| 19 |
import org.eclipse.mylyn.internal.bugzilla.core.IBugzillaConstants.BUGZILLA_OPERATION; |
21 |
import org.eclipse.mylyn.internal.bugzilla.core.IBugzillaConstants.BUGZILLA_OPERATION; |
| 20 |
import org.eclipse.mylyn.internal.bugzilla.core.IBugzillaConstants.BUGZILLA_REPORT_STATUS; |
22 |
import org.eclipse.mylyn.internal.bugzilla.core.IBugzillaConstants.BUGZILLA_REPORT_STATUS; |
| 21 |
import org.eclipse.mylyn.internal.bugzilla.core.IBugzillaConstants.BUGZILLA_RESOLUTION; |
|
|
| 22 |
import org.eclipse.mylyn.monitor.core.StatusHandler; |
23 |
import org.eclipse.mylyn.monitor.core.StatusHandler; |
| 23 |
import org.eclipse.mylyn.tasks.core.AbstractAttributeFactory; |
24 |
import org.eclipse.mylyn.tasks.core.AbstractAttributeFactory; |
| 24 |
import org.eclipse.mylyn.tasks.core.AbstractTaskDataHandler; |
25 |
import org.eclipse.mylyn.tasks.core.AbstractTaskDataHandler; |
|
Lines 239-246
Link Here
|
| 239 |
case resolve: |
240 |
case resolve: |
| 240 |
newOperation = new RepositoryOperation(opcode.toString(), OPERATION_LABEL_RESOLVE); |
241 |
newOperation = new RepositoryOperation(opcode.toString(), OPERATION_LABEL_RESOLVE); |
| 241 |
newOperation.setUpOptions(OPERATION_OPTION_RESOLUTION); |
242 |
newOperation.setUpOptions(OPERATION_OPTION_RESOLUTION); |
| 242 |
for (BUGZILLA_RESOLUTION resolution : BUGZILLA_RESOLUTION.values()) { |
243 |
String repositoryUrl = bugReport.getRepositoryUrl(); |
| 243 |
newOperation.addOption(resolution.toString(), resolution.toString()); |
244 |
RepositoryConfiguration repositoryConfiguration= BugzillaCorePlugin.getRepositoryConfiguration(repositoryUrl); |
|
|
245 |
List<String> resolutionList = repositoryConfiguration.getResolutions(); |
| 246 |
for (Iterator<String> lIter = resolutionList.iterator();lIter.hasNext();) { |
| 247 |
String resolutionString =lIter.next(); |
| 248 |
if (resolutionString.compareTo("DUPLICATE")!= 0) |
| 249 |
newOperation.addOption(resolutionString,resolutionString); |
| 244 |
} |
250 |
} |
| 245 |
break; |
251 |
break; |
| 246 |
case duplicate: |
252 |
case duplicate: |