闲话少说,Flex开发环境,本人选择用FlexBuilder 3 + MyEclipse 7.5 +JBoss的模式。
1,MyEclipse7.5我的下载地址是:
http://downloads.myeclipseide.com/downloads/products/eworkbench/7.0/myeclipse-7.5.0-win32.exe
2.Flex builer3 (注意不是插件版本)下面是我的下载地址:http://b4.3ddown.com//Down/2009/02A/Adobe.Flex.Builder.Professional.v3.0.2.rar
3.JBoss 4.2下载
http://downloads.sourceforge.net/sourceforge/jboss/jboss-4.2.2.GA.zip?use_mirror=internap
MyEclipse中集成FlexBuilder方法:
先装MyEclipse7.5,装好后运行下面代码:
public class CreatePluginsConfig {
private String path;
public CreatePluginsConfig(String path){
this.path=path;
}
public void print(){
List list=getFileList(path);
if(list==null){
return;
}
int length=list.size();
for(int i=0;i<length;i++){
String result="";
String thePath=getFormatPath(getString(list.get(i)));
File file=new File(thePath);
if(file.isDirectory()){
String fileName=file.getName();
if(fileName.indexOf("_")<0){
continue;
}
String[] filenames=fileName.split("_");
String filename1=filenames[0];
String filename2=filenames[1];
result=filename1+","+filename2+",file:/"+path+"//"+fileName+"//,4,false";
System.out.println(result);
}else if(file.isFile()){
String fileName=file.getName();
if(fileName.indexOf("_")<0){
continue;
}
String[] filenames=fileName.split("_");
String filename1=filenames[0];
String filename2=filenames[1].substring(0, filenames[1].lastIndexOf(".")); result=filename1+","+filename2+",file:/"+path+"//"+fileName+",4,false";
System.out.println(result);
}
}
}
public List getFileList(String path){
path=getFormatPath(path);
path=path+"/";
File filePath=new File(path);
if(!filePath.isDirectory()){
return null;
}
String[] filelist=filePath.list();
List filelistFilter=new ArrayList();
for(int i=0;i<filelist.length;i++){
String tempfilename=getFormatPath(path+filelist[i]);
filelistFilter.add(tempfilename);
}
return filelistFilter;
}
public String getString(Object object){
if(object==null){
return "";
}
return String.valueOf(object);
}
public String getFormatPath(String path) {
path = path.replaceAll("", "/");
path = path.replaceAll("//", "/");
return path;
}
public static void main(String[] args){
new CreatePluginsConfig("D://Program Files//Adobe//Flex Builder 3//plugins").print(); //你的FlexBuilder3地址
}
}
输出结果拷贝到MyEclipse 7.5/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info
需要重启MyEclipse ,然后New中即有Flex相关选项,爽!!!