tmf: Update copyright headers in tmf.ui
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / uml2sd / dialogs / Criteria.java
index 4c14fb78deeced2800e1dda97cdd6d7655962ee8..927078b3bf46cb501579ece96b0b347ee91582ef 100755 (executable)
@@ -1,16 +1,15 @@
 /**********************************************************************
- * Copyright (c) 2005, 2006 IBM Corporation and others.
- * Copyright (c) 2011, 2012 Ericsson.
- * 
+ * Copyright (c) 2005, 2012 IBM Corporation, Ericsson
  * All rights reserved.   This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
- * 
- * Contributors: 
- * IBM - Initial API and implementation
- * Bernd Hufmann - Updated for TMF
+ *
+ * Contributors:
+ *     IBM - Initial API and implementation
+ *     Bernd Hufmann - Updated for TMF
  **********************************************************************/
+
 package org.eclipse.linuxtools.tmf.ui.views.uml2sd.dialogs;
 
 import java.util.ArrayList;
@@ -64,11 +63,11 @@ public class Criteria {
      */
     protected boolean fStopSelected = false;
     /**
-     * The find expression. 
+     * The find expression.
      */
     protected String  fExpression = null;
     /**
-     * The find pattern as regular expression. 
+     * The find pattern as regular expression.
      */
     protected Pattern pattern = null;
 
@@ -84,7 +83,7 @@ public class Criteria {
 
     /**
      * Copy constructor
-     * 
+     *
      * @param other Criteria to create new criteria
      */
     public Criteria (Criteria other) {
@@ -105,7 +104,7 @@ public class Criteria {
 
     /**
      * Returns true if the AsyncMessageReturn is selected, false otherwise.
-     * 
+     *
      * @return true if the AsyncMessageReturn is selected, false otherwise
      */
     public boolean isAsyncMessageReturnSelected() {
@@ -114,7 +113,7 @@ public class Criteria {
 
     /**
      * Returns true if the AsyncMessage is selected, false otherwise.
-     * 
+     *
      * @return true if the AsyncMessage is selected, false otherwise
      */
     public boolean isAsyncMessageSelected() {
@@ -123,7 +122,7 @@ public class Criteria {
 
     /**
      * Returns the text enter by the user.
-     * 
+     *
      * @return the expression text
      */
     public String getExpression() {
@@ -132,17 +131,18 @@ public class Criteria {
 
     /**
      * Returns the regular expression pattern.
-     * 
+     *
      * @return the regular expression pattern
      */
     public Pattern getPattern() {
         return pattern;
     }
-    
+
     /**
      * Sets the regular expression pattern.
-     * 
-     * @param the pattern to set
+     *
+     * @param pattern
+     *            The pattern to set
      */
     public void setPattern(Pattern pattern) {
         this.pattern = pattern;
@@ -150,7 +150,7 @@ public class Criteria {
 
     /**
      * Returns true if the LifeLine is selected, false otherwise.
-     * 
+     *
      * @return true if the LifeLine is selected, false otherwise
      */
     public boolean isLifeLineSelected() {
@@ -159,7 +159,7 @@ public class Criteria {
 
     /**
      * Returns true if the Stop is selected, false otherwise.
-     * 
+     *
      * @return true if the Stop is selected, false otherwise
      */
     public boolean isStopSelected() {
@@ -168,7 +168,7 @@ public class Criteria {
 
     /**
      * Returns true if the SyncMessageReturn is selected, false otherwise.
-     * 
+     *
      * @return true if the SyncMessageReturn is selected, false otherwise
      */
     public boolean isSyncMessageReturnSelected() {
@@ -177,7 +177,7 @@ public class Criteria {
 
     /**
      * Returns true if the SyncMessage is selected, false otherwise.
-     * 
+     *
      * @return true if the SyncMessage is selected, false otherwise
      */
     public boolean isSyncMessageSelected() {
@@ -186,7 +186,7 @@ public class Criteria {
 
     /**
      * Sets the AsyncMessageReturn selection state.
-     * 
+     *
      * @param b true if selected, false otherwise
      */
     public void setAsyncMessageReturnSelected(boolean b) {
@@ -195,7 +195,7 @@ public class Criteria {
 
     /**
      * Sets the AsyncMessage selection state.
-     * 
+     *
      * @param b true if selected, false otherwise
      */
     public void setAsyncMessageSelected(boolean b) {
@@ -204,7 +204,7 @@ public class Criteria {
 
     /**
      * Sets the text entered by the user and compiles the regular expression.
-     * 
+     *
      * @param string the text
      */
     public void setExpression(String string) {
@@ -214,7 +214,7 @@ public class Criteria {
 
     /**
      * Sets the Stop selection state.
-     * 
+     *
      * @param b true if selected, false otherwise
      */
     public void setLifeLineSelected(boolean b) {
@@ -223,7 +223,7 @@ public class Criteria {
 
     /**
      * Set Stop selection state.
-     * 
+     *
      * @param b true if selected, false otherwise
      */
     public void setStopSelected(boolean b) {
@@ -232,7 +232,7 @@ public class Criteria {
 
     /**
      * Sets the SyncMessageReturn selection state.
-     * 
+     *
      * @param b true if selected, false otherwise
      */
     public void setSyncMessageReturnSelected(boolean b) {
@@ -241,7 +241,7 @@ public class Criteria {
 
     /**
      * Sets the SyncMessage selection state.
-     * 
+     *
      * @param b true if selected, false otherwise
      */
     public void setSyncMessageSelected(boolean b) {
@@ -250,7 +250,7 @@ public class Criteria {
 
     /**
      * Returns true if the case sensitive is selected, false otherwise.
-     * 
+     *
      * @return true if the case sensitive is selected, false otherwise
      */
     public boolean isCaseSenstiveSelected() {
@@ -259,7 +259,7 @@ public class Criteria {
 
     /**
      * Set case sensitive selection state.
-     * 
+     *
      * @param b true if selected, false otherwise
      */
     public void setCaseSenstiveSelected(boolean b) {
@@ -270,7 +270,7 @@ public class Criteria {
 
     /**
      * Compares this criteria with a given criteria.
-     *  
+     *
      * @param to The criteria to compare
      * @return usual comparison result (< 0, 0, > 0)
      */
@@ -280,14 +280,14 @@ public class Criteria {
             retVal = getExpression().equals(to.getExpression());
         } else if (to.getExpression() != null) {
             retVal = to.getExpression().equals(getExpression());
-        } 
+        }
         return retVal && isCaseSenstiveSelected() == to.isCaseSenstiveSelected() && isAsyncMessageReturnSelected() == to.isAsyncMessageReturnSelected() && isAsyncMessageSelected() == to.isAsyncMessageSelected()
                 && isLifeLineSelected() == to.isLifeLineSelected() && isStopSelected() == to.isStopSelected() && isSyncMessageReturnSelected() == to.isSyncMessageReturnSelected() && isSyncMessageSelected() == to.isSyncMessageSelected();
     }
 
     /**
      * Saves current criteria attributes in the dialog settings.
-     *  
+     *
      * @param settings The dialog settings
      */
     public void save(DialogSettings settings) {
@@ -303,7 +303,7 @@ public class Criteria {
 
     /**
      * Loads the criteria with values of the dialog settings.
-     * 
+     *
      * @param settings The dialog settings
      */
     public void load(DialogSettings settings) {
@@ -319,7 +319,7 @@ public class Criteria {
 
     /**
      * Gets the summary of supported graph nodes.
-     * 
+     *
      * @param provider A filter provider
      * @param loaderClassName A class loader
      * @return graph node summary
@@ -369,7 +369,7 @@ public class Criteria {
         StringBuffer ret = new StringBuffer();
         String prefix = "["; //$NON-NLS-1$
         for (Iterator<String> i = list.iterator(); i.hasNext();) {
-            String s = (String) i.next();
+            String s = i.next();
             ret.append(prefix);
             ret.append(s);
             prefix = " " + SDMessages._34 + " "; //$NON-NLS-1$ //$NON-NLS-2$
@@ -380,7 +380,7 @@ public class Criteria {
 
     /**
      * Matches given string using compiled pattern based on user expression.
-     * 
+     *
      * @param stringToMatch  A string to match
      * @return true if string matches expression
      */
@@ -401,7 +401,7 @@ public class Criteria {
                     pattern = Pattern.compile(fExpression);
                 }
                 else {
-                    pattern = Pattern.compile(fExpression, Pattern.CASE_INSENSITIVE);   
+                    pattern = Pattern.compile(fExpression, Pattern.CASE_INSENSITIVE);
                 }
             } catch (PatternSyntaxException e) {
                 pattern = null;
This page took 0.027455 seconds and 5 git commands to generate.