How to plugin Groovy editor and compiler offline in eclipse? - eclipse

I am using company proxy and not able to plugin from marketplace?

If you go to the github page, on the right are releases. If you select the release that you want, at the very bottom of that release's page is a list of zipped updatesites, where you can download it from, ex. https://github.com/groovy/groovy-eclipse/wiki/4.0.0-Release-Notes You can then unzip it and install it manually.
Additionally, if you want Eclipse to work through your proxy, add the following in your eclipse.ini file:
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4
-Dhttp.proxyHost=your_proxyservername.your.org
-Dhttp.proxyPort=your_proxy_port
-Dhttp.proxyUser=your_username
-Dhttp.proxyPassword=your_password
-Dhttps.proxyHost=your_proxyservername.your.org
-Dhttps.proxyPort=your_proxy_port
-Dhttps.proxyUser=your_username
-Dhttps.proxyPassword=your_password
-Dhttp.nonProxyHosts=localhost|127.0.0.1
-Dorg.eclipse.equinox.p2.transport.ecf.retry=5
-Dorg.eclipse.ecf.provider.filetransfer.retrieve.connectTimeout=15000
-Dorg.eclipse.ecf.provider.filetransfer.retrieve.readTimeout=1000
-Dorg.eclipse.ecf.provider.filetransfer.retrieve.retryAttempts=20
-Dorg.eclipse.ecf.provider.filetransfer.retrieve.closeTimeout=1000
-Dorg.eclipse.ecf.provider.filetransfer.browse.connectTimeout=3000
-Dorg.eclipse.ecf.provider.filetransfer.browse.readTimeout=1000

Related

How to make my own eclipse plugin installable

I creat an eclipse plugin that I finished.
I would like to "share" my plugin with some people without just send them the whole code and they have to "create" the plugin by copy paste the code.
How can I make an installation file/ other way to make this plugin installable for others.
Thanks
One option is to create a Feature project. (An Eclipse Feature is essentially a feature.xml file and build.properties file that specify a collection of one or more Eclipse plugins that will be included when the Feature is installed into an Eclipse application).
Feature projects allow you to choose which plugins to include in them when you create them using the New Feature Project Wizard.
Once your project is created, you will have the feature.xml file opened for you in its editor. There you will be able to fill in more meta data if desired, and you will be given links for Exporting and Publishing the feature for others to consume.
Follow the steps under "Exporting" in the Overview tab of the feature.xml editor and choose to deploy using the Export Wizard. I suggest that you choose to deploy to an Archive file.
Then you can send that resulting Archive file (zip file) to your people. Then have those people open their Eclipse instance and go to "Help -> Install New Software". Then choose "Add" to add an update site. Then choose "Archive" which will allow them to navigate to the zip file that you have sent them.
Once they select that, they will be on their way to installing your Feature which contains your plugin into their Eclispe installation.
You can send them the plugin jar file, and they can put it in their
dropins folder.
Eclipse will not let you install using an archive unless the you have an update site.

Unable to read repository at http://beust.com/eclipse

Eclipse for Testers
Version: Indigo Release
Build id: 20110615-0604
I try to install TestNG but below error appeared.
"
Unable to read repository at http://beust.com/eclipse.
http://beust.com/eclipse is not a valid repository location.
"
Kindly Resolve the problems
This is because http://beust.com/eclipse is redirecting to http://dl.bintray.com/testng-team/ and Eclipse software seems to be not handling this URL redirection as intended.
If you add the URL as http://dl.bintray.com/testng-team/testng-eclipse-release/ then this will work OK.
I added one "/" to the end: http://beust.com/eclipse/, then it works. If you use RAD 8+, navigate from Windows -> Preferences -> General -> Network Connections, make sure you have correct settings here, for me I have to change the setting from Native to Direct.
Disconnect from your company's intranet network and connect to your network (Like mobile hotspot or home wifi). Try install then. Worked for me.
You can try below link
https://www.techbeamers.com/install-testng-in-eclipse-ide/
The URL for downloading the Zip file is for version 6.11 in the above link. If you need a higher version try
http://dl.bintray.com/testng-team/testng-eclipse-release/zipped/
It doesn't work for Eclipse Neon at all. You can try to download the zipped archive file and add the 'update site' as an archive file from the file system.
> Install TestNG In Eclipse IDE Via Offline Jar Files
Download the latest TestNG Jar files from the link TestNg Jars
Go to the eclipse installation directory and look for the “dropins” folder there.
Create a folder inside the dropins folder and name it as “testng-eclipse-6.11“
Extract the “site_assembly.zip” file and copy its contents to the newly created “testng-eclipse-6.11” directory.
Restart Eclipse
source: techbeamers
Make sure you don't have a space character before or after the entry in the "Work with" field as you try to add the software site.
Other than that, the software site is perfectly valid. Perhaps the server was just down at the time you tried it. You could also check to verify that there is no proxy or firewall filtering on your end. Try pinging the site or accessing it in some other way. If Eclipse can't talk to the site, it has no way of knowing that it is valid.
Make sure you are connected to the Internet
Key in the exact URL - http://beust.com/eclipse/
I tried Network connections -> Change native to manual -> Selected Socks and clicked on clear then I tried to install the TestNG plugin from install new software and add the URL. while installing eclipse was asking to sign in but I clicked on ok every time and installation were completed.
I tried many steps editing the eclipse.ini file etc and changing native to direct. None of those steps worked for me
Try below steps:-
Ping the URL in CMD to check if there are any loss of data packets.
So you will get clarity it is problem with your network or not ,try with different network.
Many times your antivirus or firewall block the incoming network so disable them temporarily and try.
To resolve this issue.
GO to Eclipse installed folder
Edit eclipse.ini file and insert
-Djava.net.preferIPv4Stack=true
at the end of that file. Restart the eclipse.
The given link is https://beust.com/eclipse
remove "s" from https & try with link http://beust.com/eclipse
I was using "http://beust.com/eclipse/" but unable to download TestNG jar it is showing no contents.
If you will use this URL "http://dl.bintray.com/testng-team/testng-eclipse-release/" then you will able to download, it worked for me.
Just install TestNG from below URL and no such issue will occur at latest eclipse releases:
http://dl.bintray.com/testng-team/testng-eclipse-release/
The above link didn't work it means you need a higher version of TestNG for the eclipse. Before that check TestNG is installed or not in order to know that press CTRL+N in the wizard you can see TestNG class file name.
If it is not displaying then try installing TestNG In Eclipse IDE Via Offline Jar Files:
1)Download the latest TestNG Jar files from the link TestNg Jars ("https://github.com/cbeust/testng-eclipse")
2)Download TestNG 6.11, Clicking on the link will download the “site_assembly.zip” file for the TestNG version 6.11. This file contains two folders named as “features” and “plugins“.Go to the eclipse installation directory and look for the “dropins” folder there.
3)Create a folder inside the dropins folder and name it as “testng-eclipse-6.11“
4)Extract the “site_assembly.zip” file and copy its contents to the newly created “testng-eclipse-6.11” directory.
5)Restart Eclipse
OR
Go click on Help> Install new Software> Under Available software> Work with textbox paste this "2019-06 - http://download.eclipse.org/releases/2019-06" and then click on ADD. You will now see the files like TestNG and a lot many others. Select TestNG click on Next> Next> Accept the condtions> Finish. It will restart the eclipse. Inorder to know the installation is successful Press CTRL+N.

Eclipse Plugin - XML Editor

I've followed this tutorial:
Eclipse Plugin
This tutorial explain why create a HTML Editor.
I need a Text editor,just for auto-highlight some words, anyway I thought this tuto should be a good one to start with.
The thing is that I created the Plugin project and the only thing that I changed it was the extension "pat" instead "html, htm", just that. After that I created a .pat file, but eclipse doesn't open it with my plugin, and my text editor is not in the editor's list.
Any suggestion??
Let me know if you need more information.
My guess is that you have just created the plugin, but aren't running it in your current Eclipse instance. That can be verified by opening the view "Plugin registry". That will show a list of all plugins, see if the plugin you have created is in that list.
If you click on the run button in Eclipse you will open a run configuration dialog. In one of the tabs, you get to choose what plugins should be available. Make sure your plug-in is selected. This will start up a new Eclipse instance that will run your plugin.
To make your plugin be a part of your ordinary Eclipse installation, you will need to export it to a jar and copy that jar to the dropins catalog.

Json Editor Plugin installation?

I feel really stupid by asking this question, but how can I install Json Editor Plugin in my Eclipse Helios? I looked at the Forum in sourceforge, but I can't install it neither through .zip or by adding a web site. And will I need to change the execution environment to Java 1.6?
Here is what I did to get the Json Editor Plugin to show up in the Install Dialog.
By doing a little Google-ing, I found this page which describes the steps to install JsonEditorPlugin on 3.4.
After you have followed the first 6 steps, make sure that Group items by category is un-ticked. After that, you can then choose Json Editor Plugin to be installed from the local Zip archive that you have downloaded from the net.
Edit: as a side note, you must not have the unzipped contents of the zip archive in the dropins/ folder, otherwise it will appear as if the plugin is already installed.
Simply dropping the zip contents into the dropins folder however did work also.
Note: You must right click your .json file and choose 'Open with' -> 'Json Editor'
You can install plugins by just unzipping them into the dropins folder.
It does not matter if the zip file contains the parent folders "plugins" and/or "eclipse".
I would recommend Java 1.6 as it brings a better performance and the plugin might require Java 1.6. On your desktop shortcut you use following execution arguments:
eclipse -vm <path to jre 1.6 installation folder>\bin\javaw
Download jsonedit-repository-0.9.7.zip (or whatever) and put it in a folder you like.
In Eclipse Help --> Install New Software
Add --> Archive button and select the zip file.
Name it and press OK
Press button Next and Follow master of installation.
Then after opening json file possibly needed right click mouse on the file --> open with --> JSON editor

How to manually install software/plugin to Eclipse IDE?

I have downloaded a RAR file from the following location, to be (manually) installed to Eclipse (Helios). How can I perform the manual installation?
http://sourceforge.net/projects/eclipsesql/files/SQL%20Explorer%20RCP%20%28exc%20JRE%29/3.6.1/sqlexplorer_rcp-3.6.1.macosx.cocoa.x86.tgz/download
Instead of putting it directly into the plugins directory, it's better to use the dropins directory as this was created just for this purpose. Have a look here: http://wiki.eclipse.org/Equinox_p2_Getting_Started#Dropins
For sqlexplorer: do not download the full RCP version (as your link does), this one is standalone. Get this one instead: http://sourceforge.net/projects/eclipsesql/files/SQL%20Explorer%20Plugin/3.6.1/sqlexplorer_plugin-3.6.1_SR2.zip/download
Extract this to $eclipse_home$\dropins\sqlexplorer and restart Eclipse.
BUT: Using the SqlExplorer Update Site (http://eclipsesql.sourceforge.net/) would be an even better option (Help>Install new Software)
I have tried the installation with the explanation about the dropins folder and had to tweak it like that:
Unzip the distribution into your eclipse installation directory under the folder dropins. Your structure should be:
eclipse/
dropins/
eclipse/
features/
plugins/
Remove all other files and directories. There is some missing piece (file contents.xml), so that the distribution is no real p2 repository which leads to an error. The directories plugins and features are sufficient.
Restart your eclipse (I have done it with option -clean, not sure if that is necessary).
SQLExplorer is then installed and visible in the help, in different menus and with a new perspective.
I even was able to use it to have a look at my SQLite3 database of a rails3 application. Wow!! So I will give it a try.
From their website (http://www.sqlexplorer.org/):
Eclipse Plugin
Download
Download the Eclipse SQL Explorer plugin and extract the zip file in your eclipse directory (requires Eclipse 3.3 or better).
After restarting eclipse with the -clean option, a new SQL Explorer perspective should be available.
Eclipse Update Site
You can install and update Eclipse SQL Explorer via the eclipse update mechanism. The update site for Eclipse SQL Explorer is http://eclipsesql.sourceforge.net/
I always go for the update site option if they present it, it's easier and lets you do updates easily. To use the update mechanism just select Help > Insall New Software... then enter the update site, press Add and go through the wizard.