Summary: | [api] IProgressMonitor not last parameter | ||
---|---|---|---|
Product: | [Tools] Target Management | Reporter: | Kevin Doyle <kjdoyle> |
Component: | RSE | Assignee: | Martin Oberhuber <mober.at+eclipse> |
Status: | RESOLVED INVALID | QA Contact: | Martin Oberhuber <mober.at+eclipse> |
Severity: | minor | ||
Priority: | P3 | CC: | dmcknigh |
Version: | 2.0.1 | Keywords: | api |
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Kevin Doyle
2007-11-29 11:40:05 EST
Some additional ones: RSEFileStoreImpl.getRemoteFileObject(IProgressMonitor, boolean) Mutex.waitForLock(IProgressMonitor, long) SftpFileService.progressWorked(IProgressMonitor, int) SystemTableViewPart.RestoreStateRunnable.runOnceConnected(IProgressMonitor, IMemento, Object, ISubSystem, String, String) SystemTableViewPart.RestoreStateRunnable.runWithInput(IProgressMonitor, Object, IMemento) Policy.subMonitorFor(IProgressMonitor, int) Policy.subMonitorFor(IProgressMonitor, int, int) In case of ISubSystem#connect(IProgressMonitor, boolean), it is intentional to have the progress monitor first such that there is always a difference against ISubSystem#connect(boolean, IRSECallback) Imagine a class that happens to implement both IRSECallback and IProgressMonitor. Or, imagine passing in <code>null</code> as IProgressMonitor. ISubSystem#connect(boolean, IProgressMonitor) would make the call ambiguous. The other examples are mostly not API so we can change them if we want, but I do not see any immediate need to do so. Partially, the main "item of interest" for the methods is the IProgressMonitor (such as in Mutex#waitForLock or SftpFileService#progressWorked), so it is natural to have the IProgressMonitor first. I do not see sufficient benefit in changing the current method signatures. |