`

MyEclipse 9本地安装插件(MyEclipse 9 M1)

阅读更多
安装方法如下:
1.首先下载SVN包:site -1.6.17
2.解压SVN包,然后找到其中的两个文件夹:features 和 plugins
3.随意建一个文件夹(位置和名称自己定就好了,我的是E:\myEclipsePlugin\svn),然后把第二步的解压好的features 和 plugins放到这个文件夹下
4.找到myeclipse的安装目录,下面有一个configuration\org.eclipse.equinox.simpleconfigurator\bundles.info 文件。现在需要做的就是在该文件内添加的东西
5.添加的内容用下面的类生成:
package net.androidla.test;

import java.io.File;   
import java.util.ArrayList;   
import java.util.List;   
/**  
 * MyEclipse9 插件配置代码生成器  
 *  
 *  
 */  
public class PluginsInstall   
{   
    public PluginsInstall()   
    {   
    }   
    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)   
    {   
        /*你的SVN的features 和 plugins复制后放的目录*/  
        String plugin = "C:\\Program Files\\Genuitec\\plugins\\jdeclipse_update_site";   
        new PluginsInstall().print(plugin);   
    }   
}  


6.把以上生成的字符串(一大堆)添加到第四步bundles.info文件的后面,然后重启myeclipse即可。(估计其他插件的安装方法雷同吧)
3
2
分享到:
评论
5 楼 nello 2011-12-01  
Sev7en_jun 写道
这么麻烦!!!
直接把features 和 plugins放到\MyEclipse 9\dropins文件夹下不就ok了吗

问题是MyEclipse 9没有dropins这个文件夹
4 楼 Sev7en_jun 2011-12-01  
这么麻烦!!!
直接把features 和 plugins放到\MyEclipse 9\dropins文件夹下不就ok了吗
3 楼 qwj528 2011-10-25  
可以生成啊!。。。
2 楼 nello 2011-09-17  
chenzenan 写道
楼主成功了吗?有数据吗?我的怎么没有呢。
File filePath = new File(path);    
        if (!filePath.isDirectory())    
        {    
            return null;    
        } 
filePath.isDirectory肯定是true啊?不明白怎么生成成功的。

"filePath.isDirectory肯定是true啊?" 你确定? 我从没有失败过。
1 楼 chenzenan 2011-09-17  
楼主成功了吗?有数据吗?我的怎么没有呢。
File filePath = new File(path);    
        if (!filePath.isDirectory())    
        {    
            return null;    
        } 
filePath.isDirectory肯定是true啊?不明白怎么生成成功的。

相关推荐

    myeclipse9安装SVN插件(myeclipes9 M1)

    NULL 博文链接:https://huibin.iteye.com/blog/1101848

    MyEclipse9.0 M1安装jadClipse反编译插件

    昨天晚上安装MyEclipse9.0 M1的反编译插件,在晚上找了很多教程都不能解决,最后综合了几个教程,然后自己再更改了里面的一些方法,总算成功安装了这个插件,故上传于此,希望能给有同样问题的朋友提供帮助。安装...

    myeclipse9.0M1安装SVN插件档

    myeclipse9.0M1的安装SVN插件的详细步骤

    myeclipse插件(GUI界面)

    6.0M1,再打开MyEclipse-6.0M1的子目录eclipse, 解压myeclipse插件(GUI界面),解压后它有二个子目录(features,plugins),打开二个子目录各有一个文件夹(总共二个文件夹),分别复制到features,plugins的...

    MyEclipse8.5svn插件

    最新MyEclipse8.5svn插件,解压后放到Genuitec\MyEclipse 8.5 M1\dropins目录下就行了

    Myeclipse6.5 class反编译插件

    Myeclipse6.5 class反编译插件安装步骤: 将压缩包解压可以看到3个文件 1.jad158g.win.zip解压缩后将jad.exe拷贝到JRE的bin目录下,如\Java\jre1.5.0_06\bin 2.下载 将jadclipse_3.1.0.jar复制到D:\Program Files\...

    MyEclipse语言互换工具1.5

    使用myeclipse语言插件必须是您第一次安装myeclipse的路径是: Pulse Install Dierctory ---&gt; D:\Myeclipse\MyEclipse Common directroy ---&gt; D:\Myeclipse\Common Pulse Install Dierctory意思是你的myeclipse运行...

    MyEclipse 8.5 汉化

    使用myeclipse语言插件必须是您第一次安装myeclipse的路径是: Pulse Install Dierctory ---&gt; D:\Myeclipse\MyEclipse Common directroy ---&gt; D:\Myeclipse\Common Pulse Install Dierctory意思是你的...

    MyEclipse5、6、7能用的 SVN插件【注意7版的目录不一样】

    非MyEclipse7.0处理方法: 解压后,直接将其中的eclipse文件夹覆盖 MyEclipse 6.0\eclipse ...解压后,直接将其中的eclipse文件夹覆盖 MyEclipse 7.1M1\eclipse\dropins\eclipse 7.0、7.1的注意目录结构,不要选错!!

    MyEclipse反编译class工具

    【Myeclipse 考到如D:\MyEclipse-6.0M1\eclipse\plugins的目录下】 3.启动Eclipse后,在Windows——&gt;Perference——&gt;Java下面应该会多出一个JadClipse目录,相关的设置可以在此修改配置jadclipse: 设置path to ...

    eclipse或myeclipse FreeMarker插件

    freemarker-2.3.15.jar 版本eclipse FreeMarker插件,已配置好MANIFEST.MF,mycelipse配置D:\Program Files\Genuitec\MyEclipse 8.5 M1\configuration\org.eclipse.equinox.simpleconfigurator目录下bundles.info...

    myeclipse9.0_plugin_createor

    第二步:将项目导入到myeclipse9/以上版本,修改里面的main方法里的路径,也是你放svn的路径; 第三步:运行该main方法。将生成的代码复制到 MyEclipse-9.0M1\configuration\org.eclipse.equinox.simpleconfigurator...

    jbpm的插件在myeclipse配置

    这是配找好的jbpm插件,把jbpm.rar解压放在d盘根目录下面;把jbpm.link文件放在MyEclipse 6.5M1\eclipse\links下面;重新启动eclipse就OK;

    Myeclipse 6 反编译工具安装(jad)

    【Myeclipse 考到如D:\MyEclipse-6.0M1\eclipse\plugins的目录下】 3.启动Eclipse后,在Windows——&gt;Perference——&gt;Java下面应该会多出一个JadClipse目录,相关的设置可以在此修改配置jadclipse:设置path to ...

    (修正版)用Eclipse3.2+MyEclipse5.5M1+axis2_1.1.1+tomcat5.5 开发Web Services

    新版的Eclipse可能不完全向下兼容Axis2插件(太旧版的Axis2插件)。 网上博客的文章很多存在一些小错误。 细节问题没做好。 现在我把自己的操作成功的实例重新演练一遍,基本跟大家啊网上参考的一致,请注意every ...

    关于数据库表生成javabean

    用过myeclipse的人都知道,用数据库表结构生成javabean的orm很简单,也很容易,...2、安装插件(安装方法我就不细写了) JBoss Tools 3.2.0.M1 详细使用教程见:http://blog.sina.com.cn/s/blog_71b8dd040100rkgr.html

    PluginsSetup:Eclipse插件万能安装程序

    PluginsSetup是简化Eclipse插件安装步骤的一个小程序 操作方法: 1.输入本地插件地址,点击生成。 2.下面文本框中显示插件配置文件信息。 3.把文本框中显示的信息,追加到Eclipse或MyEclipse的配置文件bundles.info...

Global site tag (gtag.js) - Google Analytics