Skip to content

M1 week 3 release notes

Andrey Sobolev edited this page Jul 14, 2014 · 4 revisions

Yang IDE week 3 build: yangide-m1.w3.update-site.zip

Features included in release

  • YANG files in maven dependencies
  • Syntax and validation errors
  • Advanced Completion:
  • type custom types
  • uses groupings
  • import module
  • include submodule
  • complete structure according to lexical rules (for example leaf after container node)
  • Smart paste
  • Comment actions (toggle, block)

Case Studies

Maven dependencies

  1. Clone GIT repository from https://git.opendaylight.org/gerrit/p/controller.git
  2. Import project controller/opendaylight/md-sal/model/model-flow-statistics by Import -> Existing Maven Project
  3. Open src/main/yang/opendaylight-flow-statistics.yang in YANG Editor
  4. Hold Ctrl or CMD key and click on yang-ext in import statement - IDE opens yang-ext.yang file from dependent JAR file
  5. Hold Ctrl or CMD key and click on uses flow-statistics statement - IDE select flow-statistics group in the editor
  6. Click on Link with Editor toolbar button to automatically navigate yang file in JAR dependencies

Syntax and validation errors

  1. Find grouping flow-statistics statement in opendaylight-flow-statistics.yang
  2. Change to group ing flow-statistics
  3. Syntax Error will be highlighted in the editor, no problem markers are created
  4. Save file
  5. Problem markers with Syntax errors will be created
  6. Revert changes and save again
  7. Errors will be clear

Maven validation error

  1. Create another grouping with the same name
  2. M2E error will display in problems view
  3. Open Error Logs view, detailed stack trace with reason of error will be displayed

Advanced Completion

  1. Put cursor position after import word and press completion hotkey
  2. List of available imports will be displayed
  3. Put cursor position after uses word and press completion hotkey
  4. List of available grouping will be displayed
  5. Put cursor position after type word and press completion hotkey
  6. List of available types will be displayed
  7. Put cursor position after include word and press completion hotkey
  8. List of available submodules will be displayed
  9. Put cursor position after belongs-to word and press completion hotkey
  10. List of available modules will be displayed
  11. Put cursor position after type or uses word and press completion hotkey
  12. List of available types or groupings will be displayed (including types or groupings contained in imported modules or submodules)
  13. Put cursor position to any empty space in some scoped block and press completion hotkey
  14. List of syntactically available at this position only keywords will be displayed

Smart paste

  1. Copy statement (either single- or multi-line)
  2. Put the cursor to the any position of some scope block and paste statement
  3. Statement will be pasted with correct indentation

Comment actions

  1. Ctrl+/ or Source -> Toggle comment to comment current line or selection with //
  2. Ctrl+Shift+/ or Source -> Add Block comment to comment current selection with block comment /**/
  3. Ctrl+Shift+\ or Source -> Remove Block comment to uncomment current selection
  • Home
  • First Steps
    • Installation Guide
    • [Import Project](Import Project)
    • [Create Project](Create Project)
    • [Yang Editor](Yang Editor)
  • New and Noteworthy
    • [1.0.0 release notes](M1 release notes)
    • [1.1.0 release notes](1.1.0 release notes)
    • [1.1.1 release notes](1.1.1 release notes)
  • [Features] (Features)
  • [M2E Integration] (M2E Integration)
  • [Yang Project Support] (Yang Project Support)
  • [Code Editing] (Code Editing)
  • [Code Navigation] (Code Navigation)
  • [Code Refactoring] (Code Refactoring)
  • [Diagram Model Editor] (Diagram Editor)
  • Developer Documentation
  • [Setup and build](Setup and build)
Clone this wiki locally