- To enable Java 7 syntax in Intellij (this is independent of the installed
JDK version):
- Go to File|Project Structure.
- Choose 'Project' under 'Project Settings' in the left side.
- Change the 'Language Level' to 7.0.
- Select the appropriate SDK from the drop-down under "Project SDK:" - if
it's not present:
- Select "SDK" under the "Platform Settings" on the left panel.
- Click on the "+" above the middle panel and select JDK.
- Browse to the JDK on the hard drive.
- Change the default Project SDK version and project language level for
new projects:
File|Other Settings|Default Project Structure, then set the options as
listed above.
- Reverse engineering a class model using EA (thanks to Dr. Durant):
- Create an EA file in your project directory (where the src folder and
others are stored).
- Select Simple UML Views | Logical View
- In Project Browser, open Model: Logical View: Logical View
- Use the "Tools|Source Code Engineering|Import Java Files" menu item to
bring in all your files from src.
- The class diagram appears. You should reorganize the classes so they
"fit" nicely on the page.
See
Dr. Taylor's screencast
if you need more details.