1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-05 07:15:39 +02:00

[releng][cleanup] Fix @since tags according to API Tooling

This commit is contained in:
Martin Oberhuber 2008-06-04 02:07:21 +00:00
parent 47465ec4e0
commit e71b4c784d
24 changed files with 794 additions and 716 deletions

View file

@ -38,7 +38,7 @@ public class SafeTreeViewer extends TreeViewer {
/** /**
* Constructor. * Constructor.
* *
* @param parent The parant control. * @param parent The parent control.
*/ */
public SafeTreeViewer(Composite parent) { public SafeTreeViewer(Composite parent) {
super(parent); super(parent);

View file

@ -164,10 +164,9 @@ public interface ISystemMessages
// -------------------------- // --------------------------
// UNIVERSAL FILE MESSAGES... // UNIVERSAL FILE MESSAGES...
// -------------------------- // --------------------------
/** @since 3.0 */
public static final String FILEMSG_RENAME_INTERRUPTED = "RSEG1246"; //$NON-NLS-1$ public static final String FILEMSG_RENAME_INTERRUPTED = "RSEG1246"; //$NON-NLS-1$
/** /** @since 3.0 */
* @since 3.0
*/
public static final String FILEMSG_DELETE_INTERRUPTED = "RSEG1247"; //$NON-NLS-1$ public static final String FILEMSG_DELETE_INTERRUPTED = "RSEG1247"; //$NON-NLS-1$

View file

@ -19,8 +19,10 @@ package org.eclipse.rse.ui;
import org.eclipse.ui.model.WorkbenchAdapter; import org.eclipse.ui.model.WorkbenchAdapter;
/** /**
* Abstract base class with basic implementations of the <code>IRSEAdapter</code> interface. * Abstract base class with basic implementations of the
* Intended to be subclassed. * <code>IRSEAdapter</code> interface. Intended to be subclassed.
*
* @since org.eclipse.rse.ui 3.0
*/ */
public abstract class RSEAdapter extends WorkbenchAdapter implements IRSEAdapter { public abstract class RSEAdapter extends WorkbenchAdapter implements IRSEAdapter {

View file

@ -415,6 +415,8 @@ public class RSEUIPlugin extends SystemBasePlugin
/** /**
* For fastpath access to our adapters for non-local objects in our model. * For fastpath access to our adapters for non-local objects in our model.
* Exploits the knowledge we use singleton adapters. * Exploits the knowledge we use singleton adapters.
*
* @since 3.0 returning IAdapterFactory rather than SystemViewAdapterFactory
*/ */
public IAdapterFactory getSystemViewAdapterFactory() public IAdapterFactory getSystemViewAdapterFactory()
{ {

View file

@ -22,6 +22,9 @@ public class DisplayHidableSystemMessageAction extends
{ {
protected IPreferenceStore _store; protected IPreferenceStore _store;
protected String _prefID; protected String _prefID;
/**
* @since 3.0
*/
protected boolean _showYesNo = true; protected boolean _showYesNo = true;
public DisplayHidableSystemMessageAction(SystemMessage message, IPreferenceStore prefStore, String prefID) public DisplayHidableSystemMessageAction(SystemMessage message, IPreferenceStore prefStore, String prefID)
@ -31,6 +34,9 @@ public class DisplayHidableSystemMessageAction extends
_prefID = prefID; _prefID = prefID;
} }
/**
* @since 3.0
*/
public DisplayHidableSystemMessageAction(SystemMessage message, IPreferenceStore prefStore, String prefID, boolean showYesNo) public DisplayHidableSystemMessageAction(SystemMessage message, IPreferenceStore prefStore, String prefID, boolean showYesNo)
{ {
super(message); super(message);

View file

@ -277,6 +277,7 @@ public abstract class SystemBaseCopyAction extends SystemBaseDialogAction
/** /**
* Called after all the copy/move operations end, be it successfully or not. * Called after all the copy/move operations end, be it successfully or not.
* Your opportunity to display completion or do post-copy selections/refreshes * Your opportunity to display completion or do post-copy selections/refreshes
* @since 3.0 taking String argument
*/ */
public void copyComplete(String operation) {} public void copyComplete(String operation) {}

View file

@ -266,8 +266,12 @@ public abstract class SystemBaseSubMenuAction
/** /**
* Overridable method that instantiates the menu listener who job is to add mnemonics. * Overridable method that instantiates the menu listener who job is to add
* @param setMnemonicsOnlyOnce true if the menu is static and so mnemonics need only be set once. False if it is dynamic * mnemonics.
*
* @param setMnemonicsOnlyOnce true if the menu is static and so mnemonics
* need only be set once. False if it is dynamic
* @since 3.0 replaced SystemViewMenuListener by ISystemViewMenuListener
*/ */
protected ISystemViewMenuListener createMnemonicsListener(boolean setMnemonicsOnlyOnce) protected ISystemViewMenuListener createMnemonicsListener(boolean setMnemonicsOnlyOnce)
{ {

View file

@ -46,7 +46,10 @@ public abstract class SystemRemoteResourceDialog extends SystemPromptDialog
private SystemActionViewerFilter _customViewerFilter; private SystemActionViewerFilter _customViewerFilter;
private String _message, _tip; private String _message, _tip;
/**
* @since 3.0 replaced SystemResourceSelectionInputProvider by
* ISystemResourceSelectionInputProvider
*/
public SystemRemoteResourceDialog(Shell shell, String title, public SystemRemoteResourceDialog(Shell shell, String title,
ISystemResourceSelectionInputProvider inputProvider) ISystemResourceSelectionInputProvider inputProvider)
{ {
@ -255,6 +258,7 @@ public abstract class SystemRemoteResourceDialog extends SystemPromptDialog
return closeDialog; return closeDialog;
} }
/** @since 3.0 */
public void setShowNewConnectionPrompt(boolean showNewConnectionPrompt) public void setShowNewConnectionPrompt(boolean showNewConnectionPrompt)
{ {
_inputProvider.setAllowNewConnection(showNewConnectionPrompt); _inputProvider.setAllowNewConnection(showNewConnectionPrompt);
@ -281,7 +285,9 @@ public abstract class SystemRemoteResourceDialog extends SystemPromptDialog
/** /**
* Returns the system tree * Returns the system tree
*
* @return the system tree * @return the system tree
* @since 3.0
*/ */
public ISystemTree getSystemTree() public ISystemTree getSystemTree()
{ {
@ -290,7 +296,9 @@ public abstract class SystemRemoteResourceDialog extends SystemPromptDialog
/** /**
* Indicates whether the page for the form is complete or not. * Indicates whether the page for the form is complete or not.
*
* @return true if the page associated with the form is complete * @return true if the page associated with the form is complete
* @since 3.0
*/ */
public boolean isPageComplete() public boolean isPageComplete()
{ {

View file

@ -146,13 +146,20 @@ public class SystemRenameSingleDialog extends SystemPromptDialog
} }
/** /**
* Constructor with an input object and validator * Constructor with an input object and validator This constructor is in
* This constructor is in copy/move dialogs when there is a collision * copy/move dialogs when there is a collision
*
* @param shell The parent dialog * @param shell The parent dialog
* @param copyCollisionMode true if this is being called because of a name collision on a copy or move operation * @param copyCollisionMode true if this is being called because of a name
* @param inputObject The object that is being renamed, or on a copy/move the object in the target container which already exists. Used to get the old name and the name validator * collision on a copy or move operation
* @param nameValidator The name validator to use. Can be null, in which case it is queried from the adapter of the input object * @param inputObject The object that is being renamed, or on a copy/move
* @param nameInUse the List of names that have been previously selected for other files that are to be renamed for multiple file renaming. * the object in the target container which already exists. Used
* to get the old name and the name validator
* @param nameValidator The name validator to use. Can be null, in which
* case it is queried from the adapter of the input object
* @param nameInUse the List of names that have been previously selected for
* other files that are to be renamed for multiple file renaming.
* @since 3.0 added nameInUse argument
*/ */
public SystemRenameSingleDialog(Shell shell, boolean copyCollisionMode, Object inputObject, ISystemValidator nameValidator, List nameInUse) public SystemRenameSingleDialog(Shell shell, boolean copyCollisionMode, Object inputObject, ISystemValidator nameValidator, List nameInUse)
{ {

View file

@ -95,10 +95,13 @@ public class SystemSelectAnythingDialog extends SystemPromptDialog
_selected = selection.getFirstElement(); _selected = selection.getFirstElement();
} }
/** /**
* Use this method to limit the objects that are seen in the view of this dialog. * Use this method to limit the objects that are seen in the view of this
* dialog.
* *
* @param filter the filter that limits the visible objects * @param filter the filter that limits the visible objects
* @since 3.0
*/ */
public void setViewerFilter(SystemActionViewerFilter filter) public void setViewerFilter(SystemActionViewerFilter filter)
{ {

View file

@ -21,6 +21,8 @@ import org.eclipse.rse.ui.wizards.ISystemWizard;
/** /**
* An interface for filter pool wizards to implement * An interface for filter pool wizards to implement
*
* @since 3.0 moved from "internal" to API
*/ */
public interface SystemFilterPoolWizardInterface public interface SystemFilterPoolWizardInterface
extends ISystemWizard, SystemFilterPoolDialogInterface extends ISystemWizard, SystemFilterPoolDialogInterface

View file

@ -327,8 +327,12 @@ public class SystemNewFilterWizard
return mainPage; return mainPage;
} }
/** /**
* By default, this page uses the wizard page title as set in setWizardPageTitle(...) or the constructor. * By default, this page uses the wizard page title as set in
* @return the wizard page prompting for the filter name and parent filter pool * setWizardPageTitle(...) or the constructor.
*
* @return the wizard page prompting for the filter name and parent filter
* pool
* @since 3.0 moved SystemNewFilterWizardNamePage from internal to API
*/ */
protected SystemNewFilterWizardNamePage createNamePage() protected SystemNewFilterWizardNamePage createNamePage()
{ {

View file

@ -42,6 +42,8 @@ import org.eclipse.swt.widgets.Text;
/** /**
* Second page of the New Filter wizard that prompts for the name of the filter. * Second page of the New Filter wizard that prompts for the name of the filter.
*
* @since 3.0 moved from internal to API
*/ */
public class SystemNewFilterWizardNamePage public class SystemNewFilterWizardNamePage
extends AbstractSystemWizardPage extends AbstractSystemWizardPage

View file

@ -62,6 +62,10 @@ public abstract class ServicesPropertyPage extends SystemBasePropertyPage
_form.init(_rootElement); _form.init(_rootElement);
} }
/**
* @since 3.0 returning ISubSystem rather than IServiceSubSystem
* @return
*/
protected ISubSystem getServiceSubSystem() protected ISubSystem getServiceSubSystem()
{ {
return (ISubSystem)getElement(); return (ISubSystem)getElement();

View file

@ -17,6 +17,9 @@ package org.eclipse.rse.ui.view;
import org.eclipse.ui.IEditorPart; import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IWorkbenchPage; import org.eclipse.ui.IWorkbenchPage;
/**
* @since 3.0
*/
public interface IViewLinker { public interface IViewLinker {
/** /**

View file

@ -193,6 +193,8 @@ public class SubSystemConfigurationAdapter implements ISubSystemConfigurationAda
* interrogate them for the user-entered data and use it when creating the default subsystem instance. * interrogate them for the user-entered data and use it when creating the default subsystem instance.
* </ul> * </ul>
* Tip: consider extending {@link org.eclipse.rse.ui.wizards.AbstractSystemNewConnectionWizardPage} for your wizard page class. * Tip: consider extending {@link org.eclipse.rse.ui.wizards.AbstractSystemNewConnectionWizardPage} for your wizard page class.
*
* @since 3.0 ISystemNewConnectionWizardPage moved from Core to UI
*/ */
public ISystemNewConnectionWizardPage[] getNewConnectionWizardPages(ISubSystemConfiguration config, IWizard wizard) public ISystemNewConnectionWizardPage[] getNewConnectionWizardPages(ISubSystemConfiguration config, IWizard wizard)
{ {
@ -612,6 +614,7 @@ public class SubSystemConfigurationAdapter implements ISubSystemConfigurationAda
/** /**
* Overridable entry for child classes to supply their own flavour of ISystemFilterPoolWrapperInformation for * Overridable entry for child classes to supply their own flavour of ISystemFilterPoolWrapperInformation for
* the new filter wizards. * the new filter wizards.
* @since 3.0 replaced SystemFilterPoolWrapperInformation by ISystemFilterPoolWrapperInformation
*/ */
protected ISystemFilterPoolWrapperInformation getNewFilterWizardPoolWrapperInformation() protected ISystemFilterPoolWrapperInformation getNewFilterWizardPoolWrapperInformation()
{ {

View file

@ -366,6 +366,10 @@ public class SystemTableView
_downI = RSEUIPlugin.getDefault().getImage(ISystemIconConstants.ICON_SYSTEM_ARROW_DOWN_ID); _downI = RSEUIPlugin.getDefault().getImage(ISystemIconConstants.ICON_SYSTEM_ARROW_DOWN_ID);
} }
/**
* @since 3.0 Moved SystemTableViewProvider from internal to API
* @return
*/
protected SystemTableViewProvider getProvider() protected SystemTableViewProvider getProvider()
{ {
if (_provider == null) if (_provider == null)
@ -495,6 +499,11 @@ public class SystemTableView
return new IPropertyDescriptor[0]; return new IPropertyDescriptor[0];
} }
/**
* @since 3.0 replaced SystemTableViewColumnManager by
* ISystemTableViewColumnManager
* @return
*/
public ISystemTableViewColumnManager getColumnManager() public ISystemTableViewColumnManager getColumnManager()
{ {
return _columnManager; return _columnManager;
@ -1413,9 +1422,12 @@ public class SystemTableView
return _refreshAction; return _refreshAction;
} }
/** /**
* Rather than pre-defining this common action we wait until it is first needed, * Rather than pre-defining this common action we wait until it is first
* for performance reasons. * needed, for performance reasons.
*
* @since 3.0
*/ */
public IAction getNewConnectionAction() { public IAction getNewConnectionAction() {
if (_newConnectionAction == null) _newConnectionAction = new SystemNewConnectionAction(getShell(), true, this); // true=>from popup menu if (_newConnectionAction == null) _newConnectionAction = new SystemNewConnectionAction(getShell(), true, this); // true=>from popup menu
@ -1700,6 +1712,8 @@ public class SystemTableView
/** /**
* Get the specific "Renaming %1..." * Get the specific "Renaming %1..."
*
* @since 3.0
*/ */
protected SystemMessage getRenamingMessage(String oldName) protected SystemMessage getRenamingMessage(String oldName)
{ {

View file

@ -46,10 +46,11 @@ import org.eclipse.ui.views.properties.IPropertyDescriptor;
/** /**
* This is the content and label provider for the SystemTableView. * This is the content and label provider for the SystemTableView. This class is
* This class is used both to populate the SystemTableView but also * used both to populate the SystemTableView but also to resolve the icon and
* to resolve the icon and labels for the cells in the table. * labels for the cells in the table.
* *
* @since 3.0 Moved from internal to API
*/ */
public class SystemTableViewProvider implements ILabelProvider, ITableLabelProvider, ITreeContentProvider public class SystemTableViewProvider implements ILabelProvider, ITableLabelProvider, ITreeContentProvider
{ {

View file

@ -129,6 +129,13 @@ public class SubSystemServiceWizardPage extends AbstractSystemNewConnectionWizar
return _serviceElements; return _serviceElements;
} }
/**
* @param systemType
* @param serviceType
* @return
* @since 3.0 returning ISubSystemConfiguration instead of
* IServiceSubSystemConfiguration
*/
protected ISubSystemConfiguration[] getServiceSubSystemConfigurations(IRSESystemType systemType, Class serviceType) protected ISubSystemConfiguration[] getServiceSubSystemConfigurations(IRSESystemType systemType, Class serviceType)
{ {
List results = new ArrayList(); List results = new ArrayList();
@ -264,6 +271,10 @@ public class SubSystemServiceWizardPage extends AbstractSystemNewConnectionWizar
return result; return result;
} }
/**
* @since 3.0 taking ISubSystemConfiguration instead of
* IServiceSubSystemConfiguration
*/
protected IConnectorService getCustomConnectorService(ISubSystemConfiguration config) protected IConnectorService getCustomConnectorService(ISubSystemConfiguration config)
{ {
ServiceElement[] children = _root.getChildren(); ServiceElement[] children = _root.getChildren();

View file

@ -23,7 +23,7 @@ import org.eclipse.rse.core.model.ISubSystemConfigurator;
* getNewConnectionWizardPages * getNewConnectionWizardPages
* (org.eclipse.rse.core.subsystems.ISubSystemConfiguration, * (org.eclipse.rse.core.subsystems.ISubSystemConfiguration,
* org.eclipse.jface.wizard.IWizard) * org.eclipse.jface.wizard.IWizard)
* @since 3.0 * @since 3.0 moved from Core to UI and extends ISubSystemConfigurator
*/ */
public interface ISystemNewConnectionWizardPage extends ISubSystemConfigurator { public interface ISystemNewConnectionWizardPage extends ISubSystemConfigurator {

View file

@ -56,6 +56,7 @@ import org.eclipse.ui.IWorkbench;
public class RSEMainNewConnectionWizard extends Wizard implements INewWizard, ISelectionProvider { public class RSEMainNewConnectionWizard extends Wizard implements INewWizard, ISelectionProvider {
/** /**
* Dialog settings slot id: Last selected system type id within the wizard. * Dialog settings slot id: Last selected system type id within the wizard.
* @since 3.0 made protected String public
*/ */
public static final String LAST_SELECTED_SYSTEM_TYPE_ID = "lastSelectedSystemTypeId"; //$NON-NLS-1$ public static final String LAST_SELECTED_SYSTEM_TYPE_ID = "lastSelectedSystemTypeId"; //$NON-NLS-1$

View file

@ -191,6 +191,7 @@ public class RSENewConnectionWizardSelectionPage extends WizardPage {
* Returns the list of system types the page is restricted to. * Returns the list of system types the page is restricted to.
* *
* @return The list of system types the page is restricted to or <code>null</code>. * @return The list of system types the page is restricted to or <code>null</code>.
* @since 3.0 made protected method public
*/ */
public IRSESystemType[] getRestrictToSystemTypes() { public IRSESystemType[] getRestrictToSystemTypes() {
return restrictedSystemTypes; return restrictedSystemTypes;

View file

@ -541,10 +541,9 @@ implements IAdaptable, ISubSystem, ISystemFilterPoolReferenceManagerProvider
system.clearCredentials(); system.clearCredentials();
} }
/* /**
* (non-Javadoc) * @{inheritDoc
* * @since 3.0
* @see org.eclipse.rse.core.subsystems.ISubSystem#checkIsConnected(org.eclipse.core.runtime.IProgressMonitor)
*/ */
public void checkIsConnected(IProgressMonitor monitor) throws SystemMessageException public void checkIsConnected(IProgressMonitor monitor) throws SystemMessageException
{ {

View file

@ -1605,8 +1605,9 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
return getFilterPoolManager(profile, false); return getFilterPoolManager(profile, false);
} }
/* (non-Javadoc) /**
* @see org.eclipse.rse.core.subsystems.ISubSystemConfiguration#getFilterPoolManager(org.eclipse.rse.core.model.ISystemProfile, boolean) * {@inheritDoc}
* @since 3.0 added boolean argument
*/ */
public ISystemFilterPoolManager getFilterPoolManager(ISystemProfile profile, boolean force) { public ISystemFilterPoolManager getFilterPoolManager(ISystemProfile profile, boolean force) {
// it is important to key by profile object not profile name, since that name can change but the object never should for any one session. // it is important to key by profile object not profile name, since that name can change but the object never should for any one session.