diff options
author | Noel Grandin <noel@peralex.com> | 2013-05-03 14:35:04 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-05-06 11:45:50 +0200 |
commit | 587c59fbc931b12f4d63d077a78bcaa43ffbf83d (patch) | |
tree | c1984991960664faf41ea3e32e3804404aecb22d /scripting/java/org/openoffice/idesupport/ui/MethodPanel.java | |
parent | remove some unnecessary casts (diff) | |
download | core-587c59fbc931b12f4d63d077a78bcaa43ffbf83d.tar.gz core-587c59fbc931b12f4d63d077a78bcaa43ffbf83d.zip |
Java cleanup, Convert Vector to ArrayList
Change-Id: I323a6625f93347e69f3114fc10cb04dc759a539f
Diffstat (limited to 'scripting/java/org/openoffice/idesupport/ui/MethodPanel.java')
-rw-r--r-- | scripting/java/org/openoffice/idesupport/ui/MethodPanel.java | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/scripting/java/org/openoffice/idesupport/ui/MethodPanel.java b/scripting/java/org/openoffice/idesupport/ui/MethodPanel.java index 9bc31edc30e2..362948c3a82b 100644 --- a/scripting/java/org/openoffice/idesupport/ui/MethodPanel.java +++ b/scripting/java/org/openoffice/idesupport/ui/MethodPanel.java @@ -18,22 +18,25 @@ package org.openoffice.idesupport.ui; +import java.awt.BorderLayout; import java.io.File; -import java.util.Vector; +import java.util.ArrayList; + +import javax.swing.JLabel; +import javax.swing.JList; import javax.swing.JPanel; import javax.swing.JScrollPane; -import javax.swing.JList; -import javax.swing.JLabel; -import java.awt.BorderLayout; -import com.sun.star.script.framework.container.ScriptEntry; -import org.openoffice.idesupport.MethodFinder; + import org.openoffice.idesupport.ExtensionFinder; import org.openoffice.idesupport.JavaFinder; +import org.openoffice.idesupport.MethodFinder; + +import com.sun.star.script.framework.container.ScriptEntry; public class MethodPanel extends JPanel { private File basedir; - private Vector<String> classpath; + private ArrayList<String> classpath; private final static String FIRST_PARAM = "drafts.com.sun.star.script.framework.runtime.XScriptContext"; @@ -42,7 +45,7 @@ public class MethodPanel extends JPanel { private JList list; private ScriptEntry[] values; - public MethodPanel(File basedir, Vector<String> classpath, String language) { + public MethodPanel(File basedir, ArrayList<String> classpath, String language) { this.basedir = basedir; this.classpath = classpath; @@ -50,7 +53,7 @@ public class MethodPanel extends JPanel { initUI(); } - public void reload(File basedir, Vector<String> classpath, String language) { + public void reload(File basedir, ArrayList<String> classpath, String language) { this.basedir = basedir; this.classpath = classpath; @@ -103,11 +106,11 @@ public class MethodPanel extends JPanel { final String[] columnNames = {"Method", "Language"}; - private Vector methods; + private ArrayList methods; private int nextRow; public MethodTableModel() { - methods = new Vector(11); + methods = new ArrayList(11); } public int getColumnCount() { |