950 likes | 1.17k Views
Enterprise Development with IntelliJ IDEA. Mike Aizatsky Project Manager JetBrains, Inc. What is this all about. EJB development support Web development support J2EE applications deployment. Present & Future. IntelliJ IDEA 5.0 & 5.1 Plugins for IDEA 5 Features in development (IDEA 6.0).
E N D
Enterprise Development with IntelliJ IDEA Mike Aizatsky Project ManagerJetBrains, Inc.
What is this all about • EJB development support • Web development support • J2EE applications deployment
Present & Future • IntelliJ IDEA 5.0 & 5.1 • Plugins for IDEA 5 • Features in development (IDEA 6.0)
EJB Support • Dedicated module type • EJB view • Descriptor editing • Code assistance
EJB Module Type • Basically the same Java module • ejb-jar.xml is additionally specified
EJB View • Shows beans in the module • Individual bean structure • Starting place for EJB creation
EJB View • Beans in the module • Classes, comprising a bean • Bean structure: fields, primary keys
Rapid EJB Creation • All types of beans • Generates all needed interfaces • Adds descriptor entries
Rapid EJB Creation • Supply just bean name & package • All other names are derived automatically • Specify what you need to generate
Easy Transfer Objects • Choose a bean to generate Transfer Object • Transfer Object Bean is generated • Setter/getter automatically added to bean interfaces and implementation
Descriptors Editing: XML All the usual XML stuff • Completion • Validation Ejb-jar specific checks!
Descriptors Editing: Forms • Form editors instead of xml file • Cover almost all aspects of ejb-jar.xml • Validation checks
EJB-aware Code Assistance • On-the-fly validation • Intention actions • Navigation • Find usages • Refactorings
On-the-fly Validation • Dozens of checks for specification violation • All checks are version-dependent
Intention Actions • Easy-to-use intentions and quick fixes are provided
Navigation Every navigation feature is aware of EJB structure and name conventions
Find Usages Find Usages is EJB-aware
Refactoring • All Java refactorings work nicely • EJB “inheritance” is supported by rename • Rename EJB with all EJB classes automatically renamed
Other Frameworks Support Spring, Hibernate configuration files: • Classes, properties autocompletion • Find usages • Rename/move
Web Development • Web application module type • Web.xml editing • JSP/HTML/CSS/JS smart editing
Web Application Module Type • Basically the same Java module • web.xml location is specified • Web resource dir is added
Web.xml editing • XML-based editing: • Completion • Error highlighting • Navigation • Form-based editing
HTML Many Java developers do HTML coding. They deserve the same pleasure!
HTML: Code Completion Code Completion for: • Tags • Attributes • Attribute values • File references
HTML: Find Usages Find usages of: • Tags • IDs • Images • Files
HTML: Validation • Tag structure • Missing required attributes • Invalid attributes or illegal attribute values • Invalid local anchor • Wrong references to files in hyperlinks • Duplicate attributes
HTML: Refactoring • Rename • File • Id • Anchor • Move File • Safe Delete file index.xhtml main.xhtml
HTML: Tons Of Other Features • Quick tag/attributes documentation • Structure View • Open file in browser • Surround with tag • And many, many others
CSS CSS is a complex beast. We need a better tool for taming it.
CSS: Completion Completion of: • Tag names • Properties • Values • Classes • IDs, keywords, etc.
CSS: Find Usages Find usages of id/class
CSS: Validation • CSS syntax checks • Selectors • Properties • Values
CSS: Refactoring • Rename • File • Class • ID • Move/Copy file • Safe delete file • Extract style block from HTML into a CSS file
CSS: Show Applied Styles Shows all applied CSS styles to a given tag from all CSS files/declarations
CSS: Even More Features • Intention actions • Quick documentation access • Unused declarations highlighting • Code formatting • Structure view • Go to declaration • And many more…
JavaScript Our goal: make JavaScript development the same pleasure as Java development is
JavaScript: Code Completion Code completion for: • Keywords • Variables • Parameters • Functions
JavaScript: Error Highlighting On-the-fly syntax errors detection
JavaScript: Find Usages Find Usages of: • Local variables • Parameters • Global variables • Global functions • No qualified references (yet)
JavaScript: Structure View Shows high-level structure of JavaScript file
JavaScript: Code Formatting Versatile code formatting, powered by the same Java code formatting engine
JavaScript: Refactoring • Rename: • File • Function • Variable • Parameter • Move/copy file • Safe delete file • Extract inlined scripts in HTML
JavaScript: More Code Insight • Surround with {}, if, for, etc. • Go to declaration (variables, globals, parameters)
JavaScript: HTML All JavaScript features work in HTML files
JSP • Supports all editing features of embedded languages: HTML, CSS, JavaScript, Java • JSP constructs smart editing • JSP view • Content refactoring