一、Myeclipse9安装配置(略)
二、Flex4插件安装和SDK4.5配置
Flex4插件:FlashBuilder_4_Plugin_LS10.exe
注意这里的myeclipse路径的选择问题:我Myeclipse安装在D:\Program Files\Genuitec\如下图:
所以这里的路径我选择的是:D:\Program Files\Genuitec\MyEclipse-9.0M1,并且需要手动的在当前目录下创建一个dropins的文件夹,我个人认为是Flex4安装的时候用来为Myeclipse添加插件的.link文件。当FLEX4安装完成后: 至此,Flex4插件安装成功。
接下来配置Myeclipse9与Flex4整合:
PluginConfigCreator.java
import java.io.File;
import java.util.ArrayList;
import java.util.List;
/**
* MyEclipse9 插件配置代码生成器
*
*
*/
public class PluginConfigCreator
{
public PluginConfigCreator()
{
}
public void print(String path)
{
List<String> 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)
{
print(thePath);
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;
}
int last = fileName.lastIndexOf("_");// 最后一个下划线的位置
String filename1 = fileName.substring(0, last);
String filename2 = fileName.substring(last + 1, fileName
.length() - 4);
result = filename1 + "," + filename2 + ",file:/" + path + "\\"
+ fileName + ",4,false";
System.out.println(result);
}
}
}
public List<String> getFileList(String path)
{
path = getFormatPath(path);
path = path + "/";
File filePath = new File(path);
if (!filePath.isDirectory())
{
return null;
}
String[] filelist = filePath.list();
List<String> filelistFilter = new ArrayList<String>();
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)
{
/*你的插件的安装目录*/
String plugin = "D://Program Files//Adobe//Adobe Flash Builder 4 Plug-in//eclipse";
new PluginConfigCreator().print(plugin);
}
}
在主方法中设置Flex4插件的安装路径,一定要设置到安装路径下的eclipse文件夹下
这时控制台会输出一大串字符,COPY下来,并追加到D:\Program
Files\Genuitec\MyEclipse-9.0M1\configuration\org.eclipse.equinox.simpleconfigurator目录下的bundles.info文件尾,追加前最好备份一下bundles.info文件:
至些,重新启动Myeclipse:
大功告成!
- 大小: 45.4 KB
- 大小: 17.9 KB
- 大小: 17 KB
- 大小: 24.2 KB
- 大小: 52.8 KB
- 大小: 56.9 KB
- 大小: 94.6 KB
分享到:
相关推荐
Myeclipse9整合Flex4(SG式说明配图)
Myeclipse6.5整合Flex3详细教程
转载别人写的 Myeclipse整合flex4搭建java的Web项目 简单方便实用(后缀名丢失,下载后自行添加.docx)
安装流程 大家开始讲解flex4的教程,如何和Myeclipse8.0整合, MyEclipse8.0正式版 and flash builder 4插件版 ,记住flex4版本支持核心3.4以上,所以最低也得按myeclipse7.5以上版本
Myeclipse整合flex4搭建java的Web项目的方案
MyEclipse7.5+flex4+spring3.0.5+struts2.2.1+hibernate3.6.0+blazeds4.0.0.14931完美整合方案 内附所需jar包和源代码
详细描述了MyEclipse整合Flex插件的步骤
flex整合myeclipse网页 看完之后不在疑惑
Myeclipse6.5+flex3+Blazeds+spring+hibernate完美整合,写的非常详细
MyEclipse7.5+flex4+spring+struts+hibernate+blazeds整合
这节教程教大家如何使用Myeclipse整合flex4的版本来搭建java的Web项目,如果没有整合的朋友们请看这里教程整合: http://www.accptech.com/article/flex/1561.html 搭建一个web工程没有那么简单,因为flex只是做为...
myeclipse7.m1与flex3整合环境搭建
我自己总结的flex和MyEclipse6.0的整合
MyEclipse2013+flex4.7+Blazeds配置+源代码,在myeclipse2013和flex4.7整合环境下测试通过
Flex与MyEclipse整合详细图解
Myeclipse6.5+flex3+Blazeds+spring+hibernate完美整合源代码,已经调试成功,可以运行。配有相应的word文档
FLEX与myeclipse的整合及java应用
myeclipse+flex4+blazeds整合配,安装到实例测试,全部到位,一例就会。