Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 161457 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java (-3 / +9 lines)
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:
(-)src/org/eclipse/mylyn/internal/bugzilla/core/IBugzillaConstants.java (-4 lines)
Lines 227-236 Link Here
227
		UNCONFIRMED, NEW, ASSIGNED, REOPENED, RESOLVED, VERIFIED, CLOSED, SCHEDULED;
227
		UNCONFIRMED, NEW, ASSIGNED, REOPENED, RESOLVED, VERIFIED, CLOSED, SCHEDULED;
228
	}
228
	}
229
229
230
	public static enum BUGZILLA_RESOLUTION {
231
		FIXED, INVALID, WONTFIX, LATER, REMIND, WORKSFORME;
232
	}
233
234
	public static final String ERROR_MSG_OP_NOT_PERMITTED = "The requested operation is not permitted.";
230
	public static final String ERROR_MSG_OP_NOT_PERMITTED = "The requested operation is not permitted.";
235
231
236
	public static final String ERROR_MSG_INVALID_BUG_ID = "Invalid bug id. The requested bug id does not exist.";
232
	public static final String ERROR_MSG_INVALID_BUG_ID = "Invalid bug id. The requested bug id does not exist.";
(-).refactorings/2007/8/34/refactorings.index (+3 lines)
Added Link Here
1
1187815634230	Rename local variable 'repURL'
2
1187815708926	Rename local variable 'resList'
3
1187816102320	Rename local variable 'vv'
(-).refactorings/2007/8/34/refactorings.history (+6 lines)
Added Link Here
1
<?xml version="1.0" encoding="utf-8"?>
2
<session version="1.0">
3
<refactoring comment="Rename local variable 'repURL' in 'org.eclipse.mylyn.internal.bugzilla.core.BugzillaTaskDataHandler.addOperation(...)' to 'repositoryUrl'&#10;- Original project: 'org.eclipse.mylyn.bugzilla.core'&#10;- Original element: 'org.eclipse.mylyn.internal.bugzilla.core.BugzillaTaskDataHandler.addOperation(RepositoryTaskData, BUGZILLA_OPERATION, String).repURL'&#10;- Renamed element: 'org.eclipse.mylyn.internal.bugzilla.core.BugzillaTaskDataHandler.addOperation(RepositoryTaskData, BUGZILLA_OPERATION, String).repositoryUrl'&#10;- Update references to refactored element" description="Rename local variable 'repURL'" id="org.eclipse.jdt.ui.rename.local.variable" input="/src&lt;org.eclipse.mylyn.internal.bugzilla.core{BugzillaTaskDataHandler.java" name="repositoryUrl" references="true" selection="9163 6" stamp="1187815634230" version="1.0"/>
4
<refactoring comment="Rename local variable 'resList' in 'org.eclipse.mylyn.internal.bugzilla.core.BugzillaTaskDataHandler.addOperation(...)' to 'resolutionList'&#10;- Original project: 'org.eclipse.mylyn.bugzilla.core'&#10;- Original element: 'org.eclipse.mylyn.internal.bugzilla.core.BugzillaTaskDataHandler.addOperation(RepositoryTaskData, BUGZILLA_OPERATION, String).resList'&#10;- Renamed element: 'org.eclipse.mylyn.internal.bugzilla.core.BugzillaTaskDataHandler.addOperation(RepositoryTaskData, BUGZILLA_OPERATION, String).resolutionList'&#10;- Update references to refactored element" description="Rename local variable 'resList'" id="org.eclipse.jdt.ui.rename.local.variable" input="/src&lt;org.eclipse.mylyn.internal.bugzilla.core{BugzillaTaskDataHandler.java" name="resolutionList" references="true" selection="9339 7" stamp="1187815708926" version="1.0"/>
5
<refactoring comment="Rename local variable 'vv' in 'org.eclipse.mylyn.internal.bugzilla.core.BugzillaTaskDataHandler.addOperation(...)' to 'resolutionString'&#10;- Original project: 'org.eclipse.mylyn.bugzilla.core'&#10;- Original element: 'org.eclipse.mylyn.internal.bugzilla.core.BugzillaTaskDataHandler.addOperation(RepositoryTaskData, BUGZILLA_OPERATION, String).vv'&#10;- Renamed element: 'org.eclipse.mylyn.internal.bugzilla.core.BugzillaTaskDataHandler.addOperation(RepositoryTaskData, BUGZILLA_OPERATION, String).resolutionString'&#10;- Update references to refactored element" description="Rename local variable 'vv'" id="org.eclipse.jdt.ui.rename.local.variable" input="/src&lt;org.eclipse.mylyn.internal.bugzilla.core{BugzillaTaskDataHandler.java" name="resolutionString" references="true" selection="9488 2" stamp="1187816102320" version="1.0"/>
6
</session>

Return to bug 161457