1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-14 20:45:22 +02:00

[216252][api][breaking] Rename canceledObject -> cancelledObject

This commit is contained in:
Martin Oberhuber 2008-04-17 10:03:00 +00:00
parent 8a9b6c2e00
commit 05b8a3f991
3 changed files with 486 additions and 407 deletions

View file

@ -580,7 +580,7 @@ public class SystemSelectRemoteObjectAPIProviderImpl
children = subsystem.resolveFilterString(filterString, new NullProgressMonitor()); children = subsystem.resolveFilterString(filterString, new NullProgressMonitor());
} catch (InterruptedException exc) } catch (InterruptedException exc)
{ {
if (canceledObject == null) if (cancelledObject == null)
children = getCancelledMessageObject(); children = getCancelledMessageObject();
} catch (Exception exc) } catch (Exception exc)
{ {

View file

@ -111,7 +111,7 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
//protected boolean isEditable = false; //protected boolean isEditable = false;
protected String filterString = null; private String filterString = null;
/** /**
* Current viewer. Set by content provider * Current viewer. Set by content provider
@ -138,21 +138,30 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
*/ */
protected Object[] emptyList = new Object[0]; protected Object[] emptyList = new Object[0];
/** /**
* For returning a msg object from getChildren. Will be an array with one item, * For returning a message object from getChildren. Will be an array with
* one of nullObject, canceledObject or errorObject * one item, one of nullObject, cancelledObject or errorObject
*/ */
protected Object[] msgList = new Object[1]; protected Object[] msgList = new Object[1];
/** /**
* Frequently returned msg object from getChildren: "empty list" * Frequently returned message object from getChildren: "empty list"
* @deprecated Use {@link #checkForEmptyList(Object[], Object, boolean)} instead. *
* @deprecated Use {@link #checkForEmptyList(Object[], Object, boolean)}
* instead.
*/ */
protected SystemMessageObject nullObject = null; protected SystemMessageObject nullObject = null;
/** /**
* Frequently returned msg object from getChildren: "operation cancelled" * Frequently returned message object from getChildren: "operation
* cancelled"
*
* @since org.eclipse.rse.ui 3.0 renamed from canceledObject
* @deprecated don't use this field.
*/ */
protected SystemMessageObject canceledObject = null; protected SystemMessageObject cancelledObject = null;
/** /**
* Frequently returned msg object from getChildren: "operation ended in error" * Frequently returned message object from getChildren: "operation ended in
* error"
*
* @deprecated don't use this field.
*/ */
protected SystemMessageObject errorObject = null; protected SystemMessageObject errorObject = null;
@ -209,28 +218,31 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
// ------------------------------------------------------------------ // ------------------------------------------------------------------
/** /**
* <i>Configuration method. Typically called by content provider, viewer or action. Do not override.</i><br> * <i>Configuration method. Typically called by content provider, viewer or
* Set the viewer that is driving this adapter * action. Do not override.</i><br>
* Called by label and content provider. * Set the viewer that is driving this adapter Called by label and content
*/ * provider.
*/
public final void setViewer(Viewer viewer) public final void setViewer(Viewer viewer)
{ {
this.viewer = viewer; this.viewer = viewer;
} }
/** /**
* <i>Configuration method. Typically called by content provider, viewer or action. Do not override.</i><br> * <i>Configuration method. Typically called by content provider, viewer or
* Set the shell to be used by any method that requires it. * action. Do not override.</i><br>
*/ * Set the shell to be used by any method that requires it.
*/
public final void setShell(Shell shell) public final void setShell(Shell shell)
{ {
this.shell = shell; this.shell = shell;
} }
/** /**
* <i>Configuration method. Typically called by content provider, viewer or action. Do not override.</i><br> * <i>Configuration method. Typically called by content provider, viewer or
* Set the input object used to populate the viewer with the roots. * action. Do not override.</i><br>
* May be used by an adapter to retrieve context-sensitive information. * Set the input object used to populate the viewer with the roots. May be
* This is set by the Label and Content providers that retrieve this adapter. * used by an adapter to retrieve context-sensitive information. This is set
*/ * by the Label and Content providers that retrieve this adapter.
*/
public final void setInput(ISystemViewInputProvider input) public final void setInput(ISystemViewInputProvider input)
{ {
this.input = input; this.input = input;
@ -241,9 +253,11 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
// ------------------------------------------------------------------ // ------------------------------------------------------------------
/** /**
* <i>Getter method. Callable by subclasses. Do not override.</i><br> * <i>Getter method. Callable by subclasses. Do not override.</i><br>
* Get the shell currently hosting the objects in this adapter * Get the shell currently hosting the objects in this adapter
*/ *
* @noextend This method is not intended to be extended by clients.
*/
public Shell getShell() public Shell getShell()
{ {
if (shell == null || shell.isDisposed() || !shell.isVisible() || !shell.isEnabled()) if (shell == null || shell.isDisposed() || !shell.isVisible() || !shell.isEnabled())
@ -265,9 +279,11 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
return shell; return shell;
} }
/** /**
* <i>Getter method. Callable by subclasses. Do not override.</i><br> * <i>Getter method. Callable by subclasses. Do not override.</i><br>
* Return the current viewer, as set via setViewer or its deduced from the * Return the current viewer, as set via setViewer or its deduced from the
* setInput input object if set. May be null so test it. * setInput input object if set. May be null so test it.
*
* @noextend This method is not intended to be extended by clients.
*/ */
public Viewer getViewer() public Viewer getViewer()
{ {
@ -291,8 +307,11 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
return viewer; return viewer;
} }
/** /**
* <i>Getter method. Callable by subclasses. Do not override.</i><br> * <i>Getter method. Callable by subclasses. Do not override.</i><br>
* Return the current viewer as an ISystemTree if it is one, or null otherwise * Return the current viewer as an ISystemTree if it is one, or null
* otherwise
*
* @noextend This method is not intended to be extended by clients.
*/ */
protected ISystemTree getCurrentTreeView() protected ISystemTree getCurrentTreeView()
{ {
@ -304,10 +323,12 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
} }
/** /**
* <i>Getter method. Callable by subclasses. Do not override.</i><br> * <i>Getter method. Callable by subclasses. Do not override.</i><br>
* Get the input object used to populate the viewer with the roots. * Get the input object used to populate the viewer with the roots. May be
* May be used by an adapter to retrieve context-sensitive information. * used by an adapter to retrieve context-sensitive information.
*/ *
* @noextend This method is not intended to be extended by clients.
*/
public ISystemViewInputProvider getInput() public ISystemViewInputProvider getInput()
{ {
return input; return input;
@ -667,15 +688,19 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
/** /**
* <i>Callable by subclasses. Do not override.</i><br> * <i>Callable by subclasses. Do not override.</i><br>
* Returns the list of property descriptors that are unique for this * Returns the list of property descriptors that are unique for this
* particular adapter - that is the difference between the default * particular adapter - that is the difference between the default property
* property descriptors and the total list of property descriptors. * descriptors and the total list of property descriptors.
* <p> * <p>
* If internalGetPropertyDescriptors() returns non-null, then returns that, * If internalGetPropertyDescriptors() returns non-null, then returns that,
* else computes the difference. * else computes the difference.
* <p> * <p>
* This is called by the table views like {@link org.eclipse.rse.ui.view.SystemTableView}. * This is called by the table views like
* {@link org.eclipse.rse.ui.view.SystemTableView}.
* </p>
*
* @noextend This method is not intended to be extended by clients.
*/ */
public IPropertyDescriptor[] getUniquePropertyDescriptors() public IPropertyDescriptor[] getUniquePropertyDescriptors()
{ {
@ -892,9 +917,11 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
} }
/** /**
* <i>Called from adapter factories. Do not override.</i><br> * <i>Called from adapter factories. Do not override.</i><br>
* Set input object for property source queries. This <b>must</b> be called by your * Set input object for property source queries. This <b>must</b> be called
* XXXAdaptorFactory before returning this adapter object. * by your XXXAdaptorFactory before returning this adapter object.
*
* @noextend This method is not intended to be extended by clients.
*/ */
public void setPropertySourceInput(Object propertySourceInput) public void setPropertySourceInput(Object propertySourceInput)
{ {
@ -940,10 +967,12 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
} }
/** /**
* <i><b>Overridable</b> by subclasses, and usually is.</i><br> * <i><b>Overridable</b> by subclasses, and usually is.</i><br>
* Perform the delete action. By default does nothing. Override if your object is deletable. * Perform the delete action. By default does nothing. Override if your
* Return true if this was successful. Return false if it failed and you issued a msg. * object is deletable. Return true if this was successful. Return false if
* Throw an exception if it failed and you want to use the generic msg. * it failed and you issued a message. Throw an exception if it failed and
* you want to use the generic message.
*
* @see #showDelete(Object) * @see #showDelete(Object)
* @see #canDelete(Object) * @see #canDelete(Object)
*/ */
@ -953,11 +982,12 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
} }
/** /**
* <i><b>Overridable</b> by subclasses, and usually is.</i><br> * <i><b>Overridable</b> by subclasses, and usually is.</i><br>
* Perform the delete action. By default just calls the doDelete method for each item in the resourceSet. * Perform the delete action. By default just calls the doDelete method for
* Override if you wish to perform some sort of optimization for the batch delete. * each item in the resourceSet. Override if you wish to perform some sort
* Return true if this was successful. Return false if ANY delete op failed and a msg was issued. * of optimization for the batch delete. Return true if this was successful.
* Throw an exception if ANY failed and you want to use the generic msg. * Return false if ANY delete op failed and a message was issued. Throw an
* exception if ANY failed and you want to use the generic message.
*/ */
public boolean doDeleteBatch(Shell shell, List resourceSet, IProgressMonitor monitor) throws Exception public boolean doDeleteBatch(Shell shell, List resourceSet, IProgressMonitor monitor) throws Exception
{ {
@ -1005,10 +1035,12 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
} }
/** /**
* <i><b>Overridable</b> by subclasses, and usually is.</i><br> * <i><b>Overridable</b> by subclasses, and usually is.</i><br>
* Perform the rename action. By default does nothing. Override if your object is renamable. * Perform the rename action. By default does nothing. Override if your
* Return true if this was successful. Return false if it failed and you issued a msg. * object is renamable. Return true if this was successful. Return false if
* Throw an exception if it failed and you want to use the generic msg. * it failed and you issued a message. Throw an exception if it failed and
* you want to use the generic message.
*
* @return true if the rename was successful * @return true if the rename was successful
* @see #showRename(Object) * @see #showRename(Object)
* @see #canRename(Object) * @see #canRename(Object)
@ -1763,9 +1795,11 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
} }
/** /**
* <i>Callable by subclasses. Do not override</i><br> * <i>Callable by subclasses. Do not override.</i><br>
* Return the current viewer as an ISystemTree if the viewer is set and * Return the current viewer as an ISystemTree if the viewer is set and it
* it implements this interface (SystemView does). May be null so test it. * implements this interface (SystemView does). May be null so test it.
*
* @noextend This method is not intended to be extended by clients.
*/ */
protected ISystemTree getSystemTree() protected ISystemTree getSystemTree()
{ {
@ -1777,8 +1811,10 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
} }
/** /**
* <i>Callable by subclasses. Do not override</i><br> * <i>Callable by subclasses. Do not override</i><br>
* Return "Yes" translated * Return "Yes" translated
*
* @noextend This method is not intended to be extended by clients.
*/ */
public String getTranslatedYes() public String getTranslatedYes()
{ {
@ -1788,8 +1824,10 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
} }
/** /**
* <i>Callable by subclasses. Do not override</i><br> * <i>Callable by subclasses. Do not override.</i><br>
* Return "No" translated * Return "No" translated
*
* @noextend This method is not intended to be extended by clients.
*/ */
protected String getTranslatedNo() protected String getTranslatedNo()
{ {
@ -1799,8 +1837,10 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
} }
/** /**
* <i>Callable by subclasses. Do not override</i><br> * <i>Callable by subclasses. Do not override.</i><br>
* Return "True" translated * Return "True" translated
*
* @noextend This method is not intended to be extended by clients.
*/ */
protected String getTranslatedTrue() protected String getTranslatedTrue()
{ {
@ -1809,8 +1849,10 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
return xlatedTrue; return xlatedTrue;
} }
/** /**
* <i>Callable by subclasses. Do not override</i><br> * <i>Callable by subclasses. Do not override.</i><br>
* Return "False" translated * Return "False" translated
*
* @noextend This method is not intended to be extended by clients.
*/ */
protected String getTranslatedFalse() protected String getTranslatedFalse()
{ {
@ -1819,8 +1861,10 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
return xlatedFalse; return xlatedFalse;
} }
/** /**
* <i>Callable by subclasses. Do not override</i><br> * <i>Callable by subclasses. Do not override.</i><br>
* Return "Not application" translated * Return "Not application" translated
*
* @noextend This method is not intended to be extended by clients.
*/ */
protected String getTranslatedNotApplicable() protected String getTranslatedNotApplicable()
{ {
@ -1829,8 +1873,10 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
return xlatedNotApplicable; return xlatedNotApplicable;
} }
/** /**
* <i>Callable by subclasses. Do not override</i><br> * <i>Callable by subclasses. Do not override.</i><br>
* Return "Not available" translated * Return "Not available" translated
*
* @noextend This method is not intended to be extended by clients.
*/ */
protected String getTranslatedNotAvailable() protected String getTranslatedNotAvailable()
{ {
@ -1840,26 +1886,30 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
} }
/** /**
* <i>Internal use. Do not override</i><br> * <i>Internal use. Do not override.</i>
*/ */
protected final void initMsgObjects() protected final void initMsgObjects()
{ {
nullObject = new SystemMessageObject(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_EXPAND_EMPTY),ISystemMessageObject.MSGTYPE_EMPTY, null); nullObject = new SystemMessageObject(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_EXPAND_EMPTY),ISystemMessageObject.MSGTYPE_EMPTY, null);
canceledObject = new SystemMessageObject(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_LIST_CANCELLED),ISystemMessageObject.MSGTYPE_CANCEL, null); cancelledObject = new SystemMessageObject(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_LIST_CANCELLED),ISystemMessageObject.MSGTYPE_CANCEL, null);
errorObject = new SystemMessageObject(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_EXPAND_FAILED),ISystemMessageObject.MSGTYPE_ERROR, null); errorObject = new SystemMessageObject(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_EXPAND_FAILED),ISystemMessageObject.MSGTYPE_ERROR, null);
} }
/** /**
* <i>Callable by subclasses. Do not override</i><br> * <i>Callable by subclasses. Do not override</i><br>
* In getChildren, return <samp>checkForEmptyList(children, parent, true/false)<.samp> * In getChildren, return <samp>checkForEmptyList(children, parent,
* versus your array directly. This method checks for a null array which is * true/false)<.samp> versus your array directly. This method checks for a
* not allowed and replaces it with an empty array. * null array which is not allowed and replaces it with an empty array. If
* If true is passed then it returns the "Empty list" message object if the array is null or empty * true is passed then it returns the "Empty list" message object if the
* array is null or empty
* *
* @param children The list of children. * @param children The list of children.
* @param parent The parent for the children. * @param parent The parent for the children.
* @param returnNullMsg <code>true</code> if an "Empty List" message should be returned. * @param returnNullMsg <code>true</code> if an "Empty List" message
* @return The list of children, a list with the "Empty List" message object or an empty list. * should be returned.
* @return The list of children, a list with the "Empty List" message object
* or an empty list.
* @noextend This method is not intended to be extended by clients.
*/ */
protected Object[] checkForEmptyList(Object[] children, Object parent, boolean returnNullMsg) { protected Object[] checkForEmptyList(Object[] children, Object parent, boolean returnNullMsg) {
if ((children == null) || (children.length == 0)) { if ((children == null) || (children.length == 0)) {
@ -1882,13 +1932,16 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
} }
/** /**
* <i>Callable by subclasses. Do not override</i><br> * <i>Callable by subclasses. Do not override.</i><br>
* In getChildren, return <samp>checkForNull(children, true/false)</samp> versus your array directly. * In getChildren, return <samp>checkForNull(children, true/false)</samp>
* This method checks for a null array which is not allowed and replaces it with an empty array. * versus your array directly. This method checks for a null array which is
* If true is passed then it returns the "Empty list" message object if the array is null or empty * not allowed and replaces it with an empty array. If true is passed then
* * it returns the "Empty list" message object if the array is null or empty
* @deprecated Use {@link #checkForEmptyList(Object[], Object, boolean)} instead. *
*/ * @deprecated Use {@link #checkForEmptyList(Object[], Object, boolean)}
* instead.
* @noextend This method is not intended to be extended by clients.
*/
protected Object[] checkForNull(Object[] children, boolean returnNullMsg) protected Object[] checkForNull(Object[] children, boolean returnNullMsg)
{ {
if ((children == null) || (children.length==0)) if ((children == null) || (children.length==0))
@ -1908,20 +1961,22 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
} }
/** /**
* <i>Callable by subclasses. Do not override</i><br> * <i>Callable by subclasses. Do not override.</i><br>
* Return the "Operation cancelled by user" msg as an object array so can be used to answer getChildren() * Return the "Operation cancelled by user" message as an object array so
*/ * can be used to answer getChildren()
*/
protected final Object[] getCancelledMessageObject() protected final Object[] getCancelledMessageObject()
{ {
if (canceledObject == null) if (cancelledObject == null)
initMsgObjects(); initMsgObjects();
msgList[0] = canceledObject; msgList[0] = cancelledObject;
return msgList; return msgList;
} }
/** /**
* <i>Callable by subclasses. Do not override</i><br> * <i>Callable by subclasses. Do not override.</i><br>
* Return the "Operation failed" msg as an object array so can be used to answer getChildren() * Return the "Operation failed" message as an object array so can be used
*/ * to answer getChildren()
*/
protected final Object[] getFailedMessageObject() protected final Object[] getFailedMessageObject()
{ {
if (errorObject == null) if (errorObject == null)
@ -1930,11 +1985,13 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
return msgList; return msgList;
} }
/** /**
* <i>Callable by subclasses. Do not override</i><br> * <i>Callable by subclasses. Do not override.</i><br>
* Return the "Empty list" msg as an object array so can be used to answer getChildren() * Return the "Empty list" message as an object array so can be used to
* * answer getChildren()
* @deprecated Use {@link #checkForEmptyList(Object[], Object, boolean)} instead. *
*/ * @deprecated Use {@link #checkForEmptyList(Object[], Object, boolean)}
* instead.
*/
protected final Object[] getEmptyMessageObject() protected final Object[] getEmptyMessageObject()
{ {
if (nullObject == null) if (nullObject == null)
@ -1944,9 +2001,11 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
} }
/** /**
* <i>Callable by subclasses. Do not override</i><br> * <i>Callable by subclasses. Do not override.</i><br>
* Get the first selected object of the given selection * Get the first selected object of the given selection
*/ *
* @noextend This method is not intended to be extended by clients.
*/
protected Object getFirstSelection(IStructuredSelection selection) protected Object getFirstSelection(IStructuredSelection selection)
{ {
return selection.getFirstElement(); return selection.getFirstElement();

View file

@ -41,15 +41,31 @@ public abstract class SystemAbstractAPIProvider
implements ISystemViewInputProvider implements ISystemViewInputProvider
{ {
protected Viewer viewer; protected Viewer viewer;
/**
* @deprecated don't use this field
*/
protected ISystemRegistry sr; protected ISystemRegistry sr;
/**
* @deprecated don't use this field
*/
protected Object[] emptyList = new Object[0]; protected Object[] emptyList = new Object[0];
/**
* @deprecated don't use this field
*/
protected Object[] msgList = new Object[1]; protected Object[] msgList = new Object[1];
/** /**
* @deprecated Use {@link #checkForEmptyList(Object[], Object, boolean)} instead. * @deprecated Use {@link #checkForEmptyList(Object[], Object, boolean)} instead.
*/ */
protected SystemMessageObject nullObject = null; protected SystemMessageObject nullObject = null;
protected SystemMessageObject canceledObject = null; /**
* @since org.eclipse.rse.ui 3.0 renamed from canceledObject
* @deprecated don't use this field
*/
protected SystemMessageObject cancelledObject = null;
/**
* @deprecated don't use this field
*/
protected SystemMessageObject errorObject = null; protected SystemMessageObject errorObject = null;
private Preferences fPrefStore = null; private Preferences fPrefStore = null;
@ -94,22 +110,26 @@ public abstract class SystemAbstractAPIProvider
protected final void initMsgObjects() protected final void initMsgObjects()
{ {
nullObject = new SystemMessageObject(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_EXPAND_EMPTY),ISystemMessageObject.MSGTYPE_EMPTY, null); nullObject = new SystemMessageObject(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_EXPAND_EMPTY),ISystemMessageObject.MSGTYPE_EMPTY, null);
canceledObject = new SystemMessageObject(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_LIST_CANCELLED),ISystemMessageObject.MSGTYPE_CANCEL, null); cancelledObject = new SystemMessageObject(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_LIST_CANCELLED),ISystemMessageObject.MSGTYPE_CANCEL, null);
errorObject = new SystemMessageObject(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_EXPAND_FAILED),ISystemMessageObject.MSGTYPE_ERROR, null); errorObject = new SystemMessageObject(RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_EXPAND_FAILED),ISystemMessageObject.MSGTYPE_ERROR, null);
} }
/** /**
* <i>Callable by subclasses. Do not override</i><br> * <i>Callable by subclasses. Do not override.</i><br>
* In getChildren, return <samp>checkForEmptyList(children, parent, true/false)<.samp> * In getChildren, return <samp>checkForEmptyList(children, parent,
* versus your array directly. This method checks for a null array which is * true/false)</samp> versus your array directly. This method checks for a
* not allowed and replaces it with an empty array. * null array which is not allowed and replaces it with an empty array. If
* If true is passed then it returns the "Empty list" message object if the array is null or empty * true is passed then it returns the "Empty list" message object if the
* * array is null or empty
* @param children The list of children. *
* @param parent The parent for the children. * @param children The list of children.
* @param returnNullMsg <code>true</code> if an "Empty List" message should be returned. * @param parent The parent for the children.
* @return The list of children, a list with the "Empty List" message object or an empty list. * @param returnNullMsg <code>true</code> if an "Empty List" message
*/ * should be returned.
* @return The list of children, a list with the "Empty List" message object
* or an empty list.
* @noextend This method is not intended to be extended by clients.
*/
protected Object[] checkForEmptyList(Object[] children, Object parent, boolean returnNullMsg) { protected Object[] checkForEmptyList(Object[] children, Object parent, boolean returnNullMsg) {
if ((children == null) || (children.length == 0)) { if ((children == null) || (children.length == 0)) {
if (fPrefStore == null) { if (fPrefStore == null) {
@ -160,9 +180,9 @@ public abstract class SystemAbstractAPIProvider
*/ */
protected Object[] getCancelledMessageObject() protected Object[] getCancelledMessageObject()
{ {
if (canceledObject == null) if (cancelledObject == null)
initMsgObjects(); initMsgObjects();
msgList[0] = canceledObject; msgList[0] = cancelledObject;
return msgList; return msgList;
} }