Kaydet (Commit) e527a340 authored tarafından Noel Grandin's avatar Noel Grandin

Java cleanup, convert more Vector to ArrayList

Change-Id: Icb807382eaf50f515f2c9dfada0c061414baed33
üst 587c59fb
...@@ -174,7 +174,7 @@ public class EmbedContApp extends Applet ...@@ -174,7 +174,7 @@ public class EmbedContApp extends Applet
} catch( Exception e ) { System.exit( 0 ); } } catch( Exception e ) { System.exit( 0 ); }
m_oActionsNumberLock = new Object(); m_oActionsNumberLock = new Object();
m_aActionsList = new Vector(); m_aActionsList = new ArrayList();
m_oInHandlerLock = new Object(); m_oInHandlerLock = new Object();
m_oImageLock = new Object(); m_oImageLock = new Object();
...@@ -484,7 +484,7 @@ public class EmbedContApp extends Applet ...@@ -484,7 +484,7 @@ public class EmbedContApp extends Applet
{ {
for( int nInd = 0; nInd < m_aActionsList.size(); nInd++ ) for( int nInd = 0; nInd < m_aActionsList.size(); nInd++ )
{ {
ActionObject aAction = ( ActionObject ) m_aActionsList.get( nInd ); ActionObject aAction = m_aActionsList.get( nInd );
if ( aAction != null ) if ( aAction != null )
{ {
if ( aAction.m_nID == DESTROY ) if ( aAction.m_nID == DESTROY )
...@@ -784,7 +784,7 @@ public class EmbedContApp extends Applet ...@@ -784,7 +784,7 @@ public class EmbedContApp extends Applet
m_aActionsList.add( new ActionObject( nActionID, sParam ) ); m_aActionsList.add( new ActionObject( nActionID, sParam ) );
else else
{ {
ActionObject aAction = ( ActionObject ) m_aActionsList.get( nSize - 1 ); ActionObject aAction = m_aActionsList.get( nSize - 1 );
if ( aAction != null && aAction.m_nID != DESTROY ) if ( aAction != null && aAction.m_nID != DESTROY )
m_aActionsList.add( new ActionObject( nActionID, sParam ) ); m_aActionsList.add( new ActionObject( nActionID, sParam ) );
} }
......
...@@ -81,7 +81,7 @@ public class Splitter ...@@ -81,7 +81,7 @@ public class Splitter
// generate all type fragments // generate all type fragments
m_aDataSet.m_aDebug.setGlobalInfo("generate type fragments ..."); m_aDataSet.m_aDebug.setGlobalInfo("generate type fragments ...");
java.util.Vector lNames = m_aDataSet.m_aCache.getItemNames(Cache.E_TYPE); java.util.ArrayList lNames = m_aDataSet.m_aCache.getItemNames(Cache.E_TYPE);
java.util.Enumeration it = lNames.elements(); java.util.Enumeration it = lNames.elements();
while(it.hasMoreElements()) while(it.hasMoreElements())
generateXMLFragment(Cache.E_TYPE, (java.lang.String)it.nextElement(), m_aDataSet.m_aFragmentDirTypes); generateXMLFragment(Cache.E_TYPE, (java.lang.String)it.nextElement(), m_aDataSet.m_aFragmentDirTypes);
......
...@@ -57,13 +57,13 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis ...@@ -57,13 +57,13 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis
private boolean m_bSettingDate; private boolean m_bSettingDate;
private boolean m_bAdjustingFilterList; private boolean m_bAdjustingFilterList;
private short m_nPreviousFilterIndex; private short m_nPreviousFilterIndex;
private java.util.Vector m_aFilterDates; private java.util.ArrayList m_aFilterDates;
/* ------------------------------------------------------------------ */ /* ------------------------------------------------------------------ */
public SalesFilter( DocumentHelper aDocument, XPropertySet xSalesForm, public SalesFilter( DocumentHelper aDocument, XPropertySet xSalesForm,
XPropertySet xFilterListBox, XPropertySet xManualFilterEdit, XPropertySet xStartFilterButton ) XPropertySet xFilterListBox, XPropertySet xManualFilterEdit, XPropertySet xStartFilterButton )
{ {
m_aFilterDates = new java.util.Vector(); m_aFilterDates = new java.util.ArrayList();
m_bSettingsDirty = false; m_bSettingsDirty = false;
m_bSettingDate = false; m_bSettingDate = false;
m_bAdjustingFilterList = false; m_bAdjustingFilterList = false;
...@@ -311,7 +311,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis ...@@ -311,7 +311,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis
m_aDocument.getCurrentView().grabControlFocus( m_xManualFilter ); m_aDocument.getCurrentView().grabControlFocus( m_xManualFilter );
m_bSettingDate = true; m_bSettingDate = true;
Object aSelectedDateLimit = m_aFilterDates.elementAt( m_nPreviousFilterIndex ); Object aSelectedDateLimit = m_aFilterDates.get( m_nPreviousFilterIndex );
if ( null != aSelectedDateLimit ) if ( null != aSelectedDateLimit )
{ {
// translate this date into one the AWT Toolkit understands // translate this date into one the AWT Toolkit understands
...@@ -374,7 +374,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis ...@@ -374,7 +374,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis
{ {
if ( !isManualFilter( (short)i ) ) // do not compare with the manual filter if ( !isManualFilter( (short)i ) ) // do not compare with the manual filter
{ {
GregorianCalendar aCheckCal = getCalendarObject( (java.util.Date)m_aFilterDates.elementAt( i ) ); GregorianCalendar aCheckCal = getCalendarObject( (java.util.Date)m_aFilterDates.get( i ) );
if ( equalDate( aDateCal, aCheckCal ) ) if ( equalDate( aDateCal, aCheckCal ) )
return (short)i; return (short)i;
} }
...@@ -386,7 +386,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis ...@@ -386,7 +386,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis
// the first (and thus oldes) user defined item // the first (and thus oldes) user defined item
aFilterItems.remove( 6 ); aFilterItems.remove( 6 );
// keep our date vector synchron // keep our date vector synchron
m_aFilterDates.removeElementAt( 6 ); m_aFilterDates.remove( 6 );
} }
// add the current user defined filter // add the current user defined filter
......
...@@ -118,7 +118,7 @@ public class SubscribedNewsgroups { ...@@ -118,7 +118,7 @@ public class SubscribedNewsgroups {
} }
//System.out.println("mailrc files found"); //System.out.println("mailrc files found");
ArrayList subscribed = new ArrayList(); ArrayList<NewsGroup> subscribed = new ArrayList<NewsGroup>();
// Get the newsgroups in each mailrc file // Get the newsgroups in each mailrc file
for( int i=0; i < allMailrcs.length; i++ ) for( int i=0; i < allMailrcs.length; i++ )
{ {
...@@ -137,7 +137,7 @@ public class SubscribedNewsgroups { ...@@ -137,7 +137,7 @@ public class SubscribedNewsgroups {
// Copy all unique Newsgroups into the global array // Copy all unique Newsgroups into the global array
allSubscribed = new NewsGroup[ subscribed.size() ]; allSubscribed = new NewsGroup[ subscribed.size() ];
subscribed.copyInto( allSubscribed ); subscribed.toArray( allSubscribed );
// Test that at least one subscribed newsgroup has been found // Test that at least one subscribed newsgroup has been found
if( allSubscribed.length < 1 ) if( allSubscribed.length < 1 )
{ {
...@@ -153,11 +153,11 @@ public class SubscribedNewsgroups { ...@@ -153,11 +153,11 @@ public class SubscribedNewsgroups {
// Tests if the NewsGroup object has already been listed by another mailrc file // Tests if the NewsGroup object has already been listed by another mailrc file
private static boolean listed( NewsGroup newsgroup, Vector uniqueSubscription ) private static boolean listed( NewsGroup newsgroup, ArrayList<NewsGroup> uniqueSubscription )
{ {
for(int i=0; i < uniqueSubscription.size(); i++) for(int i=0; i < uniqueSubscription.size(); i++)
{ {
NewsGroup tempGroup = (NewsGroup) uniqueSubscription.elementAt(i); NewsGroup tempGroup = uniqueSubscription.elementAt(i);
// Test for duplication // Test for duplication
if(newsgroup.getHostName().equalsIgnoreCase( tempGroup.getHostName()) && if(newsgroup.getHostName().equalsIgnoreCase( tempGroup.getHostName()) &&
newsgroup.getNewsgroupName().equalsIgnoreCase( tempGroup.getNewsgroupName() ) ) newsgroup.getNewsgroupName().equalsIgnoreCase( tempGroup.getNewsgroupName() ) )
......
...@@ -166,8 +166,8 @@ public class ParcelFolderSupport implements ParcelFolderCookie ...@@ -166,8 +166,8 @@ public class ParcelFolderSupport implements ParcelFolderCookie
File contents = FileUtil.toFile( File contents = FileUtil.toFile(
primary.getFileObject(ParcelZipper.CONTENTS_DIRNAME)); primary.getFileObject(ParcelZipper.CONTENTS_DIRNAME));
Vector classpath = getConfigureClasspath(); ArrayList<String> classpath = getConfigureClasspath();
classpath.addElement(contents.getAbsolutePath()); classpath.add(contents.getAbsolutePath());
try { try {
ParcelDescriptor descriptor = getParcelDescriptor(); ParcelDescriptor descriptor = getParcelDescriptor();
...@@ -210,8 +210,8 @@ public class ParcelFolderSupport implements ParcelFolderCookie ...@@ -210,8 +210,8 @@ public class ParcelFolderSupport implements ParcelFolderCookie
return true; return true;
} }
private Vector getConfigureClasspath() { private ArrayList<String> getConfigureClasspath() {
ArrayList result = new ArrayList(); ArrayList<String> result = new ArrayList<String>();
String classpath = NbClassPath.createRepositoryPath().getClassPath(); String classpath = NbClassPath.createRepositoryPath().getClassPath();
if ( System.getProperty( "os.name" ).startsWith( "Windows" ) ) if ( System.getProperty( "os.name" ).startsWith( "Windows" ) )
......
...@@ -105,7 +105,7 @@ class AccessibleTreeHandler ...@@ -105,7 +105,7 @@ class AccessibleTreeHandler
if ((nIndex >= 0) || (nIndex <= maChildList.size())) if ((nIndex >= 0) || (nIndex <= maChildList.size()))
{ {
aChild = NodeFactory.Instance().createDefaultNode (xChild, aParent); aChild = NodeFactory.Instance().createDefaultNode (xChild, aParent);
maChildList.insertElementAt (aChild, nIndex); maChildList.add (nIndex, aChild);
} }
} }
} }
...@@ -121,7 +121,7 @@ class AccessibleTreeHandler ...@@ -121,7 +121,7 @@ class AccessibleTreeHandler
{ {
synchronized (maChildList) synchronized (maChildList)
{ {
maChildList.setElementAt (null, 0); maChildList.set (0, null);
} }
} }
} }
...@@ -76,7 +76,7 @@ abstract class NodeHandler ...@@ -76,7 +76,7 @@ abstract class NodeHandler
aChild = createChild (aParent, nIndex); aChild = createChild (aParent, nIndex);
if (aChild == null) if (aChild == null)
aChild = new StringNode ("could not create child", aParent); aChild = new StringNode ("could not create child", aParent);
maChildList.setElementAt (aChild, nIndex); maChildList.set (nIndex, aChild);
} }
return aChild; return aChild;
} }
...@@ -99,7 +99,7 @@ abstract class NodeHandler ...@@ -99,7 +99,7 @@ abstract class NodeHandler
synchronized (maChildList) synchronized (maChildList)
{ {
System.out.println (" removing child at position " + nIndex + ": " System.out.println (" removing child at position " + nIndex + ": "
+ maChildList.elementAt (nIndex)); + maChildList.get (nIndex));
maChildList.remove (nIndex); maChildList.remove (nIndex);
} }
} }
......
...@@ -25,9 +25,9 @@ import java.io.File; ...@@ -25,9 +25,9 @@ import java.io.File;
import java.io.FileWriter; import java.io.FileWriter;
import java.io.FilenameFilter; import java.io.FilenameFilter;
import java.io.PrintWriter; import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.StringTokenizer; import java.util.StringTokenizer;
import java.util.Vector;
import lib.TestParameters; import lib.TestParameters;
...@@ -156,7 +156,7 @@ public class CheckMemoryUsage /* extends ComplexTestCase */ ...@@ -156,7 +156,7 @@ public class CheckMemoryUsage /* extends ComplexTestCase */
// get the file extension, export filter connection // get the file extension, export filter connection
Iterator<String> keys = param.keySet().iterator(); Iterator<String> keys = param.keySet().iterator();
Vector<String> v = new Vector<String>(); ArrayList<String> v = new ArrayList<String>();
while (keys.hasNext()) while (keys.hasNext())
{ {
String key = keys.next(); String key = keys.next();
......
...@@ -53,7 +53,7 @@ public class FileAccess ...@@ -53,7 +53,7 @@ public class FileAccess
{ {
/** /**
* *
* @param xMSF * @param xMSF
* @param sPath * @param sPath
* @param sAddPath * @param sAddPath
...@@ -497,7 +497,7 @@ public class FileAccess ...@@ -497,7 +497,7 @@ public class FileAccess
* @param xMSF * @param xMSF
* @param FilterName the prefix of the filename. a "-" is added to the prefix ! * @param FilterName the prefix of the filename. a "-" is added to the prefix !
* @param FolderName the folder (URL) to look for files... * @param FolderName the folder (URL) to look for files...
* @return an array with two array members. The first one, with document titles, * @return an array with two array members. The first one, with document titles,
* the second with the corresponding URLs. * the second with the corresponding URLs.
* @deprecated please use the getFolderTitles() with ArrayList * @deprecated please use the getFolderTitles() with ArrayList
*/ */
...@@ -506,8 +506,8 @@ public class FileAccess ...@@ -506,8 +506,8 @@ public class FileAccess
String[][] LocLayoutFiles = new String[2][]; String[][] LocLayoutFiles = new String[2][];
try try
{ {
java.util.Vector<String> TitleVector = null; java.util.ArrayList<String> TitleVector = null;
java.util.Vector<String> NameVector = null; java.util.ArrayList<String> NameVector = null;
XInterface xDocInterface = (XInterface) xMSF.createInstance("com.sun.star.document.DocumentProperties"); XInterface xDocInterface = (XInterface) xMSF.createInstance("com.sun.star.document.DocumentProperties");
XDocumentProperties xDocProps = UnoRuntime.queryInterface(XDocumentProperties.class, xDocInterface); XDocumentProperties xDocProps = UnoRuntime.queryInterface(XDocumentProperties.class, xDocInterface);
...@@ -517,8 +517,8 @@ public class FileAccess ...@@ -517,8 +517,8 @@ public class FileAccess
String[] nameList = xSimpleFileAccess.getFolderContents(FolderName, false); String[] nameList = xSimpleFileAccess.getFolderContents(FolderName, false);
TitleVector = new java.util.Vector<String>(/*nameList.length*/); TitleVector = new java.util.ArrayList<String>(/*nameList.length*/);
NameVector = new java.util.Vector<String>(nameList.length); NameVector = new java.util.ArrayList<String>(nameList.length);
FilterName = FilterName == null || FilterName.equals(PropertyNames.EMPTY_STRING) ? null : FilterName + "-"; FilterName = FilterName == null || FilterName.equals(PropertyNames.EMPTY_STRING) ? null : FilterName + "-";
...@@ -531,15 +531,15 @@ public class FileAccess ...@@ -531,15 +531,15 @@ public class FileAccess
if (FilterName == null || fileName.startsWith(FilterName)) if (FilterName == null || fileName.startsWith(FilterName))
{ {
xDocProps.loadFromMedium(nameList[i], noArgs); xDocProps.loadFromMedium(nameList[i], noArgs);
NameVector.addElement(nameList[i]); NameVector.add(nameList[i]);
TitleVector.addElement(xDocProps.getTitle()); TitleVector.add(xDocProps.getTitle());
} }
} }
String[] LocNameList = new String[NameVector.size()]; String[] LocNameList = new String[NameVector.size()];
String[] LocTitleList = new String[TitleVector.size()]; String[] LocTitleList = new String[TitleVector.size()];
NameVector.copyInto(LocNameList); NameVector.toArray(LocNameList);
TitleVector.copyInto(LocTitleList); TitleVector.toArray(LocTitleList);
LocLayoutFiles[1] = LocNameList; LocLayoutFiles[1] = LocNameList;
LocLayoutFiles[0] = LocTitleList; LocLayoutFiles[0] = LocTitleList;
...@@ -598,7 +598,7 @@ public class FileAccess ...@@ -598,7 +598,7 @@ public class FileAccess
} }
/** /**
* *
* @param xMSF * @param xMSF
* @param _sStartFilterName * @param _sStartFilterName
* @param FolderNames * @param FolderNames
...@@ -1050,7 +1050,7 @@ public class FileAccess ...@@ -1050,7 +1050,7 @@ public class FileAccess
} }
/** /**
* shortens a filename to a user displayable representation. * shortens a filename to a user displayable representation.
* @param path * @param path
* @param maxLength * @param maxLength
* @return * @return
......
...@@ -92,11 +92,11 @@ public class JavaTools ...@@ -92,11 +92,11 @@ public class JavaTools
/**converts a list of Integer values included in an Integer vector to a list of int values /**converts a list of Integer values included in an Integer vector to a list of int values
* *
* *
* @param _aIntegerVector * @param _aIntegerVector
* @return * @return
*/ */
public static int[] IntegerTointList(Vector<Integer> _aIntegerVector) public static int[] IntegerTointList(java.util.List<Integer> _aIntegerVector)
{ {
try try
{ {
...@@ -117,12 +117,12 @@ public class JavaTools ...@@ -117,12 +117,12 @@ public class JavaTools
} }
/**converts a list of Boolean values included in a Boolean vector to a list of boolean values /**converts a list of Boolean values included in a Boolean vector to a list of boolean values
* *
* *
* @param _aBooleanVector * @param _aBooleanVector
* @return * @return
*/ */
public static boolean[] BooleanTobooleanList(Vector<Boolean> _aBooleanVector) public static boolean[] BooleanTobooleanList(java.util.List<Boolean> _aBooleanVector)
{ {
try try
{ {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
*/ */
package com.sun.star.wizards.db; package com.sun.star.wizards.db;
import java.util.Vector; import java.util.ArrayList;
import com.sun.star.beans.XPropertySet; import com.sun.star.beans.XPropertySet;
import com.sun.star.sdbc.ColumnSearch; import com.sun.star.sdbc.ColumnSearch;
...@@ -69,27 +69,27 @@ public class TypeInspector ...@@ -69,27 +69,27 @@ public class TypeInspector
try try
{ {
xResultSet = _xResultSet; xResultSet = _xResultSet;
Vector<String> aTypeNameVector = new Vector<String>(); ArrayList<String> aTypeNameVector = new ArrayList<String>();
Vector<Integer> aTypeVector = new Vector<Integer>(); ArrayList<Integer> aTypeVector = new ArrayList<Integer>();
Vector<Integer> aNullableVector = new Vector<Integer>(); ArrayList<Integer> aNullableVector = new ArrayList<Integer>();
Vector<Boolean> aAutoIncrementVector = new Vector<Boolean>(); ArrayList<Boolean> aAutoIncrementVector = new ArrayList<Boolean>();
Vector<Integer> aPrecisionVector = new Vector<Integer>(); ArrayList<Integer> aPrecisionVector = new ArrayList<Integer>();
Vector<Integer> aMinScaleVector = new Vector<Integer>(); ArrayList<Integer> aMinScaleVector = new ArrayList<Integer>();
Vector<Integer> aMaxScaleVector = new Vector<Integer>(); ArrayList<Integer> aMaxScaleVector = new ArrayList<Integer>();
Vector<Integer> aSearchableVector = new Vector<Integer>(); ArrayList<Integer> aSearchableVector = new ArrayList<Integer>();
// Integer[] aIntegerDataTypes = null; // Integer[] aIntegerDataTypes = null;
// XResultSet xResultSet = xDBMetaDagetTypeInfo(); // XResultSet xResultSet = xDBMetaDagetTypeInfo();
XRow xRow = UnoRuntime.queryInterface(XRow.class, xResultSet); XRow xRow = UnoRuntime.queryInterface(XRow.class, xResultSet);
while (xResultSet.next()) while (xResultSet.next())
{ {
aTypeNameVector.addElement(xRow.getString(1)); aTypeNameVector.add(xRow.getString(1));
aTypeVector.addElement(new Integer(xRow.getShort(2))); aTypeVector.add(new Integer(xRow.getShort(2)));
aPrecisionVector.addElement(new Integer(xRow.getInt(3))); aPrecisionVector.add(new Integer(xRow.getInt(3)));
aNullableVector.addElement(new Integer(xRow.getShort(7))); aNullableVector.add(new Integer(xRow.getShort(7)));
aSearchableVector.addElement(new Integer(xRow.getShort(9))); aSearchableVector.add(new Integer(xRow.getShort(9)));
aAutoIncrementVector.addElement(Boolean.valueOf(xRow.getBoolean(12))); aAutoIncrementVector.add(Boolean.valueOf(xRow.getBoolean(12)));
aMinScaleVector.addElement(new Integer(xRow.getShort(14))); aMinScaleVector.add(new Integer(xRow.getShort(14)));
aMaxScaleVector.addElement(new Integer(xRow.getShort(15))); aMaxScaleVector.add(new Integer(xRow.getShort(15)));
} }
sDataTypeNames = new String[aTypeNameVector.size()]; sDataTypeNames = new String[aTypeNameVector.size()];
...@@ -404,21 +404,21 @@ public class TypeInspector ...@@ -404,21 +404,21 @@ public class TypeInspector
return (getAutoIncrementIndex(_xColPropertySet) != INVALID); return (getAutoIncrementIndex(_xColPropertySet) != INVALID);
} }
/** finds the first available DataType that can be used as a primary key in a table. /** finds the first available DataType that can be used as a primary key in a table.
* @return The first datatype that also supports Autoincrmentation is taken according to the following list: * @return The first datatype that also supports Autoincrmentation is taken according to the following list:
*1) INTEGER *1) INTEGER
*2) FLOAT *2) FLOAT
*3) REAL *3) REAL
*4) DOUBLE *4) DOUBLE
*5) NUMERIC *5) NUMERIC
*6) DECIMAL * *6) DECIMAL *
* If no appropriate datatype is found ther first available numeric type after DataType.INTEGER * If no appropriate datatype is found ther first available numeric type after DataType.INTEGER
* according to the 'convertDataType' method is returned * according to the 'convertDataType' method is returned
*/ */
/**TODO the fallback order is the same as implemented in the method 'convertDataType'. /**TODO the fallback order is the same as implemented in the method 'convertDataType'.
* It's not very elegant to have the same intelligence * It's not very elegant to have the same intelligence
* on several spots in the class!! * on several spots in the class!!
* *
*/ */
public TypeInfo findAutomaticPrimaryKeyType() public TypeInfo findAutomaticPrimaryKeyType()
{ {
......
...@@ -604,17 +604,17 @@ public class FieldSelection ...@@ -604,17 +604,17 @@ public class FieldSelection
{ {
int MaxOriginalCount = AllFieldNames.length; int MaxOriginalCount = AllFieldNames.length;
String[] SelList = xFieldsListBox.getItems(); String[] SelList = xFieldsListBox.getItems();
Vector<String> NewSourceVector = new Vector<String>(); ArrayList<String> NewSourceVector = new ArrayList<String>();
for (int i = 0; i < MaxOriginalCount; i++) for (int i = 0; i < MaxOriginalCount; i++)
{ {
SearchString = AllFieldNames[i]; SearchString = AllFieldNames[i];
if (JavaTools.FieldInList(SelList, SearchString) != -1) if (JavaTools.FieldInList(SelList, SearchString) != -1)
{ {
NewSourceVector.addElement(SearchString); NewSourceVector.add(SearchString);
} }
else if (JavaTools.FieldInList(OldSelFieldItems, SearchString) != -1) else if (JavaTools.FieldInList(OldSelFieldItems, SearchString) != -1)
{ {
NewSourceVector.addElement(SearchString); NewSourceVector.add(SearchString);
} }
} }
xFieldsListBox.removeItems((short) 0, xFieldsListBox.getItemCount()); xFieldsListBox.removeItems((short) 0, xFieldsListBox.getItemCount());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment