Working in MyEclipse, for the most part, starts first with a Project. You can create many different kinds of projects from the File > New > Project menu.
All projects marked with[Optional Maven Support] means that when you create that new project, you'll have an opportunity to enable Maven support on that project and use Maven to handle dependencies, building and even deployment of your project if you like. It's up to you.
Editing Source Files
If you want to permanently change a file-editor relationship, you can do that from the
Window > Preferences > General > Editors > File Associations preference page.
While editing, you can always invoke :
Learning these three shortcuts can save you a lot of time.
You can combine the format code and organize import operation along with more code cleaning features all as part of saving a file (CTRL-S) automatically, so you never have to run it yourself. You can do this from the preference page:
Window > Preferences > Java > Editor > Save Actions
Web Application Development
MyEclipse supports working on Web Projects, EJB Projects and Enterprise Application Projects using the following Java EE specification levels:
- J2EE 1.3
- J2EE 1.4
- Java EE 5
MyEclipse has visual page designers for all the major web technologies like Struts, JSF, Facelets, ICEfaces, JSP and HTML.
MyEclipse provides tooling for all the most popular persistence technologies, including full reverse-engineering and POJO/DAO generation support for:
- JPA (Toplink, Hibernate & OpenJPA)
MyEclipse also supports a gamut of web services frameworks, including service and client generation in either bottom-up (from a Class file) or top-down (from a WSDL) scenarios for:
- JAX-WS Web Services and Clients
- WebSphere JAX-WS and JAX-RPC Web Services and Client (Blue Only)
- X-Fire based Web Services and Clients
Database Explorer makes working with your database a snap. An example of how you can visualize your tables and relationships quickly:
Most all of the Web Service generation wizards can be launched directly from the tool bar, as well as the Web Service Explorer for testing your services. Just use these buttons to add services or explore:
MyEclipse will automatically handle building the different kinds of projects for you, but also provides support for Ant and Maven, if you prefer to use them, to perform tasks like testing, building or packaging your project.
Deployment & Running
MyEclipse provides integrated support for deploying your projects to your favorite application server (over 30 supported) in two different ways:
In addition to managing your project deployments from inside the IDE, you can also manage the Start, Stop and Restart cycle for all the most popular application servers, including Tomcat, Glassfish, JBoss, WebSphere, WebLogic, Resin, Jetty and more.
For really tight WebSphere deployment integration, check out MyEclipse Blue Edition, it's MyEclipse for WebSphere developers.
In addition to handling deployments and your server run-state independently, you can also run or debug your project even faster by using Run As or Debug As MyEclipse Server Application from the project's right-click context menu.
MyEclipse also includes an embedded version of Tomcat as well as the Derby DB, allowing you to develop DB-enabled Web Projects right out of the box with no additional software setup. Or, just test your own projects instantly.
As long as your server was started in Debug mode, you can debug any Class or JSP resource easily while excercising your application by setting a breakpoint in the source editor.
Using Ant or Maven Builders
A handy tip that not many people know is that besides MyEclipse handling builds and deployment for you, if you have custom needs or pre-existing Ant/Maven scripts that you want to use, you can easily integrate these into your build process by adding a custom Ant or Maven builder to your project. This will run the script, and the selected targets, for the following build stages:
- After a Clean
- During a Manual build
- During a Auto build
- During a Clean
The targets to execute for each stage are fully configurable when setting up the custom builder. You can do that by right-clicking on your project and opening Properties, then going to Builders and clicking Add. From there you can configure the custom builder of your choice:
You can have total control over your keyboard shortcuts in MyEclipse. All shortcuts can be adjusted from the preference page: Window > Preferences > General > Keys.
Common Navigation Shortcuts
Common Coding Shortcuts
Common Debugging Shortcuts
Common View Shortcuts