You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ch...@apache.org on 2006/10/05 11:20:19 UTC
svn commit: r453154 [2/2] - in
/webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache:
axis2/tools/bean/ axis2/tools/idea/ ideaplugin/ ideaplugin/bean/
ideaplugin/frames/ ideaplugin/frames/table/ ideaplugin/plugin/
Modified: webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/ResourceChooser.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/ResourceChooser.java?view=diff&rev=453154&r1=453153&r2=453154
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/ResourceChooser.java (original)
+++ webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/ResourceChooser.java Thu Oct 5 02:20:17 2006
@@ -3,20 +3,8 @@
import org.apache.ideaplugin.bean.ArchiveBean;
import org.apache.ideaplugin.bean.ObjectKeeper;
-import javax.swing.DefaultListModel;
-import javax.swing.JButton;
-import javax.swing.JFileChooser;
-import javax.swing.JLabel;
-import javax.swing.JList;
-import javax.swing.JPanel;
-import javax.swing.JScrollPane;
-import javax.swing.JTextField;
-import java.awt.Component;
-import java.awt.Container;
-import java.awt.Dimension;
-import java.awt.Font;
-import java.awt.Insets;
-import java.awt.LayoutManager;
+import javax.swing.*;
+import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
@@ -124,7 +112,7 @@
public void actionPerformed(ActionEvent e) {
Object obj = e.getSource();
- if(obj == butLoad ) {
+ if (obj == butLoad) {
listModellibs.addElement(txtLibs.getText());
} else if (obj == butselect) {
fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
@@ -133,36 +121,36 @@
fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
File newfile = fc.getSelectedFile();
txtLibs.setText(newfile.getAbsolutePath());
- } else {
+ } else {
txtLibs.setText("");
}
- } else if(obj == butSelectwsdl){
+ } else if (obj == butSelectwsdl) {
fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
int returnVal = fc.showOpenDialog(this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
File newfile = fc.getSelectedFile();
txtwsdl.setText(newfile.getAbsolutePath());
- } else {
+ } else {
txtwsdl.setText("");
}
- } else if(obj ==butaddwsdl ){
+ } else if (obj == butaddwsdl) {
listModellwsdls.addElement(txtwsdl.getText());
- } else if (obj == butDone){
- parent.setEnable(false,true,false,true);
+ } else if (obj == butDone) {
+ parent.setEnable(false, true, false, true);
}
}
public void fillBean(ArchiveBean bean) {
- Enumeration enumerator =listModellibs.elements();
+ Enumeration enumerator = listModellibs.elements();
ArrayList libs = new ArrayList();
- URL urllist [] = new URL[listModellibs.size() +1];
+ URL urllist[] = new URL[listModellibs.size() + 1];
int count = 0;
while (enumerator.hasMoreElements()) {
String s = (String) enumerator.nextElement();
File file = new File(s);
- if(file.exists()){
+ if (file.exists()) {
try {
urllist[count] = file.toURL();
} catch (MalformedURLException e) {
@@ -170,14 +158,14 @@
}
}
libs.add(s);
- count ++;
+ count++;
}
try {
urllist[count] = bean.getClassLocation().toURL();
} catch (MalformedURLException e) {
-
+
}
- ClassLoader cls = new URLClassLoader(urllist,ResourceChooser.class.getClassLoader());
+ ClassLoader cls = new URLClassLoader(urllist, ResourceChooser.class.getClassLoader());
bean.setClassLoader(cls);
// Enumeration enumerator =listModellibs.elements();
// ArrayList libs = new ArrayList();
@@ -186,7 +174,7 @@
// libs.add(s);
// }
bean.setLibs(libs);
- enumerator =listModellwsdls.elements();
+ enumerator = listModellwsdls.elements();
ArrayList wsdls = new ArrayList();
while (enumerator.hasMoreElements()) {
String s = (String) enumerator.nextElement();
@@ -210,12 +198,12 @@
}
public JPanel getNext() {
- if(parent.generateServiceXML){
- SelectPanel sp = new SelectPanel(parent,parent.bean.getClassLocation());
+ if (parent.generateServiceXML) {
+ SelectPanel sp = new SelectPanel(parent, parent.bean.getClassLocation());
sp.setPrivious(this);
return sp;
} else {
- DescriptorFile dis = new DescriptorFile(parent,parent.bean.getServiceXML());
+ DescriptorFile dis = new DescriptorFile(parent, parent.bean.getServiceXML());
dis.setPrivious(this);
return dis;
}
@@ -230,7 +218,7 @@
}
public JPanel getPrivious() {
- return this.previous;
+ return this.previous;
}
}
@@ -265,27 +253,49 @@
Component c;
c = parent.getComponent(0);
- if (c.isVisible()) {c.setBounds(insets.left+16,insets.top+16,128,24);}
+ if (c.isVisible()) {
+ c.setBounds(insets.left + 16, insets.top + 16, 128, 24);
+ }
c = parent.getComponent(1);
- if (c.isVisible()) {c.setBounds(insets.left+152,insets.top+16,312,24);}
+ if (c.isVisible()) {
+ c.setBounds(insets.left + 152, insets.top + 16, 312, 24);
+ }
c = parent.getComponent(2);
- if (c.isVisible()) {c.setBounds(insets.left+496,insets.top+16,72,24);}
+ if (c.isVisible()) {
+ c.setBounds(insets.left + 496, insets.top + 16, 72, 24);
+ }
c = parent.getComponent(3);
- if (c.isVisible()) {c.setBounds(insets.left+472,insets.top+16,16,24);}
+ if (c.isVisible()) {
+ c.setBounds(insets.left + 472, insets.top + 16, 16, 24);
+ }
c = parent.getComponent(4);
- if (c.isVisible()) {c.setBounds(insets.left+152,insets.top+48,312,72);}
+ if (c.isVisible()) {
+ c.setBounds(insets.left + 152, insets.top + 48, 312, 72);
+ }
c = parent.getComponent(5);
- if (c.isVisible()) {c.setBounds(insets.left+16,insets.top+128,128,24);}
+ if (c.isVisible()) {
+ c.setBounds(insets.left + 16, insets.top + 128, 128, 24);
+ }
c = parent.getComponent(6);
- if (c.isVisible()) {c.setBounds(insets.left+152,insets.top+128,312,24);}
+ if (c.isVisible()) {
+ c.setBounds(insets.left + 152, insets.top + 128, 312, 24);
+ }
c = parent.getComponent(7);
- if (c.isVisible()) {c.setBounds(insets.left+472,insets.top+128,16,24);}
+ if (c.isVisible()) {
+ c.setBounds(insets.left + 472, insets.top + 128, 16, 24);
+ }
c = parent.getComponent(8);
- if (c.isVisible()) {c.setBounds(insets.left+496,insets.top+128,72,24);}
+ if (c.isVisible()) {
+ c.setBounds(insets.left + 496, insets.top + 128, 72, 24);
+ }
c = parent.getComponent(9);
- if (c.isVisible()) {c.setBounds(insets.left+152,insets.top+160,312,64);}
+ if (c.isVisible()) {
+ c.setBounds(insets.left + 152, insets.top + 160, 312, 64);
+ }
c = parent.getComponent(10);
- if (c.isVisible()) {c.setBounds(insets.left+248,insets.top+225,72,24);}
+ if (c.isVisible()) {
+ c.setBounds(insets.left + 248, insets.top + 225, 72, 24);
+ }
}
}
Modified: webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/SelectPanel.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/SelectPanel.java?view=diff&rev=453154&r1=453153&r2=453154
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/SelectPanel.java (original)
+++ webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/SelectPanel.java Thu Oct 5 02:20:17 2006
@@ -6,16 +6,8 @@
import org.apache.ideaplugin.bean.ServiceObj;
import org.apache.ideaplugin.frames.table.ArchiveTableModel;
-import javax.swing.JButton;
-import javax.swing.JFileChooser;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JScrollPane;
-import javax.swing.JTable;
-import javax.swing.JTextField;
-import java.awt.Font;
-import java.awt.Insets;
+import javax.swing.*;
+import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
@@ -58,7 +50,6 @@
protected JScrollPane sp;
protected JLabel tablelbl;
-// private JPanel next;
private JPanel previous;
protected File file;
protected Insets insets;
@@ -70,9 +61,9 @@
protected DescriptorFile disfile;
protected String sgXMl;
- public SelectPanel(ServiceArciveFrame parent , File file ) {
+ public SelectPanel(ServiceArciveFrame parent, File file) {
this.parent = parent;
- this.file =file;
+ this.file = file;
setFont(new Font("Helvetica", Font.PLAIN, 12));
this.setLayout(null);
@@ -81,11 +72,11 @@
lblClass = new JLabel("Select Service Classes");
add(lblClass);
- lblClass.setBounds(insets.left + 8, insets.top + 2, 150 , 24);
+ lblClass.setBounds(insets.left + 8, insets.top + 2, 150, 24);
txtClassDir = new JTextField("");
add(txtClassDir);
- txtClassDir.setBounds(insets.left + 150 , insets.top + 2, 336, 24);
+ txtClassDir.setBounds(insets.left + 150, insets.top + 2, 336, 24);
butSelect = new JButton(" ... ");
add(butSelect);
@@ -138,31 +129,31 @@
public void actionPerformed(ActionEvent e) {
Object obj = e.getSource();
- if(obj == butSelect){
+ if (obj == butSelect) {
parent.fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
int returnVal = parent.fc.showOpenDialog(this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
File newfile = parent.fc.getSelectedFile();
- String newFile =newfile.getPath();
+ String newFile = newfile.getPath();
int index = newFile.indexOf(file.getAbsolutePath().trim());
- if(index >=0){
- int lastindex= file.getAbsolutePath().trim().length();
- newFile = newFile.substring(lastindex +1);
+ if (index >= 0) {
+ int lastindex = file.getAbsolutePath().trim().length();
+ newFile = newFile.substring(lastindex + 1);
char ch = parent.fileSeparator.toCharArray()[0];
- char newch= '.';
+ char newch = '.';
int cindex = newFile.indexOf(ch);
- while(cindex >=0){
- newFile = newFile.replace(ch,newch);
+ while (cindex >= 0) {
+ newFile = newFile.replace(ch, newch);
cindex = newFile.indexOf(ch);
}
fileName = newFile;
int classIndex = fileName.indexOf(".class");
- fileName = fileName.substring(0,classIndex);
+ fileName = fileName.substring(0, classIndex);
txtClassDir.setText(fileName);
}
}
- } else if(obj == load){
- if(file == null){
+ } else if (obj == load) {
+ if (file == null) {
return;
}
try {
@@ -180,26 +171,26 @@
// new URL[]{file.toURL()},SelectPanel.class.getClassLoader());
ClassLoader classLoader = parent.bean.getClassLoader();
- Class serCla= Class.forName(fileName,true,classLoader);
- Method[] methods = serCla.getDeclaredMethods();
+ Class serCla = Class.forName(fileName, true, classLoader);
+ Method[] methods = serCla.getDeclaredMethods();
operations = new HashMap();
- if(methods.length >0){
+ if (methods.length > 0) {
for (int i = 0; i < methods.length; i++) {
Method method = methods[i];
OperationObj operationobj = new OperationObj(method.getName(),
method.getReturnType().toString(),
- new Integer(method.getParameterTypes().length),new Boolean(false));
- operations.put(method.getName() ,operationobj);
+ new Integer(method.getParameterTypes().length), new Boolean(false));
+ operations.put(method.getName(), operationobj);
}
}
ArchiveTableModel myModel = new ArchiveTableModel(operations);
JTable table = new JTable(myModel);
- tablelbl = new JLabel("Mark operation you do not want to publish ") ;
+ tablelbl = new JLabel("Mark operation you do not want to publish ");
add(tablelbl);
tablelbl.setBounds(insets.left + 10, insets.top + 45, 400, 24);
- sp =new JScrollPane(table);
+ sp = new JScrollPane(table);
add(sp);
sp.setAutoscrolls(true);
sp.setBounds(insets.left + 10, insets.top + 75, 550, 100);
@@ -207,28 +198,28 @@
butDone.setVisible(true);
lblServiceNam.setVisible(true);
txtServiceName.setVisible(true);
- } catch (ClassNotFoundException e1) {
+ } catch (ClassNotFoundException e1) {
e1.printStackTrace();
}
parent.reShow();
- } else if(obj == butDone){
+ } else if (obj == butDone) {
ArrayList ops = new ArrayList();
Iterator opitr = operations.values().iterator();
while (opitr.hasNext()) {
OperationObj operationObj = (OperationObj) opitr.next();
- if(operationObj.getSelect().booleanValue()){
+ if (operationObj.getSelect().booleanValue()) {
ops.add(operationObj.getOpName());
}
}
- ServiceObj service= new ServiceObj(txtServiceName.getText(),fileName,ops);
+ ServiceObj service = new ServiceObj(txtServiceName.getText(), fileName, ops);
servicelsit.add(service);
- if(!parent.singleService){
- int valu = JOptionPane.showConfirmDialog(parent,"Do you want to add an another service to group","Service Archive",
+ if (!parent.singleService) {
+ int valu = JOptionPane.showConfirmDialog(parent, "Do you want to add an another service to group", "Service Archive",
JOptionPane.YES_NO_OPTION);
- if(valu == 0){
+ if (valu == 0) {
txtClassDir.setText("");
fileName = "";
try {
@@ -240,29 +231,29 @@
} catch (Exception e1) {
// e1.printStackTrace();
}
- count ++;
+ count++;
parent.reShow();
this.repaint();
} else {
- parent.setEnable(false,true,false,true);
+ parent.setEnable(false, true, false, true);
sgXMl = "<serviceGroup>\n";
for (int i = 0; i < servicelsit.size(); i++) {
ServiceObj serviceObj = (ServiceObj) servicelsit.get(i);
sgXMl = sgXMl + serviceObj.toString();
}
sgXMl = sgXMl + "</serviceGroup>";
- disfile = new DescriptorFile(parent,sgXMl);
+ disfile = new DescriptorFile(parent, sgXMl);
disfile.setPrivious(this);
}
} else {
- parent.setEnable(false,true,false,true);
+ parent.setEnable(false, true, false, true);
sgXMl = "<serviceGroup>\n";
for (int i = 0; i < servicelsit.size(); i++) {
ServiceObj serviceObj = (ServiceObj) servicelsit.get(i);
sgXMl = sgXMl + serviceObj.toString();
}
sgXMl = sgXMl + "</serviceGroup>";
- disfile = new DescriptorFile(parent,sgXMl);
+ disfile = new DescriptorFile(parent, sgXMl);
disfile.setPrivious(this);
}
Modified: webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/ServiceArciveFrame.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/ServiceArciveFrame.java?view=diff&rev=453154&r1=453153&r2=453154
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/ServiceArciveFrame.java (original)
+++ webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/ServiceArciveFrame.java Thu Oct 5 02:20:17 2006
@@ -35,7 +35,7 @@
public boolean singleService;
public boolean generateServiceXML;
// protected JPanel firstpanel ;
-// protected SelectPanel slectpanel;
+ // protected SelectPanel slectpanel;
protected JPanel currentpanle;
public String fileSeparator = System.getProperty("file.separator");
public final JFileChooser fc = new JFileChooser();
Modified: webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/XMLSelectionPage.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/XMLSelectionPage.java?view=diff&rev=453154&r1=453153&r2=453154
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/XMLSelectionPage.java (original)
+++ webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/XMLSelectionPage.java Thu Oct 5 02:20:17 2006
@@ -3,13 +3,8 @@
import org.apache.ideaplugin.bean.ArchiveBean;
import org.apache.ideaplugin.bean.ObjectKeeper;
-import javax.swing.JButton;
-import javax.swing.JFileChooser;
-import javax.swing.JLabel;
-import javax.swing.JPanel;
-import javax.swing.JTextField;
-import java.awt.Font;
-import java.awt.Insets;
+import javax.swing.*;
+import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.ByteArrayOutputStream;
@@ -39,7 +34,7 @@
* Date: Sep 23, 2005
* Time: 11:26:02 PM
*/
-public class XMLSelectionPage extends JPanel implements ObjectKeeper, ActionListener {
+public class XMLSelectionPage extends JPanel implements ObjectKeeper, ActionListener {
JLabel selectxml;
JTextField txtService;
JButton butSelect;
@@ -52,6 +47,7 @@
private JPanel previous;
protected ServiceArciveFrame parent;
+
public XMLSelectionPage(ServiceArciveFrame parent) {
Insets insets = parent.getInsets();
this.parent = parent;
@@ -78,13 +74,13 @@
bustSelectclss.addActionListener(this);
add(bustSelectclss);
- selectxml.setBounds(insets.left+16,insets.top+16,168,24);
- txtService.setBounds(insets.left+192,insets.top+16,288,24);
- butSelect.setBounds(insets.left+488,insets.top+16,72,24);
-
- selctclass.setBounds(insets.left+16,insets.top+45,168,24);
- txtclass.setBounds(insets.left+192,insets.top+45,288,24);
- bustSelectclss.setBounds(insets.left+488,insets.top+45,72,24);
+ selectxml.setBounds(insets.left + 16, insets.top + 16, 168, 24);
+ txtService.setBounds(insets.left + 192, insets.top + 16, 288, 24);
+ butSelect.setBounds(insets.left + 488, insets.top + 16, 72, 24);
+
+ selctclass.setBounds(insets.left + 16, insets.top + 45, 168, 24);
+ txtclass.setBounds(insets.left + 192, insets.top + 45, 288, 24);
+ bustSelectclss.setBounds(insets.left + 488, insets.top + 45, 72, 24);
setSize(getPreferredSize());
}
@@ -99,7 +95,7 @@
}
- public String getTopLable() {
+ public String getTopLable() {
return "Class location & Service descriptor selection";
}
@@ -108,14 +104,14 @@
}
public JPanel getNext() {
- DescriptorFile disfile = new DescriptorFile(parent,value);
+ DescriptorFile disfile = new DescriptorFile(parent, value);
disfile.setPrivious(this);
return disfile;
}
//to keep a refernce to previous panel
public void setPrivious(JPanel privious) {
- this.previous =privious;
+ this.previous = privious;
}
public JPanel getPrivious() {
@@ -124,7 +120,7 @@
public void actionPerformed(ActionEvent e) {
Object obj = e.getSource();
- if(obj == bustSelectclss){
+ if (obj == bustSelectclss) {
parent.fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
int returnVal = parent.fc.showOpenDialog(this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
@@ -136,15 +132,15 @@
parent.setEnable(true, false, false, true);
}
- } else if(obj == butSelect){
+ } else if (obj == butSelect) {
parent.fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
int returnVal = parent.fc.showOpenDialog(this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
- File file = parent.fc.getSelectedFile();
+ File file = parent.fc.getSelectedFile();
byte[] buf = new byte[1024];
int read;
- ByteArrayOutputStream out ;
+ ByteArrayOutputStream out;
try {
FileInputStream in = new FileInputStream(file);
Modified: webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/table/ArchiveTableModel.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/table/ArchiveTableModel.java?view=diff&rev=453154&r1=453153&r2=453154
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/table/ArchiveTableModel.java (original)
+++ webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/table/ArchiveTableModel.java Thu Oct 5 02:20:17 2006
@@ -31,24 +31,25 @@
public class ArchiveTableModel extends AbstractTableModel {
final String[] columnNames = {"Operation Name", "Return Value", "Parameters ", "Select"};
- Object [][] datvalue;
+ Object[][] datvalue;
private HashMap datobjs;
public ArchiveTableModel(HashMap dataobject) {
int size = dataobject.size();
datvalue = new Object[size][4];
- Iterator itr = dataobject.values().iterator();
- int count =0;
+ Iterator itr = dataobject.values().iterator();
+ int count = 0;
while (itr.hasNext()) {
OperationObj operationObj = (OperationObj) itr.next();
- datvalue[count][0]=operationObj.getOpName();
- datvalue[count][1]=operationObj.getReturnValue();
- datvalue[count][2]=operationObj.getParameters();
- datvalue[count][3]=operationObj.getSelect();
- count ++;
+ datvalue[count][0] = operationObj.getOpName();
+ datvalue[count][1] = operationObj.getReturnValue();
+ datvalue[count][2] = operationObj.getParameters();
+ datvalue[count][3] = operationObj.getSelect();
+ count++;
}
this.datobjs = dataobject;
}
+
public int getColumnCount() {
return columnNames.length;
}
@@ -72,15 +73,16 @@
public boolean isCellEditable(int row, int col) {
return col >= 3;
}
+
public void setValueAt(Object value, int row, int col) {
- OperationObj obj = (OperationObj)datobjs.get(getValueAt(row,0));
- if(col == 3){
- obj.setSelect((Boolean)value);
+ OperationObj obj = (OperationObj) datobjs.get(getValueAt(row, 0));
+ if (col == 3) {
+ obj.setSelect((Boolean) value);
}
if (datvalue[0][col] instanceof Integer) {
try {
- datvalue[row][col] = new Integer((String)value);
+ datvalue[row][col] = new Integer((String) value);
} catch (NumberFormatException e) {
System.out.println("Error");
}
Modified: webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/plugin/Axis2IdeaPlugin.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/plugin/Axis2IdeaPlugin.java?view=diff&rev=453154&r1=453153&r2=453154
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/plugin/Axis2IdeaPlugin.java (original)
+++ webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/plugin/Axis2IdeaPlugin.java Thu Oct 5 02:20:17 2006
@@ -3,6 +3,7 @@
import com.intellij.openapi.components.ApplicationComponent;
import com.intellij.openapi.options.Configurable;
import com.intellij.openapi.options.ConfigurationException;
+import com.intellij.openapi.project.Project;
import org.apache.ideaplugin.frames.Axi2PluginPage;
import javax.swing.*;
@@ -102,13 +103,10 @@
form = null;
}
- public void showTool() {
+ public void showTool(Project project) {
+ form.setProject(project);
form.showUI();
-// createComponent();
-// if(form!=null){
-// form.show();
-// }
}
}
Modified: webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/plugin/Axis2PluginAction.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/plugin/Axis2PluginAction.java?view=diff&rev=453154&r1=453153&r2=453154
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/plugin/Axis2PluginAction.java (original)
+++ webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/plugin/Axis2PluginAction.java Thu Oct 5 02:20:17 2006
@@ -1,11 +1,9 @@
package org.apache.ideaplugin.plugin;
-import com.intellij.openapi.actionSystem.AnAction;
-import com.intellij.openapi.actionSystem.AnActionEvent;
-import com.intellij.openapi.actionSystem.Presentation;
-import com.intellij.openapi.actionSystem.ActionPlaces;
+import com.intellij.openapi.actionSystem.*;
import com.intellij.openapi.application.Application;
import com.intellij.openapi.application.ApplicationManager;
+import com.intellij.openapi.project.Project;
import javax.swing.*;
/*
@@ -42,9 +40,11 @@
public void actionPerformed(AnActionEvent anActionEvent) {
Application application =
ApplicationManager.getApplication();
+ Project project = (Project) anActionEvent.getDataContext().getData(DataConstants.PROJECT);
+
Axis2IdeaPlugin axis2component =
- (Axis2IdeaPlugin)application.getComponent(Axis2IdeaPlugin.class);
- axis2component.showTool();
+ (Axis2IdeaPlugin) application.getComponent(Axis2IdeaPlugin.class);
+ axis2component.showTool(project);
}
public void update(AnActionEvent event) {
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org