1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-07 16:26:11 +02:00

Fixed javadoc problems

This commit is contained in:
Markus Schorn 2006-07-05 12:15:33 +00:00
parent a48fd96a4b
commit 193272f3ae
16 changed files with 54 additions and 52 deletions

View file

@ -1,10 +1,22 @@
#Mon Jul 03 10:04:50 CEST 2006
#Wed Jul 05 13:45:48 CEST 2006
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.4
org.eclipse.jdt.core.compiler.compliance=1.4
org.eclipse.jdt.core.compiler.doc.comment.support=enabled
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning
org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=protected
org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=protected
org.eclipse.jdt.core.compiler.source=1.4
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16

View file

@ -39,10 +39,11 @@ public class CContext extends TranslationUnitContext {
/**
* Creates a javadoc template context.
*
* @param type the context type.
* @param string the document string.
* @param completionPosition the completion position within the document.
* @param unit the compilation unit (may be <code>null</code>).
* @param type the context type
* @param document the document
* @param completionOffset the completion position within the document
* @param completionLength the length of the context
* @param translationUnit the translation unit represented by the document
*/
public CContext(TemplateContextType type, IDocument document, int completionOffset, int completionLength,
ITranslationUnit translationUnit) {

View file

@ -22,9 +22,6 @@ public class CContextType extends TranslationUnitContextType {
public final static String CCONTEXT_TYPE = "org.eclipse.cdt.ui.text.templates.c"; //$NON-NLS-1$
/**
* @param name
*/
public CContextType() {
super();
// global

View file

@ -30,10 +30,11 @@ public abstract class TranslationUnitContext extends DocumentTemplateContext {
/**
* Creates a compilation unit context.
*
* @param type the context type.
* @param string the document string.
* @param completionPosition the completion position within the document.
* @param compilationUnit the compilation unit (may be <code>null</code>).
* @param type the context type
* @param document the document
* @param completionOffset the completion position within the document
* @param completionLength the length of the context
* @param translationUnit the translation unit represented by the document
*/
protected TranslationUnitContext(TemplateContextType type, IDocument document, int completionOffset,
int completionLength, ITranslationUnit translationUnit)

View file

@ -119,7 +119,6 @@ public class BaseCElementContentProvider implements ITreeContentProvider {
/**
* Can elements be group.
* @return
*/
public boolean areIncludesGroup() {
return fIncludesGrouping;
@ -135,7 +134,6 @@ public class BaseCElementContentProvider implements ITreeContentProvider {
/**
* Can elements be group.
* @return
*/
public boolean areNamespacesGroup() {
return fNamespacesGrouping;

View file

@ -34,7 +34,7 @@ public class DocumentInputStream extends InputStream {
}
/**
* @see InputStream#read
* {@inheritDoc}
*/
public int read() throws IOException {
try {

View file

@ -127,11 +127,6 @@ public class CElementImageProvider {
return null;
}
/**
*
* @param type
* @return
*/
public static ImageDescriptor getImageDescriptor(int type) {
switch (type) {
case ICElement.C_VCONTAINER:

View file

@ -262,8 +262,11 @@ public class ProblemsLabelDecorator implements ILabelDecorator, ILightweightLabe
// }
/**
* Tests if a position is inside the source range of an element.
* @param pos Position to be tested.
* Tests if a position is inside the source range of an element. Usually this is done
* by looking at the offset. In case the offset equals <code>-1</code>, the line is
* tested.
* @param offSet offset to be tested
* @param line line to be tested
* @param sourceElement Source element (must be a ICElement)
* @return boolean Return <code>true</code> if position is located inside the source element.
* @throws CoreException Exception thrown if element range could not be accessed.

View file

@ -24,7 +24,7 @@ public class StandardCElementLabelProvider extends AppearanceAwareLabelProvider
/**
* Constructor for StandardCElementLabelProvider.
* @see CElementLabelProvider#CElementLabelProvider
* @see CElementLabelProvider#CElementLabelProvider()
*/
public StandardCElementLabelProvider(int textFlags, int imageFlags) {
super(textFlags, imageFlags);

View file

@ -10,10 +10,12 @@
*******************************************************************************/
package org.eclipse.cdt.ui;
import org.eclipse.cdt.core.model.ITranslationUnit;
import org.eclipse.cdt.internal.ui.codemanipulation.StubUtility;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.cdt.core.model.ITranslationUnit;
import org.eclipse.cdt.internal.ui.codemanipulation.StubUtility;
/**
* Class that offers access to the templates contained in the 'code generation' preference page.
*
@ -26,7 +28,7 @@ public class CodeGeneration {
/**
* Returns the content for a new compilation unit using the 'new Java file' code template.
* @param cu The compilation to create the source for. The compilation unit does not need to exist.
* @param tu The translation unit to create the source for. The compilation unit does not need to exist.
* @param typeComment The comment for the type to created. Used when the code template contains a ${typecomment} variable. Can be <code>null</code> if
* no comment should be added.
* @param typeContent The code of the type, including type declaration and body.
@ -40,7 +42,7 @@ public class CodeGeneration {
/**
* Returns the content for a new compilation unit using the 'new Java file' code template.
* @param cu The compilation to create the source for. The compilation unit does not need to exist.
* @param tu The translation unit to create the source for. The compilation unit does not need to exist.
* @param typeComment The comment for the type to created. Used when the code template contains a ${typecomment} variable. Can be <code>null</code> if
* no comment should be added.
* @param typeContent The code of the type, including type declaration and body.
@ -54,9 +56,9 @@ public class CodeGeneration {
/**
* Returns the content for a new type comment using the 'typecomment' code template. The returned content is unformatted and is not indented.
* @param cu The compilation where the type is contained. The compilation unit does not need to exist.
* @param tu The translation unit where the type is contained. The compilation unit does not need to exist.
* @param typeQualifiedName The name of the type to which the comment is added. For inner types the name must be qualified and include the outer
* types names (dot separated). See {@link org.eclipse.jdt.core.IType#getTypeQualifiedName(char)}.
* types names (dot separated).
* @param lineDelimiter The line delimiter to be used.
* @return Returns the new content or <code>null</code> if the code template is undefined or empty. The returned content is unformatted and is not indented.
* @throws CoreException

View file

@ -21,7 +21,7 @@ public class FunctionPrototypeSummary implements IFunctionSummary.IFunctionProto
/**
* Create a function prototype summary based on a prototype string.
* @param The string describing the prototype which is properly
* @param proto The string describing the prototype which is properly
* formed with following format -- returntype function(arguments)
* The following formats will be converted as follows:
* function(arguments) --> function(arguments) //constructors!

View file

@ -44,7 +44,6 @@ public interface IFunctionSummary {
* which depends on the variable namefirst
* namefirst == true: main(int argc, char **argv) int
* namefirst == false: int main(int argc, char **argv);
* @return
*/
public String getPrototypeString(boolean namefirst);
}

View file

@ -30,7 +30,7 @@ import org.eclipse.ui.IEditorInput;
* This interface is not intended to be implemented by clients.
* </p>
*
* @see JavaUI#getWorkingCopyManager
* @see CUIPlugin#getWorkingCopyManager
*/
public interface IWorkingCopyManager {

View file

@ -185,8 +185,6 @@ public class PreferenceConstants {
* <p>
* Value is of type <code>Boolean</code>.
* </p>
*
* @see #LINK_PACKAGES_TO_EDITOR
*/
public static final String BROWSING_LINK_VIEW_TO_EDITOR= "org.eclipse.cdt.ui.browsing.linktoeditor"; //$NON-NLS-1$
@ -280,8 +278,6 @@ public class PreferenceConstants {
* <p>
* Value is of type <code>Boolean</code>.
* </p>
*
* @see #LINK_PACKAGES_TO_EDITOR
*/
public static final String OUTLINE_GROUP_INCLUDES= "org.eclipse.cdt.ui.outline.groupincludes"; //$NON-NLS-1$
@ -290,8 +286,6 @@ public class PreferenceConstants {
* <p>
* Value is of type <code>Boolean</code>.
* </p>
*
* @see #LINK_PACKAGES_TO_EDITOR
*/
public static final String OUTLINE_GROUP_NAMESPACES= "org.eclipse.cdt.ui.outline.groupnamespaces"; //$NON-NLS-1$
@ -300,8 +294,6 @@ public class PreferenceConstants {
* <p>
* Value is of type <code>Boolean</code>.
* </p>
*
* @see #LINK_PACKAGES_TO_EDITOR
*/
public static final String CVIEW_GROUP_INCLUDES= "org.eclipse.cdt.ui.cview.groupincludes"; //$NON-NLS-1$

View file

@ -95,11 +95,11 @@ public class ControlFactory {
}
/**
* Creates thick separator.
* Creates a separator.
*
* @param parent the parent of the new composite
* @param color the separator color
* @return preferedThickness - the prefered thickness of separator (or 2 if SWT.DEFAULT)
* @param nCols number of columns to span
* @return a separator label
*/
public static Label createSeparator(Composite parent, int nCols) {
Label separator = new Label(parent, SWT.SEPARATOR | SWT.HORIZONTAL);
@ -326,9 +326,9 @@ public class ControlFactory {
* Create a List box
*
* @param parent the parent of the new control
* @param label the group box label
* @param nColumns - number of layout columns
* @return the new group box
* @param strdata the data for the list, separated by commas
* @param selData - the item that shall be selected
* @return the new list box
*/
public static List createList(Composite parent, String strdata, String selData) {
List list = new List(parent, SWT.SINGLE);
@ -478,7 +478,8 @@ public class ControlFactory {
* Create a selection combo
*
* @param parent the parent of the new text field
* @param string of comma separated tokens to fill selection list
* @param strdata of comma separated tokens to fill selection list
* @param selData the item that shall be selected
* @return the new combo
*/
public static CCombo createSelectCCombo(Composite parent, String strdata, String selData) {
@ -507,7 +508,8 @@ public class ControlFactory {
* Create a selection combo
*
* @param parent the parent of the new text field
* @param array of elements + selected element
* @param strdata array of elements
* @param selData selected element
* @return the new combo
*/
public static CCombo createSelectCCombo(Composite parent, String[] strdata, String selData) {
@ -548,7 +550,8 @@ public class ControlFactory {
* Create a selection combo
*
* @param parent the parent of the new text field
* @param string of comma separated tokens to fill selection list
* @param strdata of comma separated tokens to fill selection list
* @param selData the item that shall be selected
* @return the new combo
*/
public static Combo createSelectCombo(Composite parent, String strdata, String selData) {
@ -577,7 +580,8 @@ public class ControlFactory {
* Create a selection combo
*
* @param parent the parent of the new text field
* @param array of elements + selected element
* @param strdata array of elements
* @param selData selected element
* @return the new combo
*/
public static Combo createSelectCombo(Composite parent, String[] strdata, String selData) {

View file

@ -104,8 +104,6 @@ public class RadioButtonsArea extends Composite {
/**
* Create control area
*
* @return nothing
*/
protected void createControl(Composite parent, String labelText) {
GridLayout gl = new GridLayout();