Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Gyrex/Preparing Your Workspace For Developing Gyrex"

m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Here's how to set up your workspace for developing Gyrex.  
 
Here's how to set up your workspace for developing Gyrex.  
  
 +
== Setup Eclipse ==
 +
Download and install any Eclipse distribution suitable for developing Eclipse plug-ins. We recommend trying the latest Eclipse milestone for access to the latest features in JDT and PDE.
  
''1. Download and install any Eclipse distribution suitable for developing Eclipse plug-ins. We recommend trying the latest Eclipse milestone for access to the latest features in JDT and PDE.''
+
=== Required Plug-ins ===
 +
* Eclipse Plug-in Development Environment
 +
* Eclipse CVS Client
 +
* Eclipse Git Client
  
Required plug-ins:
+
=== Required JDK ===
 +
* Download and install your preferred Java 6 JDK
 +
* Window -> Preferences -> Java -> Installed JREs -> Add... -> Standard VM -> Next
 +
* Set JRE home to the Java 6 JDK folder -> Finish
 +
* Activate check-box to set Java 6 JDK as the default JDK in Eclipse
  
*Eclipse Plug-in Development Environment
 
*Eclipse CVS Client
 
*Eclipse Subversion Client
 
*Eclipse Git Client
 
  
 +
== Import Projects ==
 +
Please use the "Import Existing Projects" wizard to import all Gyrex projects from any cloned Git repository. We also provide a collection of Working Sets for your convenience. Working Sets can be imported using the AnyEdit Tools plug-in available via Eclipse Marketplace. You can find the Working Sets file in the RelEng project (<code>org.eclipse.gyrex.releng/devsupport/eclipse</code>).
  
''2. Checkout our pre-build target platform.''
+
== Setup Target Platform ==
 +
We maintain a shared target platform. It's located in the "org.eclipse.gyrex.releng" project in the <code>target</code> folder.
  
*File -&gt; Import... -&gt; SVN -&gt; Checkout Projects from SVN -&gt; Next
+
* Locate <code>org.eclipse.gyrex.releng/target</code>
*Create a new repository location -&gt; Next
+
* Open file <code>gyrex-dev.target</code> in Target Definition editor
*Url: <code>https://wagenknecht.org/svn/public/opensource/eclipse/target-platforms</code> -&gt; Next
+
* Wait till the target platform is resolved
*Select the top level folder (i.e. the URL) -&gt; Finish
+
* Click on link "Set as Target Platform" (located in the upper right corner of the Target Definition editor)
  
 +
== Import Code Settings ==
  
''3. Activate the target platform.''
+
== Optimize Project Browsing ==
 
+
*Expand project "target-platforms"
+
*Open file "eclipse-serverside.target" in Target Definition editor (simple double click should do the trick)
+
*Click on link "Set as Target Platform" (located in the upper right corner of the Target Definition editor)
+
 
+
 
+
''4. Download, install and configure Java 6 JDK.''
+
 
+
*Download and install your preferred Java 6 JDK
+
*Window -&gt; Preferences -&gt; Java -&gt; Installed JREs -&gt; Add... -&gt; Standard VM -&gt; Next
+
*Set JRE home to the Java 6 JDK folder -&gt; Finish
+
*Activate check-box to set Java 6 JDK as the default JDK in Eclipse
+
 
+
 
+
''5. Download and import the Team Project Sets.''
+
 
+
*Download Team Project Set from [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.gyrex/releng/org.eclipse.gyrex.releng/projectsets/gyrex-anonymous-with-dependencies.psf?root=Technology_Project&view=co here]
+
*File -&gt; Import... -&gt; Team -&gt; Team Project Set -&gt; Next
+
*Point to downloaded project set file -> Finish
+
* Confirm creation of repositories and any merge request with existing working sets
+
 
+
 
+
'' 6. Optimize project browsing. ''
+
  
 
* Switch to the Java perspective
 
* Switch to the Java perspective

Latest revision as of 08:40, 10 January 2012

Here's how to set up your workspace for developing Gyrex.

Setup Eclipse

Download and install any Eclipse distribution suitable for developing Eclipse plug-ins. We recommend trying the latest Eclipse milestone for access to the latest features in JDT and PDE.

Required Plug-ins

  • Eclipse Plug-in Development Environment
  • Eclipse CVS Client
  • Eclipse Git Client

Required JDK

  • Download and install your preferred Java 6 JDK
  • Window -> Preferences -> Java -> Installed JREs -> Add... -> Standard VM -> Next
  • Set JRE home to the Java 6 JDK folder -> Finish
  • Activate check-box to set Java 6 JDK as the default JDK in Eclipse


Import Projects

Please use the "Import Existing Projects" wizard to import all Gyrex projects from any cloned Git repository. We also provide a collection of Working Sets for your convenience. Working Sets can be imported using the AnyEdit Tools plug-in available via Eclipse Marketplace. You can find the Working Sets file in the RelEng project (org.eclipse.gyrex.releng/devsupport/eclipse).

Setup Target Platform

We maintain a shared target platform. It's located in the "org.eclipse.gyrex.releng" project in the target folder.

  • Locate org.eclipse.gyrex.releng/target
  • Open file gyrex-dev.target in Target Definition editor
  • Wait till the target platform is resolved
  • Click on link "Set as Target Platform" (located in the upper right corner of the Target Definition editor)

Import Code Settings

Optimize Project Browsing

  • Switch to the Java perspective
  • Open the Package Explorer view menu (little triangle icon in the upper right corner) and select "Top Level Elements -> Working Sets"
  • Select all working sets ("Select All")
  • We recommend sorting the working sets (check "Sort working sets")
  • We also recommend hierarchical package browsing (open the Package Explorer view menu and this time select "Package Presentation -> Hierarchical")

Back to the top