Difference between revisions of "Eclipse Standard Installation"

From Blue-IT.org Wiki

(JFace)
(My favorate plugins)
 
(34 intermediate revisions by 2 users not shown)
Line 1: Line 1:
===Eclipse 3.2===
+
= Important Links =
 +
== Plugins ==
 +
* [http://www.eclipseplugincentral.com eclipseplugincentral.com]
 +
* [http://www.eclipse4you.com/ eclipse4you.com]
 +
 
 +
=== My favorate plugins ===
 +
Search for plugins: https://projects.eclipse.org/search/projects
 +
 
 +
I install from Luna upwards the following plugins:
 +
 
 +
'''Design:'''
 +
* UML Generators - https://projects.eclipse.org/projects/modeling.umlgen
 +
* Eclipse Window Builder - https://projects.eclipse.org/projects/tools.windowbuilder
 +
* XWT - https://projects.eclipse.org/projects/technology.xwt
 +
* Nebula additional Jface/SWT - https://projects.eclipse.org/projects/technology.nebula
 +
 
 +
Database:
 +
* Make sure, the DB development perspective is installed- https://wiki.eclipse.org/Scout/Tutorial/3.8/Database_Development_Perspective
 +
 
 +
'''Team- / Taskmanagement:'''
 +
* Subversive 2.0 - https://projects.eclipse.org/projects/technology.subversive
 +
* Redmine Mylin Plugin (currently only Luna - 12/2016) (zip-file!) - [[Redmine#Mylyn_Connector_for_Eclipse_and_Redmine_Plugin]]
 +
* Git is installed by default
 +
 
 +
Testing:
 +
* Jubula Fuctional Testing - https://projects.eclipse.org/projects/technology.jubula
 +
* (> Eclipse 4.5 Mars only) RCP Testing Tool - https://projects.eclipse.org/projects/technology.rcptt
 +
 
 +
'''RCP:'''
 +
* Eclipse Code Recommenders Tools - https://projects.eclipse.org/projects/technology.recommenders
 +
* Java Development Tools (JDT) - includes the Eclipse SDK which inkludes Platform, PDE and JDT - https://projects.eclipse.org/projects/eclipse.jdt
 +
* ( Plugin Development (PDE) - https://projects.eclipse.org/projects/eclipse.pde )
 +
* Remote Application Platform Runtime and Tools (install FIRST TOOLS, then Runtime) - https://projects.eclipse.org/projects/rt.rap (look out for the docker image with demo apps)
 +
 
 +
XML:
 +
* MSD XSD (zip-file!) - https://projects.eclipse.org/projects/modeling.mdt.xsd
 +
 
 +
'''Groovy / Jython / Python / C++ / C'''
 +
* PyDev - http://marketplace.eclipse.org/content/pydev-python-ide-eclipse and Installation instrucitions: http://www.pydev.org/manual_101_install.html
 +
* Linux tools (C++ / C) -https://projects.eclipse.org/projects/tools.linuxtools
 +
* Dynamic Language Toolkit -https://projects.eclipse.org/projects/technology.dltk
 +
* EASE (Jscript, Jython, Python, Groovy) - https://projects.eclipse.org/projects/technology.ease
 +
 
 +
== API ==
 +
* [http://www.jdocs.com jdocs.com]
 +
* [http://wiki.eclipse.org/Eclipse_Project Eclipse Project Wiki]
 +
* [http://wiki.eclipse.org/API_Central Wiki - API Central]
 +
 
 +
= Eclipse 3.4 Ganymed =
 +
--[[User:Apos|Apos]] 21:11, 3 July 2008 (CEST)
 +
 
 +
Concerning installation issues nothing changed dramatically. See above.
 +
== SWT / JFace ==
 +
=== Project setup ===
 +
Using SWT/JFace for a project needs adding the following to the '''build path''' of the project.
 +
 
 +
Under ''Project -> Properties ->  Java Build Path -> Libraries'' add the following ''variables'' (by extending the ECLIPSE_HOME variable)
 +
* org.eclipse.core.commands
 +
* org.eclipse.core.runtime
 +
* org.eclipse.equinox.common
 +
* org.eclipse.jface
 +
* org.eclipse.osgi
 +
* org.eclipse.swt
 +
* org.eclipse.swt.your_architecture (e.g. ''gtk.linux...'')
 +
 
 +
If you ecounter further problems or ''no class found'' errors you should consider the correspondent API of you subproject like e.g.
 +
* [http://www.eclipse.org/swt SWT API]
 +
according to you error messages and your eclipse version..
 +
 
 +
=== View javadoc of source code ===
 +
* Postet this solutin in [http://www.eclipseplugincentral.com/PNphpBB2-viewtopic-t-3688.html eclipseplugincentral.com forum]
 +
 
 +
It seams not to be enough to add the sources to the java build path (project->properties). For me (and I am under linux) I have to:
 +
 
 +
* Focus the considered classname with the cursor
 +
* Press F3
 +
-> The Class file editor opens
 +
* Read the "Source not found ..." message
 +
* Press the "Attach source..." button
 +
-> The dialog for source attachment configurarion opens
 +
* Press "Variable" button and add "ECLIPSE_HOME" from the next dialog. Close this with OK.
 +
* Back to the previous source attachment configuration dialog, press "Extension ..."
 +
* Locate your source file with e.g. "*swt*source*" in the search field an apply.
 +
 
 +
== Delta Pack ==
 +
Deployment of applications to different platforms.
 +
 
 +
Unfortunatly there is no ''update site'' for the ''delta pack''.
 +
Download from the eclipse download page:
 +
* [http://www.eclipse.org/downloads/ eclipse downloads]
 +
 
 +
Unzip into the eclipse folder and overwrite alkl files!
 +
 
 +
Now you will be able to choose ''Export for multiple platforms'' checkbox on the export dialog.
 +
 
 +
'''Important:''' Accroding to [http://www.eclipsezone.com/eclipse/forums/t110340.html this post] it is neccessary to '''uncheck''' the "Build target platform based on the target's installed plugins" checkbox on
 +
* Window -> Preferences -> Target Platform -> PlugIns
 +
 
 +
You ''don't'' have to add the platform dependent plugins for your application. Eclipse is doing this automatically on export!
 +
 
 +
== Fat jar ==
 +
The Fat Jar Eclipse Plug-In is a Deployment-Tool which deploys an Eclipse java-project into one executable jar.**
 +
 
 +
(**Description taken from homepage)
 +
 
 +
* [http://fjep.sourceforge.net/ Homepage]
 +
* [http://one-jar.sourceforge.net/ Update Manager Link]
 +
 
 +
== One-Jar (TM) ==
 +
Java developers often come to a point where they wish to deliver their application as a single Jar file...**
 +
 
 +
(**Description taken from homepage)
 +
 
 +
* [http://one-jar.sourceforge.net/ Homepage]
 +
 
 +
== JDocEditor==
 +
An Eclipse plugin that contributes a WYSIWYG JavaDoc editor to the JDT platform.
 +
 
 +
A nearly complete rewrite, now using pure SWT controls to achieve faster start-up, more efficient run-time operation, and lower operating resource requirements.
 +
 
 +
The key change is complete replacement of the SWT_AWT bridge and Swing HtmlEditorKit controls with a StyledText-based HTML WYSIWYG editor control, with supporting CSS query and spelling correction engines.
 +
 
 +
Other architectural changes include relaxing reliance on the Content Outline View and removes direct reliance on Eclipse internal packages. JDocEditor now properly recognizes navigation events from the current active JDT editor as well as the Outline, and the Outline is not required to be open to use JDocEditor. This version should be fully compatibile with JDT-based Eclipse derivatives, such as WebSphere.**
 +
 
 +
(**Description taken from homepage)
 +
 
 +
* [http://www.certiv.net/projects/jdoceditor.html Homepage]
 +
 
 +
== Jautodoc ==
 +
JAutodoc is an Eclipse  Plugin for automatic adding Javadoc and file headers to your source code. It optionally generates initial comments from element name. Starting with Release 1.3 of JAutodoc it is possible to define Velocity  templates  for Javadoc and file headers.**
 +
 
 +
(**Description taken from homepage)
 +
* [http://jautodoc.sourceforge.net homepage]
 +
* [http://jautodoc.sourceforge.net/update/ jautodoc update site]
 +
 
 +
== Doclipse ==
 +
Doclipse is an Eclipse plug-in to help you write Java source files with Javadoc tags, either for documentation purposes or to be processed by a tool such as EJBGen or XDoclet.  New tags can be added to the plug-in by writing XML files defining the new tags and their attributes.**
 +
 
 +
(**Description taken from homepage)
 +
* [http://beust.com/doclipse/ Homepage]
 +
 
 +
= Eclipse 3.3 Europa =
 +
A lot changed in version 3.3 (europa).
 +
Mainly the eclipse standard installation - called ''classic'' - covers a lot of what has to be additionally installed in 3.2. A feature list of the ''classic'' install can be found [http://www.eclipse.org/downloads/moreinfo/classic.php here].
 +
 
 +
If you choose ''Eclipse Classic'' the installer automatically finds out, what system you are running at. Otherwise choose ''Other downloads for 3.3''.
 +
 
 +
There is no need to explain anything here anymore, because the eclipse site is so beautifully designed, that you'll find any answer right the way.
 +
 
 +
=Eclipse 3.2=
 
With eclipse 3.2 a lot of new possibilities entered the way gaining a running standard eclipse installation within half an hour. In this article I focus on these major components:
 
With eclipse 3.2 a lot of new possibilities entered the way gaining a running standard eclipse installation within half an hour. In this article I focus on these major components:
 
* Eclipse Base SDK
 
* Eclipse Base SDK
 
* Callisto
 
* Callisto
 
* Subclipse
 
* Subclipse
 +
* SQL Editor
 
TODO (* Hibernate )  
 
TODO (* Hibernate )  
  
Line 12: Line 162:
 
If you don't do this, it is likely, that your developers - or yourself - will run into trouble when working with special sourcecode.
 
If you don't do this, it is likely, that your developers - or yourself - will run into trouble when working with special sourcecode.
  
==Prerequisites - Eclipse SDK==
+
==Prerequisites - Eclipse 3.2 SDK==
  
 
Assuming that you installed java before, download the eclipse service development kit (SDK) for your '''platform''' from [http://www.eclipse.org/downloads/ Eclipse Downloads]. Put it into your home directory (or elsewhere) and unzip or untar it.
 
Assuming that you installed java before, download the eclipse service development kit (SDK) for your '''platform''' from [http://www.eclipse.org/downloads/ Eclipse Downloads]. Put it into your home directory (or elsewhere) and unzip or untar it.
Line 18: Line 168:
 
Now you should be able to start your base eclipse installation.
 
Now you should be able to start your base eclipse installation.
  
==Use Callisto or Yoxos for Plugins==
+
==Use Callisto or Yoxos for most common Plugins==
 
Until here everything is, like before. But there is a good solution for getting all the various plugins installed without any trouble, working together from the scratch by using a new tool
 
Until here everything is, like before. But there is a good solution for getting all the various plugins installed without any trouble, working together from the scratch by using a new tool
 
*[http://www.eclipse.org/callisto/ Callisto] - the eclipse foundations version or
 
*[http://www.eclipse.org/callisto/ Callisto] - the eclipse foundations version or
Line 69: Line 219:
  
 
All other manual activities necessary with eclipse <= 3.1 are not needed any more.
 
All other manual activities necessary with eclipse <= 3.1 are not needed any more.
 +
 +
==Velocity==
 +
The [http://jakarta.apache.org/velocity/ apache velocity project] is a Java-based template engine:
 +
 +
''"It permits anyone to use a simple yet powerful template language to reference objects defined in Java code. Velocity separates Java code from the web pages, making the web site more maintainable over its lifespan and providing a viable alternative to Java Server Pages (JSPs) or PHP."''
 +
 +
The [http://veloedit.sourceforge.net/updates/ Veloedit] is accessible as plugin for eclipse:
 +
*[http://veloedit.sourceforge.net/updates/ http://veloedit.sourceforge.net/updates/]
  
 
==Poseidon==
 
==Poseidon==
Make a directory ''links'' to your eclipse directory
+
Make a directory called ''links'' to your eclipse directory
 
  mkdir eclipse/links
 
  mkdir eclipse/links
  
Line 81: Line 239:
  
 
Restart eclipse. That's it.
 
Restart eclipse. That's it.
 +
 +
 +
==ShellEd==
 +
An editor for unix shell scripts with sysntax highlighting.
 +
But the best is, that your shellscripts are fully integrated in your versioning system (cvs or svn).
 +
 +
[[Category:Eclipse]]
 +
[[Category:Software Engeneering]]
 +
[[Category:Java, Groovy and Grails]]

Latest revision as of 15:21, 29 April 2017

Important Links

Plugins

My favorate plugins

Search for plugins: https://projects.eclipse.org/search/projects

I install from Luna upwards the following plugins:

Design:

Database:

Team- / Taskmanagement:

Testing:

RCP:

XML:

Groovy / Jython / Python / C++ / C

API

Eclipse 3.4 Ganymed

--Apos 21:11, 3 July 2008 (CEST)

Concerning installation issues nothing changed dramatically. See above.

SWT / JFace

Project setup

Using SWT/JFace for a project needs adding the following to the build path of the project.

Under Project -> Properties -> Java Build Path -> Libraries add the following variables (by extending the ECLIPSE_HOME variable)

  • org.eclipse.core.commands
  • org.eclipse.core.runtime
  • org.eclipse.equinox.common
  • org.eclipse.jface
  • org.eclipse.osgi
  • org.eclipse.swt
  • org.eclipse.swt.your_architecture (e.g. gtk.linux...)

If you ecounter further problems or no class found errors you should consider the correspondent API of you subproject like e.g.

according to you error messages and your eclipse version..

View javadoc of source code

It seams not to be enough to add the sources to the java build path (project->properties). For me (and I am under linux) I have to:

  • Focus the considered classname with the cursor
  • Press F3

-> The Class file editor opens

  • Read the "Source not found ..." message
  • Press the "Attach source..." button

-> The dialog for source attachment configurarion opens

  • Press "Variable" button and add "ECLIPSE_HOME" from the next dialog. Close this with OK.
  • Back to the previous source attachment configuration dialog, press "Extension ..."
  • Locate your source file with e.g. "*swt*source*" in the search field an apply.

Delta Pack

Deployment of applications to different platforms.

Unfortunatly there is no update site for the delta pack. Download from the eclipse download page:

Unzip into the eclipse folder and overwrite alkl files!

Now you will be able to choose Export for multiple platforms checkbox on the export dialog.

Important: Accroding to this post it is neccessary to uncheck the "Build target platform based on the target's installed plugins" checkbox on

  • Window -> Preferences -> Target Platform -> PlugIns

You don't have to add the platform dependent plugins for your application. Eclipse is doing this automatically on export!

Fat jar

The Fat Jar Eclipse Plug-In is a Deployment-Tool which deploys an Eclipse java-project into one executable jar.**

(**Description taken from homepage)

One-Jar (TM)

Java developers often come to a point where they wish to deliver their application as a single Jar file...**

(**Description taken from homepage)

JDocEditor

An Eclipse plugin that contributes a WYSIWYG JavaDoc editor to the JDT platform.

A nearly complete rewrite, now using pure SWT controls to achieve faster start-up, more efficient run-time operation, and lower operating resource requirements.

The key change is complete replacement of the SWT_AWT bridge and Swing HtmlEditorKit controls with a StyledText-based HTML WYSIWYG editor control, with supporting CSS query and spelling correction engines.

Other architectural changes include relaxing reliance on the Content Outline View and removes direct reliance on Eclipse internal packages. JDocEditor now properly recognizes navigation events from the current active JDT editor as well as the Outline, and the Outline is not required to be open to use JDocEditor. This version should be fully compatibile with JDT-based Eclipse derivatives, such as WebSphere.**

(**Description taken from homepage)

Jautodoc

JAutodoc is an Eclipse Plugin for automatic adding Javadoc and file headers to your source code. It optionally generates initial comments from element name. Starting with Release 1.3 of JAutodoc it is possible to define Velocity templates for Javadoc and file headers.**

(**Description taken from homepage)

Doclipse

Doclipse is an Eclipse plug-in to help you write Java source files with Javadoc tags, either for documentation purposes or to be processed by a tool such as EJBGen or XDoclet. New tags can be added to the plug-in by writing XML files defining the new tags and their attributes.**

(**Description taken from homepage)

Eclipse 3.3 Europa

A lot changed in version 3.3 (europa). Mainly the eclipse standard installation - called classic - covers a lot of what has to be additionally installed in 3.2. A feature list of the classic install can be found here.

If you choose Eclipse Classic the installer automatically finds out, what system you are running at. Otherwise choose Other downloads for 3.3.

There is no need to explain anything here anymore, because the eclipse site is so beautifully designed, that you'll find any answer right the way.

Eclipse 3.2

With eclipse 3.2 a lot of new possibilities entered the way gaining a running standard eclipse installation within half an hour. In this article I focus on these major components:

  • Eclipse Base SDK
  • Callisto
  • Subclipse
  • SQL Editor

TODO (* Hibernate )

Therefore I don't fokus on the installation via your favorite distribution but through the native installation procedure into a local directory called simply eclipse or eclipse_VersionNumberwithin your home directory.

Why? If you like use your development environment on different plattforms (e.g. 64bit, 32bit, PPC), it is not possible to simply move your environment to an other computer. You have to install your eclipse installation from scratch on this particular machine - with all the plugins exactly the same concerning dependencies and versions.

If you don't do this, it is likely, that your developers - or yourself - will run into trouble when working with special sourcecode.

Prerequisites - Eclipse 3.2 SDK

Assuming that you installed java before, download the eclipse service development kit (SDK) for your platform from Eclipse Downloads. Put it into your home directory (or elsewhere) and unzip or untar it.

Now you should be able to start your base eclipse installation.

Use Callisto or Yoxos for most common Plugins

Until here everything is, like before. But there is a good solution for getting all the various plugins installed without any trouble, working together from the scratch by using a new tool

  • Callisto - the eclipse foundations version or
  • Yoxos - the commercial one

The latter can be used for allmost every commercial and non-commercial plugin for eclipse. For this service you'll have to pay an annual fee to Innoopract - the firm behind yoxos. This is a very useful and timesaving tool for getting done with the various dependencies between the different eclipse plugins.

There is a free version of yoxos, that contains a lot of free eclipse projects. Check it out.

Callisto however only summarizes - until now - 10 eclipse projects - enough for most of the projects around.

Sublipse Plugin

Maintaining your projects via subversion? Then you can use

for connecting eclipse to a subversion server.

It is always wise to store every project on the subversion server instead of managing different lokal installations of your projects!

My personally favorite method of gaining access to the svnserver is via ssh. The ssh connection only works with newer versions of subersion (greater 1.0.2). It uses the base authentification procedure of your system and needs no further configuration.

Open the svn perspective in eclipse and add a new location like this:

svn+ssh://username@servername_or_ip/directory/path/to/svn

Thereby you are addressing the svn directory on that server.

EPIC Perl Editor

For editing perl file with you can add the update site

http://e-p-i-c.sf.net/updates/testing

to you update manager an call it EPIC - Perl Editor

XSLT Editor

A good choice for an XSLT editor is the CPL licened one from Orangevolt.

The Update site:

http://eclipsexslt.sourceforge.net/update-site 

Call it e.g. Xslt Editor - Orangevolt.

Detailed informations and documentation you'll find on http://eclipsexslt.sourceforge.net/.

JFace

JFace is now a well integrated part in eclipse 3.2. You can easyly add a preconfigured SWT library to your project. Don't forget to switch the JFace support on.

The only thing you have to do now is to add a new library called OSGI to your project. Search the

eclipse/plugins/org.eclipse.osgi_3.2.0.vJJJMMDD.jar

file and assign it to this variable. That's it.

All other manual activities necessary with eclipse <= 3.1 are not needed any more.

Velocity

The apache velocity project is a Java-based template engine:

"It permits anyone to use a simple yet powerful template language to reference objects defined in Java code. Velocity separates Java code from the web pages, making the web site more maintainable over its lifespan and providing a viable alternative to Java Server Pages (JSPs) or PHP."

The Veloedit is accessible as plugin for eclipse:

Poseidon

Make a directory called links to your eclipse directory

mkdir eclipse/links

Edit a file called

eclipse/links/com.gentleware.poseidon.ide_integration.eclipse.link.txt 

with the following content path=/home/username/YourPoseidonInstallation/lib/poseidon

Restart eclipse. That's it.


ShellEd

An editor for unix shell scripts with sysntax highlighting. But the best is, that your shellscripts are fully integrated in your versioning system (cvs or svn).