1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 18:05:33 +02:00

[cleanup] Fix some @since tag problems

This commit is contained in:
Martin Oberhuber 2008-05-05 12:22:07 +00:00
parent 0b82909c80
commit 33fa542dd5
14 changed files with 291 additions and 186 deletions

View file

@ -24,9 +24,9 @@ import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
/**
* An interface used to drive properties into a subsystem during host creation.
*
* @noimplement This is an internal interface for use in the framework.
* Potential clients should extend one of the implementations or
* implement one of the extensions.
* This is an internal interface for use in the framework. Potential clients
* should extend one of the implementations or implement one of the extensions.
*
* @since org.eclipse.rse.core 3.0
*/
public interface ISubSystemConfigurator {

View file

@ -27,10 +27,12 @@ import org.eclipse.rse.ui.filters.dialogs.SystemFilterDialogInputs;
/**
* A class capturing the attributes commonly needed by dialogs that
* work with filter pools.
* @noextend This class is not intended to be subclassed by clients.
* This class is complete and should be used as is.
* A class capturing the attributes commonly needed by dialogs that work with
* filter pools.
*
* @noextend This class is not intended to be subclassed by clients. This class
* is complete and should be used as is.
* @since 3.0
*/
public class SystemFilterPoolDialogInputs extends SystemFilterDialogInputs
{

View file

@ -21,6 +21,8 @@ import org.eclipse.rse.ui.filters.actions.SystemFilterAbstractFilterPoolAction;
/**
* Common interface for dialogs or wizards that work with filter pools.
*
* @since 3.0
*/
public interface SystemFilterPoolDialogInterface
{

View file

@ -24,10 +24,12 @@ import org.eclipse.rse.ui.dialogs.SystemSimpleContentElement;
/**
* A class capturing the attributes commonly returned by dialogs that
* work with filter pools.
* @noextend This class is not intended to be subclassed by clients.
* This class is complete and should be used as is.
* A class capturing the attributes commonly returned by dialogs that work with
* filter pools.
*
* @noextend This class is not intended to be subclassed by clients. This class
* is complete and should be used as is.
* @since 3.0
*/
public class SystemFilterPoolDialogOutputs
{

View file

@ -18,10 +18,10 @@ import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.model.ISystemViewInputProvider;
/**
* Public interface for the system resource selection input provider
* that is used in the SystemRemoteResourceDialog and the
* SystemResourceSelectionForm
* Public interface for the system resource selection input provider that is
* used in the SystemRemoteResourceDialog and the SystemResourceSelectionForm
*
* @since 3.0
*/
public interface ISystemResourceSelectionInputProvider
extends ISystemViewInputProvider

View file

@ -18,6 +18,9 @@ import org.eclipse.rse.core.filters.ISystemFilter;
import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.model.ISystemViewInputProvider;
/**
* @since 3.0
*/
public interface ISystemSelectRemoteObjectAPIProvider
extends ISystemViewInputProvider
{

View file

@ -15,6 +15,9 @@ package org.eclipse.rse.ui.view;
import org.eclipse.ui.views.properties.IPropertyDescriptor;
/**
* @since 3.0
*/
public interface ISystemTableViewColumnManager {
public IPropertyDescriptor[] getVisibleDescriptors(ISystemViewElementAdapter adapter);

View file

@ -34,8 +34,13 @@ import org.eclipse.rse.ui.RSEUIPlugin;
/**
* This is a base class that a provider of root nodes to the remote systems tree viewer part can
* use as a parent class.
* This is a base class that a provider of root nodes to the remote systems tree
* viewer part can use as a parent class.
*
* This class existed in RSE 1.0, was made "internal" for RSE 2.0 and restored
* as API for RSE 3.0.
*
* @since 3.0
*/
public abstract class SystemAbstractAPIProvider
implements ISystemViewInputProvider

View file

@ -35,6 +35,12 @@ public class FactoryServiceElement extends ServiceElement
private ServiceElement[] _children;
/**
* Constructor. Used to accept an IServiceSubSystemConfiguration before RSE
* 3.0
*
* @since 3.0
*/
public FactoryServiceElement(IHost host, ISubSystemConfiguration factory)
{
super(host, null);
@ -51,6 +57,12 @@ public class FactoryServiceElement extends ServiceElement
return _factory.getDescription();
}
/**
* Return the subsystem configuration related to this service element. Used
* to return an IServiceSubSystemConfiguration before RSE 3.0.
*
* @since 3.0
*/
public ISubSystemConfiguration getFactory()
{
return _factory;

View file

@ -15,9 +15,15 @@ import org.eclipse.rse.core.model.ISubSystemConfigurator;
/**
* Interface that all subsystem configuration supplied pages contributed to the New Connection wizard must implement.
* Interface that all subsystem configuration supplied pages contributed to the
* New Connection wizard must implement. Moved from Core to UI in RSE 3.0
*
* @see org.eclipse.rse.ui.wizards.AbstractSystemNewConnectionWizardPage
* @see org.eclipse.rse.ui.view.SubSystemConfigurationAdapter#getNewConnectionWizardPages(org.eclipse.rse.core.subsystems.ISubSystemConfiguration, org.eclipse.jface.wizard.IWizard)
* @see org.eclipse.rse.ui.view.SubSystemConfigurationAdapter#
* getNewConnectionWizardPages
* (org.eclipse.rse.core.subsystems.ISubSystemConfiguration,
* org.eclipse.jface.wizard.IWizard)
* @since 3.0
*/
public interface ISystemNewConnectionWizardPage extends ISubSystemConfigurator {

View file

@ -436,7 +436,11 @@ public class RSEDefaultNewConnectionWizard extends RSEAbstractNewConnectionWizar
}
/**
* Return the first additional page to show when user presses Next on the main page
* Return the first additional page to show when user presses Next on the
* main page. In RSE 3.0, the ISystemNewConnectionWizardPage return type was
* moved from org.eclipse.rse.core into a UI plugin.
*
* @since 3.0
*/
protected ISystemNewConnectionWizardPage getFirstAdditionalPage() {
if ((subsystemConfigurationSuppliedWizardPages != null) && (subsystemConfigurationSuppliedWizardPages.length > 0)) {

View file

@ -38,19 +38,22 @@ public class RSEWizardSelectionTreePatternFilter extends PatternFilter {
/**
* Constructor.<br>
* Creates a new pattern filter instance with the passed in
* wizard page associated as parent.
* Creates a new pattern filter instance with the passed in wizard page
* associated as parent.
*
* @param page The parent wizard page or <code>null</code>.
* @since 3.0
*/
public RSEWizardSelectionTreePatternFilter(WizardPage page) {
parentPage = page;
}
/**
* Returns the associated parent wizard parent.
*
* @return The parent wizard page or <code>null</code> if none.
* @since 3.0
*/
protected WizardPage getParentWizardPage() {
return parentPage;

View file

@ -837,36 +837,45 @@ implements IAdaptable, ISubSystem, ISystemFilterPoolReferenceManagerProvider
// Methods for encoding and decoding remote objects for drag and drop, and clipboard copy
// --------------------------------------------------------------------------------------
// --------------
// Methods for encoding and decoding remote objects for drag and drop, and
// clipboard copy
// ------------------------------------------------------------------------
// --------------
/**
* Return the remote object that corresponds to the specified unique ID.
* <p>
* Since the abstract subsystem implementation does not know anything
* about the specific kinds of resources managed by concrete
* implementations, this method can only resolve filter references.
* </p><p>
* <strong>subsystem implementations must override this method
* in order to resolve IDs for the remote objects they manage,
* to support drag and drop, clipboard copy and other remote object
* resolving schemes.</strong>
* Extenders that want to support filters should call
* <code>super.getObjectWithAbsoluteName(key)</code>
* when they do not find a reference for the key themselves.
* Since the abstract subsystem implementation does not know anything about
* the specific kinds of resources managed by concrete implementations, this
* method can only resolve filter references.
* </p>
* <p>
* <strong>subsystem implementations must override this method in order to
* resolve IDs for the remote objects they manage, to support drag and drop,
* clipboard copy and other remote object resolving schemes.</strong>
* Extenders that want to support filters should call
* <code>super.getObjectWithAbsoluteName(key)</code> when they do not find a
* reference for the key themselves.
* </p>
* @see org.eclipse.rse.core.subsystems.IRemoteObjectResolver#getObjectWithAbsoluteName(String, IProgressMonitor)
*
* @param key the unique id of the remote object.
* Must not be <code>null</code>.
* @see org.eclipse.rse.core.subsystems.IRemoteObjectResolver#
* getObjectWithAbsoluteName(String, IProgressMonitor)
*
* @param key the unique id of the remote object. Must not be
* <code>null</code>.
* @param monitor the progress monitor
* @return the remote object instance, or <code>null</code> if no
* object is found with the given id.
* @throws Exception in case an error occurs contacting the remote
* system while retrieving the requested remote object.
* Extenders are encouraged to throw {@link SystemMessageException}
* in order to support good user feedback in case of errors.
* Since exceptions should only occur while retrieving new
* remote objects during startup, clients are typically allowed
* to ignore these exceptions and treat them as if the remote
* object were simply not there.
* @return the remote object instance, or <code>null</code> if no object is
* found with the given id.
* @throws Exception in case an error occurs contacting the remote system
* while retrieving the requested remote object. Extenders are
* encouraged to throw {@link SystemMessageException} in order to
* support good user feedback in case of errors. Since exceptions
* should only occur while retrieving new remote objects during
* startup, clients are typically allowed to ignore these exceptions
* and treat them as if the remote object were simply not there.
* @since 3.0
*/
public Object getObjectWithAbsoluteName(String key, IProgressMonitor monitor) throws Exception
{
@ -3182,34 +3191,47 @@ implements IAdaptable, ISubSystem, ISystemFilterPoolReferenceManagerProvider
/* Service Subsystem support */
/**
* Perform the subsystem specific processing required to complete a subsystem configuration switch for a
* service subsystem. The subsystem will typically query this configuration for interesting properties or
* policies. It should also reset any state to a fresh start.
* This supplied implementation does nothing. Subclasses may override if they implement a service subsystem.
* @param newConfiguration the configuration this subsystem should use from this point.
* Perform the subsystem specific processing required to complete a
* subsystem configuration switch for a service subsystem. The subsystem
* will typically query this configuration for interesting properties or
* policies. It should also reset any state to a fresh start. This supplied
* implementation does nothing. Subclasses may override if they implement a
* service subsystem.
*
* @param newConfiguration the configuration this subsystem should use from
* this point.
* @since 3.0
*/
protected void internalSwitchSubSystemConfiguration(ISubSystemConfiguration newConfiguration) {
}
/**
* Determine if a service subsystem is capable of switching to this new configuration.
* This is usually a test of this configuration's type against the type expected by this subsystem.
* This supplied implementation returns false. Subclasses should override if they implement a service subsystem.
* Determine if a service subsystem is capable of switching to this new
* configuration. This is usually a test of this configuration's type
* against the type expected by this subsystem. This supplied implementation
* returns false. Subclasses should override if they implement a service
* subsystem.
*
* @param configuration the configuration to which this subsystem may switch
* @return true if this subsystem is capable of switching to this configuration, false otherwise. This implementation
* returns false.
* @return true if this subsystem is capable of switching to this
* configuration, false otherwise. This implementation returns false.
* @see ISubSystem#canSwitchTo(ISubSystemConfiguration)
* @since 3.0
*/
public boolean canSwitchTo(ISubSystemConfiguration configuration) {
return false;
}
/**
* Switch to use another subsystem configuration. This default implementation will test if the subsystem is a
* service subsystem and if the subsystem is compatible with the suggested configuration. If it is the switch will
* be performed and internalSwitchSubSystemConfiguration will be called.
* Switch to use another subsystem configuration. This default
* implementation will test if the subsystem is a service subsystem and if
* the subsystem is compatible with the suggested configuration. If it is
* the switch will be performed and internalSwitchSubSystemConfiguration
* will be called.
*
* @see ISubSystem#switchServiceFactory(ISubSystemConfiguration)
* @see #internalSwitchSubSystemConfiguration(ISubSystemConfiguration)
* @since 3.0
*/
public void switchServiceFactory(final ISubSystemConfiguration config) {
if (config != getSubSystemConfiguration() && canSwitchTo(config)) {
@ -3227,9 +3249,12 @@ implements IAdaptable, ISubSystem, ISystemFilterPoolReferenceManagerProvider
/**
* Return the service type for this subsystem.
* @return the default implementation returns null. Subclasses that implement service subsystems
* should return a type as specified in the interface.
* @see org.eclipse.rse.core.subsystems.ISubSystem#getServiceType()
*
* @return the default implementation returns null. Subclasses that
* implement service subsystems should return a type as specified in the
* interface.
* @see ISubSystem#getServiceType()
* @since 3.0
*/
public Class getServiceType() {
return null;

View file

@ -960,25 +960,33 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
}
/**
* Creates a new subsystem instance that is associated with the given connection object.
* SystemRegistryImpl calls this when a new connection is created, and appliesToSystemType returns true.
* Creates a new subsystem instance that is associated with the given
* connection object. SystemRegistryImpl calls this when a new connection is
* created, and appliesToSystemType returns true.
* <p>
* This method doe sthe following:
* <ul>
* <li>calls {@link #createSubSystemInternal(IHost)} to create the subsystem
* <li>does initialization of common attributes
* <li>if {@link #supportsFilters()}, creates a {@link org.eclipse.rse.core.filters.ISystemFilterPoolReferenceManager} for the
* <li>if {@link #supportsFilters()}, creates a {@link
* org.eclipse.rse.core.filters.ISystemFilterPoolReferenceManager} for the
* subsystem to manage references to filter pools
* <li>if (@link #supportsServerLaunchProperties()}, calls {@link #createServerLauncher(IConnectorService)}, to create
* the server launcher instance to associate with this subsystem.}.
* <li>calls {@link #initializeSubSystem(ISubSystem, ISubSystemConfigurator[])} so subclasses can
* do their thing to initialize the subsystem.
* <li>if (@link #supportsServerLaunchProperties()}, calls {@link
* #createServerLauncher(IConnectorService)}, to create the server launcher
* instance to associate with this subsystem.}.
* <li>calls {@link #initializeSubSystem(ISubSystem,
* ISubSystemConfigurator[])} so subclasses can do their thing to initialize
* the subsystem.
* <li>finally, saves the subsystem to disk.
* </ul>
*
* @param conn The connection to create a subsystem for
* @param creatingConnection true if we are creating a connection, false if just creating
* another subsystem for an existing connection.
* @param configurators configurators that inject properties into this new subsystem or null if there are none
* @param creatingConnection true if we are creating a connection, false if
* just creating another subsystem for an existing connection.
* @param configurators configurators that inject properties into this new
* subsystem or null if there are none. Used to take
* ISystemNewConnectionWizardPage[] before RSE 3.0.
* @since 3.0
*/
public ISubSystem createSubSystem(IHost conn, boolean creatingConnection, ISubSystemConfigurator[] configurators)
{
@ -1193,12 +1201,17 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
public abstract ISubSystem createSubSystemInternal(IHost conn);
/**
* Initialize subsystems after creation (<i>Overridable</i>).
* The default behavior is to add a reference to the default filter pool for this subsystem configuration,
* if there is one. Typically subclasses call <samp>super().initializeSubSystem(...)</samp>
* to get this default behavior, then extend it.
* Initialize subsystems after creation (<i>Overridable</i>). The default
* behavior is to add a reference to the default filter pool for this
* subsystem configuration, if there is one. Typically subclasses call
* <samp>super().initializeSubSystem(...)</samp> to get this default
* behavior, then extend it.
*
* @param ss - The subsystem that was created via createSubSystemInternal
* @param configurators an array of {@link ISubSystemConfigurator} used to inject values into this subsystem or null if there are none
* @param configurators an array of {@link ISubSystemConfigurator} used to
* inject values into this subsystem or null if there are none. Used to
* take ISystemNewConnectionWizardPage[] before RSE 3.0
* @since 3.0
*/
protected void initializeSubSystem(ISubSystem ss, ISubSystemConfigurator[] configurators) {
if (supportsFilters()) {
@ -1422,8 +1435,12 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
}
/**
* Overridable entry for child classes to supply their own flavour of ISystemFilterPoolWrapperInformation for
* the new filter wizards.
* Overridable entry for child classes to supply their own flavor of
* ISystemFilterPoolWrapperInformation for the new filter wizards.
*
* @return an ISystemFilterPoolWrapperInformation instead of a
* SystemFilterPoolWrapperInformation since 3.0
* @since 3.0
*/
protected ISystemFilterPoolWrapperInformation getNewFilterWizardPoolWrapperInformation()
{
@ -2776,11 +2793,11 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
}
/**
* Return true if deferred queries are supported.
* By default, they are supported. Override for different behavior.
* Return true if deferred queries are supported. By default, they are
* supported. Override for different behavior.
*
* @return <code>true</code> if deferred queries are supported.
* @see org.eclipse.rse.core.subsystems.ISubSystemConfiguration#supportsDeferredQueries()
* @see ISubSystemConfiguration#supportsDeferredQueries()
*/
public boolean supportsDeferredQueries()
{
@ -2792,44 +2809,65 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
*/
/**
* This default implementation does nothing.
* Service subsystems must override as defined in the interface.
* @see org.eclipse.rse.core.subsystems.ISubSystemConfiguration#setConnectorService(org.eclipse.rse.core.model.IHost, org.eclipse.rse.core.subsystems.IConnectorService)
* {@inheritDoc}
* <p>
* This default implementation does nothing. Service subsystems must
* override as defined in the interface.
*
* @see ISubSystemConfiguration#setConnectorService(IHost,
* IConnectorService)
* @since org.eclipse.rse.core 3.0
*/
public void setConnectorService(IHost host, IConnectorService connectorService) {
}
/**
* This default implementation returns null.
* Service subsystem configurations must override as defined in the interface.
* @see org.eclipse.rse.core.subsystems.ISubSystemConfiguration#getConnectorService(org.eclipse.rse.core.model.IHost)
* {@inheritDoc}
* <p>
* This default implementation returns <code>null</code>. Service subsystem
* configurations must override as defined in the interface.
*
* @see ISubSystemConfiguration#getConnectorService(IHost)
* @since org.eclipse.rse.core 3.0
*/
public IConnectorService getConnectorService(IHost host) {
return null;
}
/**
* This default implementation returns null.
* Service subsystem configurations must override as defined in the interface.
* @see org.eclipse.rse.core.subsystems.ISubSystemConfiguration#getServiceType()
* {@inheritDoc}
* <p>
* This default implementation returns <code>null</code>. Service subsystem
* configurations must override as defined in the interface.
*
* @see ISubSystemConfiguration#getServiceType()
* @since org.eclipse.rse.core 3.0
*/
public Class getServiceType() {
return null;
}
/**
* This default implementation returns null.
* Service subsystem configurations must override as defined in the interface.
* @see org.eclipse.rse.core.subsystems.ISubSystemConfiguration#getServiceImplType()
* {@inheritDoc}
* <p>
* This default implementation returns <code>null</code>. Service subsystem
* configurations must override as defined in the interface.
*
* @see ISubSystemConfiguration#getServiceImplType()
* @since org.eclipse.rse.core 3.0
*/
public Class getServiceImplType() {
return null;
}
/**
* This default implementation returns null.
* Service subsystem configurations must override as defined in the interface.
* @see org.eclipse.rse.core.subsystems.ISubSystemConfiguration#getService(org.eclipse.rse.core.model.IHost)
* {@inheritDoc}
* <p>
* This default implementation returns <code>null</code>. Service subsystem
* configurations must override as defined in the interface.
*
* @see ISubSystemConfiguration#getService(IHost)
* @since org.eclipse.rse.core 3.0
*/
public IService getService(IHost host) {
return null;