]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Protocols/ProtocolsVector.java
Use table and popup window to add/edit all elements of module instead of original...
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / module / Identifications / Protocols / ProtocolsVector.java
index b9667049f6e9322b115e8d5a28f2d733e3307b68..7f09670d5ad5d294b78e2e74c04b26bc91eb0449 100644 (file)
@@ -50,7 +50,7 @@ public class ProtocolsVector {
         vProtocols.addElement(arg0);\r
     }\r
 \r
-    public void updateProtocols(ProtocolsIdentification arg0, int arg1) {\r
+    public void setProtocols(ProtocolsIdentification arg0, int arg1) {\r
         vProtocols.setElementAt(arg0, arg1);\r
     }\r
 \r
@@ -86,5 +86,12 @@ public class ProtocolsVector {
     public int size() {\r
         return this.vProtocols.size();\r
     }\r
-\r
+    \r
+    public Vector<String> toStringVector(int index) {\r
+        Vector<String> v = new Vector<String>();\r
+        v.addElement(getProtocols(index).getName());\r
+        v.addElement(getProtocols(index).getType());\r
+        v.addElement(getProtocols(index).getUsage());\r
+        return v;\r
+    }\r
 }\r