More java-doc updates
authorBernd Hufmann <bhufmann@gmail.com>
Tue, 12 Jun 2012 16:02:20 +0000 (12:02 -0400)
committerBernd Hufmann <bhufmann@gmail.com>
Tue, 12 Jun 2012 16:02:46 +0000 (12:02 -0400)
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/util/TmfFixedArray.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/util/TmfSortedArrayList.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/project/wizards/ImportTraceWizardPage.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/TmfView.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/TracingPerspectiveFactory.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/rawviewer/TmfRawEventViewer.java

index b55be6dcc1c4c7666415327a13b3fa3a4187ec03..ef1b7ac2ff7eb0e9968f2f80dd105f58ba11949a 100755 (executable)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2011 Ericsson
+ * Copyright (c) 2011, 2012 Ericsson
  * 
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
@@ -28,6 +28,9 @@ import java.util.RandomAccess;
  * </ul></p>
  * <p>Those functions allow to use the FixedArray as the key of a {@link java.util.HashMap}.</p>
  *
+ * @version 1.0
+ * @author Francois Godin
+ *
  * @param <T> Type of the array content.
  */
 public final class TmfFixedArray<T> extends AbstractList<T> implements RandomAccess, Cloneable {
index fa52bdb531aaec3071e2abfdf4acce7ff39ab35e..56a623d28753dccf1128984a40cdd0f43c3e8e93 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2011 Ericsson
+ * Copyright (c) 2011, 2012 Ericsson
  * 
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
@@ -15,13 +15,20 @@ package org.eclipse.linuxtools.tmf.core.util;
 import java.util.ArrayList;
 
 /**
- * <b><u>TmfSortedArrayList</u></b>
- * <p>
+ * Implementation of a sorted array list.
+ * 
+ * @version 1.0
+ * @Francois Chouinard
  */
 
 public class TmfSortedArrayList<T> extends ArrayList<T> {
     private static final long serialVersionUID = 1L;
 
+    /**
+     * Inserts a new value in the list according to its sorted position.  
+     * 
+     * @param value A value to insert 
+     */
     @SuppressWarnings("unchecked")
     public void insertSorted(T value) {
         add(value);
index 217dc217c7611003a55e4c78d0a50a36cf2159d9..ae9f940aa1de88058e258bdc5796532ee24d5695 100644 (file)
@@ -85,8 +85,6 @@ import org.eclipse.ui.wizards.datatransfer.IImportStructureProvider;
 import org.eclipse.ui.wizards.datatransfer.ImportOperation;
 
 /**
- * <b><u>ImportTraceWizardPage</u></b>
- * <p>
  * A variant of the standard resource import wizard with the following changes:
  * <ul>
  * <li>A folder/file combined checkbox tree viewer to select traces
index 5d51787bc472b38cf469d3531ab7ac88b45a595d..c203565a5941610d855f6562ec490567877c8a3f 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2009, 2010 Ericsson
+ * Copyright (c) 2009, 2010, 2012 Ericsson
  * 
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
@@ -18,9 +18,13 @@ import org.eclipse.linuxtools.tmf.core.signal.TmfSignalManager;
 import org.eclipse.ui.part.ViewPart;
 
 /**
- * <b><u>TmfView</u></b>
- * <p>
- * TODO: Implement me. Please.
+ * Basic abstract TMF view class implementation.
+ * 
+ * It registers any sub class to the signal manager for receiving and sending
+ * TMF signals.  
+ * 
+ * @version 1.0
+ * @author Francois Chouinard
  */
 public abstract class TmfView extends ViewPart implements ITmfComponent {
 
@@ -30,12 +34,21 @@ public abstract class TmfView extends ViewPart implements ITmfComponent {
        // Constructor
        // ------------------------------------------------------------------------
 
+       /**
+        * Constructor. Creates a TMF view and registers to the signal manager.
+        * 
+        * @param viewName A view name
+        */
        public TmfView(String viewName) {
                super();
                fName = viewName;
                TmfSignalManager.register(this);
        }
 
+       /**
+        * Disposes this view and deregisters itself from the signal manager 
+        * @see org.eclipse.ui.part.WorkbenchPart#dispose()
+        */
        @Override
        public void dispose() {
                TmfSignalManager.deregister(this);
@@ -46,11 +59,19 @@ public abstract class TmfView extends ViewPart implements ITmfComponent {
        // ITmfComponent
        // ------------------------------------------------------------------------
 
+       /*
+        * (non-Javadoc)
+        * @see org.eclipse.linuxtools.tmf.core.component.ITmfComponent#getName()
+        */
        @Override
        public String getName() {
                return fName;
        }
        
+       /*
+        * (non-Javadoc)
+        * @see org.eclipse.linuxtools.tmf.core.component.ITmfComponent#broadcast(org.eclipse.linuxtools.tmf.core.signal.TmfSignal)
+        */
        @Override
        public void broadcast(TmfSignal signal) {
                TmfSignalManager.dispatchSignal(signal);
index 2a4a18bc11573b0281e71ca44274506d7de5119b..3190991377dd9d1a8c54535fb140a55785588b26 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2010, 2011 Ericsson
+ * Copyright (c) 2010, 2011, 2012 Ericsson
  * 
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
@@ -20,9 +20,11 @@ import org.eclipse.ui.IPageLayout;
 import org.eclipse.ui.IPerspectiveFactory;
 
 /**
- * <b><u>TracingPerspectiveFactory</u></b>
- * <p>
- * TODO: Implement me. Please.
+ * The tracing perspective definition.
+ * 
+ * @version 1.0
+ * @author Francois Chouinard
+ * 
  */
 public class TracingPerspectiveFactory implements IPerspectiveFactory {
 
@@ -30,7 +32,9 @@ public class TracingPerspectiveFactory implements IPerspectiveFactory {
     // Constants
     // ------------------------------------------------------------------------
 
-    // Perspective ID
+    /**
+     *  The Perspective ID
+     */
     public static final String ID = "org.eclipse.linuxtools.tmf.ui.perspective.tracing"; //$NON-NLS-1$
 
     // Standard TMF views
@@ -43,6 +47,7 @@ public class TracingPerspectiveFactory implements IPerspectiveFactory {
     private static final String PROPERTIES_VIEW_ID = IPageLayout.ID_PROP_SHEET;
     private static final String BOOKMARKS_VIEW_ID = IPageLayout.ID_BOOKMARKS;
 
+
     // ------------------------------------------------------------------------
     // IPerspectiveFactory
     // ------------------------------------------------------------------------
@@ -63,11 +68,6 @@ public class TracingPerspectiveFactory implements IPerspectiveFactory {
                 "topLeftFolder", IPageLayout.LEFT, 0.15f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
         topLeftFolder.addView(PROJECT_VIEW_ID);
 
-//        // Create the bottom left folder
-//        @SuppressWarnings("unused")
-//        IFolderLayout bottomLeftFolder = layout.createFolder(
-//                "bottomLeftFolder", IPageLayout.BOTTOM, 0.50f, "topLeftFolder"); //$NON-NLS-1$//$NON-NLS-2$
-
         // Create the top right folder
         IFolderLayout topRightFolder = layout.createFolder(
                 "topRightFolder", IPageLayout.TOP, 0.40f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
index 90b9bbd162a47a4668cb0360728da217583a82be..e6ff77486d7a87a74282f69434837407ba1fbb91 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************\r
- * Copyright (c) 2010 Ericsson\r
+ * Copyright (c) 2010, 2012 Ericsson\r
  * \r
  * All rights reserved. This program and the accompanying materials are\r
  * made available under the terms of the Eclipse Public License v1.0 which\r
@@ -50,8 +50,6 @@ import org.eclipse.swt.widgets.Menu;
 import org.eclipse.swt.widgets.Slider;\r
 \r
 /**\r
- * <b><u>TmfRawEventViewer</u></b>\r
- * <p>\r
  * TmfRawEventViewer allows for the display of the raw data for an arbitrarily\r
  * large number of TMF events.\r
  * \r
@@ -59,6 +57,9 @@ import org.eclipse.swt.widgets.Slider;
  * of visible lines in the StyledText control is set to fill the viewer display area.\r
  * An underlying data model is used to store a cache of event raw text line data.\r
  * The slider is ratio-based.\r
+ * \r
+ * @version 1.0\r
+ * @author Patrick Tasse\r
  */\r
 public class TmfRawEventViewer extends Composite implements ControlListener, SelectionListener,\r
                 KeyListener, CaretListener, MouseMoveListener, MouseTrackListener, MouseWheelListener {\r
@@ -124,8 +125,9 @@ public class TmfRawEventViewer extends Composite implements ControlListener, Sel
        // ------------------------------------------------------------------------\r
 \r
        /**\r
-        * @param parent\r
-        * @param style\r
+        * Constructor\r
+        * @param parent The parent composite\r
+        * @param style The style bits\r
         */\r
        public TmfRawEventViewer(Composite parent, int style) {\r
                super(parent, style & (~SWT.H_SCROLL) & (~SWT.V_SCROLL));\r
@@ -241,6 +243,10 @@ public class TmfRawEventViewer extends Composite implements ControlListener, Sel
         fStyledText.setMenu(menu);\r
     }\r
 \r
+    /**\r
+     * Sets the trace and updates the content\r
+     * @param trace The trace to set\r
+     */\r
     public void setTrace(ITmfTrace<?> trace) {\r
            fTrace = trace;\r
            fTopLineIndex = 0;\r
@@ -248,6 +254,9 @@ public class TmfRawEventViewer extends Composite implements ControlListener, Sel
            refreshEventCount();\r
        }\r
 \r
+    /**\r
+     * Refreshes the event count, updates the slider thumb and loads display\r
+     */\r
        public void refreshEventCount() {\r
                if (fTrace != null) {\r
                        if (fTrace.getNbEvents() > 0) {\r
@@ -270,6 +279,10 @@ public class TmfRawEventViewer extends Composite implements ControlListener, Sel
                }\r
        }\r
        \r
+       /**\r
+        * Selects the event of given rank and makes it visible.\r
+        * @param rank The rank of event\r
+        */\r
     public void selectAndReveal(long rank) {\r
         if (fTrace == null || !isVisible()) {\r
             return;\r
@@ -293,13 +306,20 @@ public class TmfRawEventViewer extends Composite implements ControlListener, Sel
             refreshLineBackgrounds();\r
         }\r
     }\r
-    \r
+    /**\r
+     * Add a selection listener\r
+     * @param listener A listener to add\r
+     */\r
     public void addSelectionListener(Listener listener) {\r
         checkWidget();\r
         if (listener == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);\r
         addListener (SWT.Selection, listener);\r
     }\r
 \r
+    /**\r
+     * Remove selection listener\r
+     * @param listener A listener to remove\r
+     */\r
     public void removeSelectionListener(Listener listener) {\r
         checkWidget();\r
         if (listener == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);\r
This page took 0.031911 seconds and 5 git commands to generate.