mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-14 20:45:22 +02:00
[216252] canceled --> cancelled in comments and locals
This commit is contained in:
parent
71fbaa7e47
commit
20598876f5
5 changed files with 109 additions and 105 deletions
|
@ -114,7 +114,7 @@ public class TelnetConnectorService extends StandardConnectorService implements
|
|||
return telnetSet;
|
||||
}
|
||||
|
||||
public static void checkCanceled(IProgressMonitor monitor) {
|
||||
public static void checkCancelled(IProgressMonitor monitor) {
|
||||
if (monitor.isCanceled())
|
||||
throw new OperationCanceledException();
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ package org.eclipse.rse.services.clientserver;
|
|||
|
||||
public class SystemOperationMonitor implements ISystemOperationMonitor
|
||||
{
|
||||
private boolean canceled = false;
|
||||
private boolean cancelled = false;
|
||||
private boolean done = false;
|
||||
|
||||
|
||||
|
@ -31,13 +31,13 @@ public class SystemOperationMonitor implements ISystemOperationMonitor
|
|||
|
||||
public boolean isCancelled()
|
||||
{
|
||||
return canceled;
|
||||
return cancelled;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void setCancelled(boolean value)
|
||||
{
|
||||
canceled = value;
|
||||
cancelled = value;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1199,8 +1199,8 @@ public class SystemZipHandler implements ISystemArchiveHandler
|
|||
// if it is an empty zip file, no need to recreate it
|
||||
if (!(vcList.length == 1) || !vcList[0].fullName.equals("")) //$NON-NLS-1$
|
||||
{
|
||||
boolean isCanceled = recreateZipDeleteEntries(vcList, dest, null, archiveOperationMonitor);
|
||||
if (isCanceled)
|
||||
boolean isCancelled = recreateZipDeleteEntries(vcList, dest, null, archiveOperationMonitor);
|
||||
if (isCancelled)
|
||||
{
|
||||
dest.close();
|
||||
if (!(outputTempFile == null)) outputTempFile.delete();
|
||||
|
@ -1319,8 +1319,8 @@ public class SystemZipHandler implements ISystemArchiveHandler
|
|||
// if it is an empty zip file, no need to recreate it
|
||||
if (!(vcList.length == 1) || !vcList[0].fullName.equals("")) //$NON-NLS-1$
|
||||
{
|
||||
boolean isCanceled = recreateZipDeleteEntries(vcList, dest, null, archiveOperationMonitor);
|
||||
if (isCanceled)
|
||||
boolean isCancelled = recreateZipDeleteEntries(vcList, dest, null, archiveOperationMonitor);
|
||||
if (isCancelled)
|
||||
{
|
||||
dest.close();
|
||||
if (!(outputTempFile == null))
|
||||
|
@ -1751,8 +1751,8 @@ public class SystemZipHandler implements ISystemArchiveHandler
|
|||
}
|
||||
|
||||
// recreate the zip file without the omissions
|
||||
boolean isCanceled = recreateZipDeleteEntries(vcList, dest, omissions, archiveOperationMonitor);
|
||||
if (isCanceled)
|
||||
boolean isCancelled = recreateZipDeleteEntries(vcList, dest, omissions, archiveOperationMonitor);
|
||||
if (isCancelled)
|
||||
{
|
||||
dest.close();
|
||||
if (!(outputTempFile == null)) outputTempFile.delete();
|
||||
|
@ -1855,8 +1855,8 @@ public class SystemZipHandler implements ISystemArchiveHandler
|
|||
HashSet omissions = new HashSet();
|
||||
omissions.add(fullVirtualName);
|
||||
|
||||
boolean isCanceled = recreateZipDeleteEntries(vcList, dest, omissions, archiveOperationMonitor);
|
||||
if (isCanceled)
|
||||
boolean isCancelled = recreateZipDeleteEntries(vcList, dest, omissions, archiveOperationMonitor);
|
||||
if (isCancelled)
|
||||
{
|
||||
dest.close();
|
||||
if (!(outputTempFile == null)) outputTempFile.delete();
|
||||
|
@ -1932,8 +1932,8 @@ public class SystemZipHandler implements ISystemArchiveHandler
|
|||
VirtualChild[] vcList = getVirtualChildrenList(false, archiveOperationMonitor);
|
||||
HashSet omissions = new HashSet();
|
||||
omissions.add(fullVirtualName);
|
||||
boolean isCanceled = recreateZipDeleteEntries(vcList, dest, omissions, archiveOperationMonitor);
|
||||
if (isCanceled)
|
||||
boolean isCancelled = recreateZipDeleteEntries(vcList, dest, omissions, archiveOperationMonitor);
|
||||
if (isCancelled)
|
||||
{
|
||||
dest.close();
|
||||
if (!(outputTempFile == null)) outputTempFile.delete();
|
||||
|
@ -2054,11 +2054,11 @@ public class SystemZipHandler implements ISystemArchiveHandler
|
|||
newOldNames.put(newFullVirtualName, fullVirtualName);
|
||||
}
|
||||
// find the entry to rename and rename it
|
||||
boolean isCanceled = recreateZipRenameEntries(vcList, dest, oldNewNames, archiveOperationMonitor);
|
||||
boolean isCancelled = recreateZipRenameEntries(vcList, dest, oldNewNames, archiveOperationMonitor);
|
||||
|
||||
dest.close();
|
||||
|
||||
if (isCanceled)
|
||||
if (isCancelled)
|
||||
{
|
||||
if (!(outputTempFile == null)) outputTempFile.delete();
|
||||
if (closeZipFile) closeZipFile();
|
||||
|
@ -2228,8 +2228,8 @@ public class SystemZipHandler implements ISystemArchiveHandler
|
|||
// if it is an empty zip file, no need to recreate it
|
||||
if (!(vcList.length == 1) || !vcList[0].fullName.equals("")) //$NON-NLS-1$
|
||||
{
|
||||
boolean isCanceled = recreateZipDeleteEntries(vcList, dest, null, archiveOperationMonitor);
|
||||
if (isCanceled)
|
||||
boolean isCancelled = recreateZipDeleteEntries(vcList, dest, null, archiveOperationMonitor);
|
||||
if (isCancelled)
|
||||
{
|
||||
dest.close();
|
||||
if (!(outputTempFile == null)) outputTempFile.delete();
|
||||
|
@ -2752,8 +2752,8 @@ public class SystemZipHandler implements ISystemArchiveHandler
|
|||
{
|
||||
//String sourceName = name;
|
||||
HashSet children = new HashSet();
|
||||
boolean isCanceled = listAllFiles(file, children, archiveOperationMonitor);
|
||||
if (isCanceled)
|
||||
boolean isCancelled = listAllFiles(file, children, archiveOperationMonitor);
|
||||
if (isCancelled)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -2840,8 +2840,8 @@ public class SystemZipHandler implements ISystemArchiveHandler
|
|||
else
|
||||
{
|
||||
HashSet children = new HashSet();
|
||||
boolean isCanceled = listAllFiles(file, children, archiveOperationMonitor);
|
||||
if (isCanceled)
|
||||
boolean isCancelled = listAllFiles(file, children, archiveOperationMonitor);
|
||||
if (isCancelled)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -159,7 +159,7 @@ public class SystemFetchOperation extends JobChangeAdapter implements IRunnableW
|
|||
public class PromptForPassword implements Runnable
|
||||
{
|
||||
public SubSystem _ss;
|
||||
private boolean isCanceled = false;
|
||||
private boolean isCancelled = false;
|
||||
public PromptForPassword(SubSystem ss)
|
||||
{
|
||||
_ss = ss;
|
||||
|
@ -169,11 +169,11 @@ public class SystemFetchOperation extends JobChangeAdapter implements IRunnableW
|
|||
{
|
||||
try
|
||||
{
|
||||
isCanceled = false;
|
||||
isCancelled = false;
|
||||
_ss.promptForPassword();
|
||||
}
|
||||
catch (InterruptedException e) {
|
||||
isCanceled = true;
|
||||
isCancelled = true;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
@ -181,8 +181,12 @@ public class SystemFetchOperation extends JobChangeAdapter implements IRunnableW
|
|||
}
|
||||
}
|
||||
|
||||
public boolean isCanceled() {
|
||||
return isCanceled;
|
||||
/**
|
||||
* @since org.eclipse.rse.ui 3.0 renamed from isCanceled to isCancelled
|
||||
* @return true if cancelled
|
||||
*/
|
||||
public boolean isCancelled() {
|
||||
return isCancelled;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -233,10 +237,10 @@ public class SystemFetchOperation extends JobChangeAdapter implements IRunnableW
|
|||
Display dis = Display.getDefault();
|
||||
PromptForPassword prompter = new PromptForPassword(ss);
|
||||
dis.syncExec(prompter);
|
||||
if (prompter.isCanceled()) {
|
||||
SystemMessage canceledMessage = RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_EXPAND_CANCELLED);
|
||||
SystemMessageObject canceledMessageObject = new SystemMessageObject(canceledMessage, ISystemMessageObject.MSGTYPE_CANCEL, _remoteObject);
|
||||
_collector.add(canceledMessageObject, monitor);
|
||||
if (prompter.isCancelled()) {
|
||||
SystemMessage cancelledMessage = RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_EXPAND_CANCELLED);
|
||||
SystemMessageObject cancelledMessageObject = new SystemMessageObject(cancelledMessage, ISystemMessageObject.MSGTYPE_CANCEL, _remoteObject);
|
||||
_collector.add(cancelledMessageObject, monitor);
|
||||
throw new InterruptedException();
|
||||
}
|
||||
try
|
||||
|
|
|
@ -63,13 +63,13 @@ public class StandardCredentialsProvider extends AbstractCredentialsProvider {
|
|||
* A runnable that will actually perform the prompting.
|
||||
*/
|
||||
private class PromptForCredentials implements Runnable {
|
||||
private boolean canceled = false;
|
||||
private boolean cancelled = false;
|
||||
|
||||
/**
|
||||
* @return true if prompting was cancelled.
|
||||
*/
|
||||
public boolean isCanceled() {
|
||||
return canceled;
|
||||
public boolean isCancelled() {
|
||||
return cancelled;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
@ -95,15 +95,15 @@ public class StandardCredentialsProvider extends AbstractCredentialsProvider {
|
|||
} catch (Exception e) {
|
||||
logException(e);
|
||||
}
|
||||
canceled = dialog.wasCancelled();
|
||||
if (!canceled) {
|
||||
cancelled = dialog.wasCancelled();
|
||||
if (!cancelled) {
|
||||
userId = dialog.getUserId();
|
||||
password = dialog.getPassword();
|
||||
saveUserId = dialog.getIsUserIdChangePermanent();
|
||||
savePassword = dialog.getIsSavePassword();
|
||||
}
|
||||
} else {
|
||||
canceled = true;
|
||||
cancelled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -114,14 +114,14 @@ public class StandardCredentialsProvider extends AbstractCredentialsProvider {
|
|||
*/
|
||||
private class PromptForNewPassword implements Runnable {
|
||||
private SystemMessage message;
|
||||
private boolean canceled = false;
|
||||
private boolean cancelled = false;
|
||||
|
||||
public PromptForNewPassword(SystemMessage message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public boolean isCancelled() {
|
||||
return canceled;
|
||||
return cancelled;
|
||||
}
|
||||
|
||||
public void run() {
|
||||
|
@ -130,13 +130,13 @@ public class StandardCredentialsProvider extends AbstractCredentialsProvider {
|
|||
SystemChangePasswordDialog dlg = new SystemChangePasswordDialog(shell, getConnectorService().getHostName(), getUserId(), message);
|
||||
dlg.setSavePassword(savePassword);
|
||||
dlg.open();
|
||||
canceled = dlg.wasCancelled();
|
||||
if (!canceled) {
|
||||
cancelled = dlg.wasCancelled();
|
||||
if (!cancelled) {
|
||||
password = dlg.getNewPassword();
|
||||
savePassword = dlg.getIsSavePassword();
|
||||
}
|
||||
} else {
|
||||
canceled = true;
|
||||
cancelled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -398,7 +398,7 @@ public class StandardCredentialsProvider extends AbstractCredentialsProvider {
|
|||
private void promptForCredentials() throws OperationCanceledException {
|
||||
PromptForCredentials runnable = new PromptForCredentials();
|
||||
Display.getDefault().syncExec(runnable);
|
||||
if (runnable.isCanceled()) {
|
||||
if (runnable.isCancelled()) {
|
||||
throw new OperationCanceledException();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue