Describes how to install the plug-in MyEclipse7.5.

Source: Internet
Author: User

MyEclipse7 no longer provides link installation Since 7.0, but installs the plug-in by writing configuration information to the bundles.info file. The procedure is as follows:

1. Download the plug-in you need. Its structure must be consistent with that of link during installation:

+ YourPluginName (your plug-in name-parent)

---- Plugins (default required folder -- Sub)

---- Features (default required folder -- Sub)

2. Copy the plug-in folder to the custom plug-in folder (that is, you can easily manage your own self-built folder. This article is in D:/Program Files/Genuitec/Common/myplugin)

3. Use myeclipse to create a java file. The Code is as follows:

The Code is as follows: Copy code

Package app;
Import java. io. File;
Import java. util. ArrayList;
Import java. util. List;

/**
* MyEclipse 7.5 () Plug-in configuration code generator
*/

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 ("_"); // The Position of the last underline
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)
{
/* The installation directory of your plug-in. The content of the String plug-in parameter is the absolute path of the plug-in to be installed. During installation, you only need to change to your own plug-in path */
String plugin = "D: // Program Files // Genuitec // Common // myplugin ";
New PluginConfigCreator (). print (plugin );
}
}

 

4. Run the above Code to copy all the content output from the console to the d:/Program Files/Genuitec/MyEclipse 7.5/configuration/org. eclipse. equinox. simpleconfigurator/bundles.info file.
5. Restart myeclipse to complete installation.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.