blob: ddce11887590d99830c06057929c982dd4aae632 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta charset="utf-8">
<title>IDE Support for Wicket development | Apache Wicket</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="shortcut icon" href="/favicon.ico" type="image/vnd.microsoft.icon" />
<link rel="stylesheet" href="/css/style.css" type="text/css" media="screen" />
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="https://www.apachecon.com/event-images/snippet.js"></script>
</head>
<body class="">
<div class="header default">
<div class="l-container">
<nav class="mainmenu">
<div class="nav-logo">
<a href="/"><img src="/img/logo-apachewicket.svg" alt="Apache Wicket"></a>
</div>
<div class="nav-container">
<!-- /start/quickstart.html || /contribute/ides -->
<a href="/start/quickstart.html" class=" nav-items">Quick Start</a>
<!-- /start/download.html || /contribute/ides -->
<a href="/start/download.html" class=" nav-items">Download</a>
<!-- /learn || /contribute/ides -->
<a href="/learn" class=" nav-items">Documentation</a>
<!-- /help || /contribute/ides -->
<a href="/help" class=" nav-items">Support</a>
<!-- /contribute || /contribute/ides -->
<a href="/contribute" class=" nav-items">Contribute</a>
<!-- /community || /contribute/ides -->
<a href="/community" class=" nav-items">Community</a>
<!-- /apache || /contribute/ides -->
<a href="/apache" class=" nav-items">Apache</a>
</div>
<div class="nav-container ">
<a href="https://github.com/apache/wicket" target="_blank"><i class="fa fa-github nav-items"></i></a>
<a href="https://twitter.com/apache_wicket" target="_blank"><i class="fa fa-twitter nav-items"></i></a>
<a href="https://builtwithwicket.tumblr.com" target="_blank"><i class="fa fa-tumblr nav-items"></i></a>
</div>
</nav>
</div>
</div>
<main>
<div class="l-container">
<header class="l-full preamble">
<h1>IDE Support for Wicket development</h1>
</header>
<section class="toc left default ">
<div id="toc" class="toc"><div id="toc-title"><h2>Table of Contents</h2></div><ul><li class="toc--level-1 toc--section-1"><a href="#wicket-plugins"><span class="toc-number">1</span> <span class="toc-text">Wicket Plugins</span></a></li><li class="toc--level-1 toc--section-2"><a href="#setting-up-your-ide"><span class="toc-number">2</span> <span class="toc-text">Setting up your IDE</span></a><ul><li class="toc--level-2 toc--section-3"><a href="#eclipse"><span class="toc-number">2.1</span> <span class="toc-text">Eclipse</span></a></li><li class="toc--level-2 toc--section-4"><a href="#netbeans"><span class="toc-number">2.2</span> <span class="toc-text">NetBeans</span></a></li><li class="toc--level-2 toc--section-5"><a href="#idea"><span class="toc-number">2.3</span> <span class="toc-text">IDEA</span></a></li></ul></li></ul></div>
</section>
<section>
<h2 id="wicket-plugins">Wicket Plugins</h2>
<p>For all leading IDE’s support is under development. Here’s a list of efforts
for the major IDE’s.</p>
<ul>
<li>Eclipse: <a href="http://code.google.com/p/qwickie">Qwickie</a>, <a href="https://github.com/jennybrown8/wicket-source">Wicket Source</a></li>
<li>Netbeans: <a href="http://plugins.netbeans.org/plugin/3586/wicket-1-4-support">NB Wicket Support</a>, <a href="https://github.com/JoachimRohde/NBWicketSourcePlugin">Wicket Source</a></li>
<li>IntelliJ IDEA: <a href="http://wicketforge.googlecode.com/">Wicket Forge</a>, <a href="https://github.com/armhold/wicket-source-intellij">Wicket Source</a></li>
</ul>
<p>These projects are not maintained or supported by the core Wicket team, but
by their respective development teams.</p>
<h2 id="setting-up-your-ide">Setting up your IDE</h2>
<h3 id="eclipse">Eclipse</h3>
<p>Eclipse offers a native for Maven based projects. To import a maven project just go to ‘File…-&gt;Import…-&gt;Existing Maven Projects’ and import one or more Maven projects into your workspace.</p>
<p>Alternatively, you can generate an Eclipse project typing the following command on project’s root:</p>
<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="go">mvn eclipse:eclipse</span></code></pre></figure>
<p>Maven will add all the necessary JAR files to the project’s classpath. Now the sources can be imported in Eclipse using the “Existing Projects into Workspace” wizard.</p>
<p>If you want to go along with the Wicket way of code formatting you should import the Wicket code format profile into your workspace (Preferences-&gt;Java-&gt;Code Style-&gt;Formatter), found in:</p>
<figure class="highlight"><pre><code class="language-console" data-lang="console"><span class="gp">&lt;path-to-eclipse-workspace&gt;</span>/wicket-core/EclipseCodeFormat.xml</code></pre></figure>
<p>Finally configure the editor to automatically format all edited lines and organize imports on save (Preferences-&gt;Java-&gt;Editor-&gt;Save Actions).</p>
<h3 id="netbeans">NetBeans</h3>
<p>NetBeans comes with Maven integration. Further help can be found at their <a href="http://wiki.netbeans.org/MavenBestPractices" title="NetBeans Community Wiki">Wiki</a></p>
<h3 id="idea">IDEA</h3>
<p>IntelliJ IDEA comes with <a href="http://www.jetbrains.com/idea/webhelp/maven.html" title="IDEA Web Help">Maven support</a> too.</p>
<p>With the <a href="http://plugins.jetbrains.com/plugin/6546">Eclipse Code Formatter plugin</a> the Wicket format profile can be used in IntelliJ IDEA too. Configure the IDE to prevent star imports (Settings-&gt;Code Style-&gt;Imports).</p>
</section>
</div>
</main>
<footer>
<div class="l-container">
<div class="left">
<img src="/img/asf_logo_url.svg" style="height:90px; float:left; margin-right:10px;">
<div style="margin-top:12px;">Copyright © 2021 — The Apache Software Foundation. Apache Wicket, Wicket, Apache, the Apache feather logo, and the Apache Wicket project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.</div>
</div>
</div>
</footer>
</body>
</html>