├── .gitignore
├── plugins
├── com.cisco.yangide.editor
│ ├── .gitignore
│ ├── help
│ │ ├── types
│ │ │ ├── binary.txt
│ │ │ ├── boolean.txt
│ │ │ ├── int8.txt
│ │ │ ├── bits.txt
│ │ │ ├── enumeration.txt
│ │ │ ├── int16.txt
│ │ │ ├── int32.txt
│ │ │ ├── int64.txt
│ │ │ ├── string.txt
│ │ │ ├── uint16.txt
│ │ │ ├── uint32.txt
│ │ │ ├── uint64.txt
│ │ │ ├── uint8.txt
│ │ │ ├── union.txt
│ │ │ ├── decimal64.txt
│ │ │ ├── leafref.txt
│ │ │ ├── empty.txt
│ │ │ ├── identityref.txt
│ │ │ └── instance-identifier.txt
│ │ └── keywords
│ │ │ └── namespace.txt
│ ├── icons
│ │ └── yang_file.png
│ ├── .classpath
│ ├── plugin.properties
│ ├── src
│ │ └── com
│ │ │ └── cisco
│ │ │ └── yangide
│ │ │ └── editor
│ │ │ ├── editors
│ │ │ ├── IReconcileHandler.java
│ │ │ ├── YangWhitespaceDetector.java
│ │ │ ├── IYangEditor.java
│ │ │ ├── text
│ │ │ │ └── YangSyntaxAnnotation.java
│ │ │ ├── IActionGroup.java
│ │ │ └── YangWordDetector.java
│ │ │ └── compare
│ │ │ └── YangFileMergeViewerCreator.java
│ ├── build.properties
│ ├── .project
│ └── META-INF
│ │ └── MANIFEST.MF
├── com.cisco.yangide.ui
│ ├── .gitignore
│ ├── icons
│ │ └── full
│ │ │ ├── obj16
│ │ │ ├── error_obj.gif
│ │ │ ├── leaf_obj.gif
│ │ │ ├── rpc_obj.gif
│ │ │ ├── type_obj.gif
│ │ │ ├── uses_obj.gif
│ │ │ ├── yang_file.png
│ │ │ ├── augment_obj.gif
│ │ │ ├── import_obj.gif
│ │ │ ├── include_obj.gif
│ │ │ ├── keyword_obj.gif
│ │ │ ├── module_obj.gif
│ │ │ ├── container_obj.gif
│ │ │ ├── deviation_obj.gif
│ │ │ ├── error_alt_obj.gif
│ │ │ ├── extension_obj.gif
│ │ │ ├── grouping_obj.gif
│ │ │ ├── identity_obj.gif
│ │ │ ├── rpc_input_obj.gif
│ │ │ ├── rpc_output_obj.gif
│ │ │ ├── submodule_obj.gif
│ │ │ ├── template_obj.gif
│ │ │ ├── custom_type_obj.gif
│ │ │ └── notification_obj.gif
│ │ │ ├── elcl16
│ │ │ └── view_menu.gif
│ │ │ ├── wizban
│ │ │ ├── newprj_wiz.png
│ │ │ └── newfile_wiz.png
│ │ │ └── etool16
│ │ │ ├── newfile_wiz.png
│ │ │ └── newprj_wiz.png
│ ├── resources
│ │ └── yang
│ │ │ └── new_yang_file.yang
│ ├── .classpath
│ ├── src
│ │ └── com
│ │ │ └── cisco
│ │ │ └── yangide
│ │ │ └── ui
│ │ │ ├── nls
│ │ │ ├── messages.properties
│ │ │ └── Messages.java
│ │ │ └── preferences
│ │ │ └── IYangColorConstants.java
│ ├── plugin.properties
│ ├── build.properties
│ ├── .project
│ └── META-INF
│ │ └── MANIFEST.MF
├── com.cisco.yangide.core.tests
│ ├── .gitignore
│ ├── yang
│ │ ├── simple_import_incomplete.yang
│ │ ├── simple_import.yang
│ │ ├── simple-string-demo.yang
│ │ └── acme-types.yang
│ ├── .classpath
│ ├── projects
│ │ └── yang
│ │ │ └── yang-p001
│ │ │ └── src
│ │ │ └── main
│ │ │ └── yang
│ │ │ └── simple-string-demo.yang
│ ├── META-INF
│ │ └── MANIFEST.MF
│ ├── build.properties
│ └── .project
├── com.cisco.yangide.m2e.yang
│ ├── .gitignore
│ ├── .classpath
│ ├── build.properties
│ ├── .project
│ └── META-INF
│ │ └── MANIFEST.MF
├── com.cisco.yangide.ext.model.editor
│ ├── templates
│ │ └── nodes
│ │ │ ├── anyxml.txt
│ │ │ ├── input.txt
│ │ │ ├── output.txt
│ │ │ ├── uses.txt
│ │ │ ├── case.txt
│ │ │ ├── grouping.txt
│ │ │ ├── container.txt
│ │ │ ├── leaf.txt
│ │ │ ├── list.txt
│ │ │ ├── notification.txt
│ │ │ ├── submodule.txt
│ │ │ ├── feature.txt
│ │ │ ├── identity.txt
│ │ │ ├── leaf list.txt
│ │ │ ├── choice.txt
│ │ │ ├── augment.txt
│ │ │ ├── deviation.txt
│ │ │ ├── rpc.txt
│ │ │ ├── extension.txt
│ │ │ └── typedef.txt
│ ├── icons
│ │ ├── yang_file.png
│ │ └── full
│ │ │ ├── obj16
│ │ │ ├── key_obj.gif
│ │ │ ├── rpc_obj.gif
│ │ │ ├── anyxml_obj.gif
│ │ │ ├── choice_obj.gif
│ │ │ ├── error_obj.gif
│ │ │ ├── import_obj.gif
│ │ │ ├── leaf_obj.gif
│ │ │ ├── list_obj.gif
│ │ │ ├── module_obj.gif
│ │ │ ├── type_obj.gif
│ │ │ ├── uses_obj.gif
│ │ │ ├── augment_obj.gif
│ │ │ ├── feature_obj.gif
│ │ │ ├── grouping_obj.gif
│ │ │ ├── identity_obj.gif
│ │ │ ├── include_obj.gif
│ │ │ ├── keyword_obj.gif
│ │ │ ├── template_obj.gif
│ │ │ ├── choice_case_obj.gif
│ │ │ ├── container_obj.gif
│ │ │ ├── custom_type_obj.gif
│ │ │ ├── deviation_obj.gif
│ │ │ ├── error_alt_obj.gif
│ │ │ ├── extension_obj.gif
│ │ │ ├── leaf_list_obj.gif
│ │ │ ├── rpc_input_obj.gif
│ │ │ ├── rpc_output_obj.gif
│ │ │ ├── submodule_obj.gif
│ │ │ └── notification_obj.gif
│ │ │ └── etool16
│ │ │ ├── add_obj.gif
│ │ │ ├── delete_obj.gif
│ │ │ ├── editor_obj.gif
│ │ │ └── collapseall_obj.gif
│ ├── .options
│ ├── .classpath
│ ├── src
│ │ └── com
│ │ │ └── cisco
│ │ │ └── yangide
│ │ │ └── ext
│ │ │ └── model
│ │ │ └── editor
│ │ │ ├── util
│ │ │ └── BusinessObjectWrapper.java
│ │ │ ├── preferences
│ │ │ └── ModelEditorPreferences.java
│ │ │ ├── sync
│ │ │ ├── TypedefPropertyUpdater.java
│ │ │ ├── ContainerPropertyUpdater.java
│ │ │ ├── LeafPropertyUpdater.java
│ │ │ ├── ChoicePropertyUpdater.java
│ │ │ └── ListPropertyUpdater.java
│ │ │ └── YangMutiPageEditorActionContributor.java
│ ├── build.properties
│ ├── .project
│ └── pom.xml
├── com.cisco.yangide.m2e.yang.tests
│ ├── plugin_customization.ini
│ ├── .classpath
│ ├── META-INF
│ │ └── MANIFEST.MF
│ ├── projects
│ │ └── yang
│ │ │ └── yang-p001
│ │ │ └── src
│ │ │ └── main
│ │ │ └── yang
│ │ │ └── simple-string-demo.yang
│ ├── build.properties
│ └── .project
├── com.cisco.yangide.core
│ ├── lib
│ │ ├── mapdb-1.0.4.jar
│ │ ├── slf4j-api-1.7.2.jar
│ │ ├── antlr4-runtime-4.0.jar
│ │ ├── yang-model-api-0.6.1.jar
│ │ └── yang-parser-impl-0.6.1.jar
│ ├── .classpath
│ ├── .project
│ ├── src
│ │ └── com
│ │ │ └── cisco
│ │ │ └── yangide
│ │ │ └── core
│ │ │ ├── parser
│ │ │ └── ITokenFormatter.java
│ │ │ ├── buffer
│ │ │ ├── IBufferChangedListener.java
│ │ │ ├── ILRUCacheable.java
│ │ │ ├── NullBuffer.java
│ │ │ └── ICacheEnumeration.java
│ │ │ ├── dom
│ │ │ ├── RevisionNode.java
│ │ │ ├── ASTCompositeNode.java
│ │ │ ├── SimpleNamedNode.java
│ │ │ ├── ChoiceNode.java
│ │ │ ├── Deviation.java
│ │ │ ├── RpcDefinition.java
│ │ │ ├── ChoiceCaseNode.java
│ │ │ ├── LeafSchemaNode.java
│ │ │ ├── TypeDefinition.java
│ │ │ ├── AnyXmlSchemaNode.java
│ │ │ ├── FeatureDefinition.java
│ │ │ ├── AugmentationSchema.java
│ │ │ ├── GroupingDefinition.java
│ │ │ ├── LeafListSchemaNode.java
│ │ │ ├── ContrainerSchemaNode.java
│ │ │ ├── ExtensionDefinition.java
│ │ │ ├── NotificationDefinition.java
│ │ │ ├── RpcInputNode.java
│ │ │ └── RpcOutputNode.java
│ │ │ ├── model
│ │ │ ├── YangElementType.java
│ │ │ └── YangFileInfo.java
│ │ │ ├── indexing
│ │ │ └── JobAdapter.java
│ │ │ └── IYangElementChangedListener.java
│ ├── build.properties
│ └── META-INF
│ │ └── MANIFEST.MF
├── com.cisco.yangide.ext.refactoring
│ ├── icons
│ │ └── calendar.gif
│ ├── .classpath
│ ├── plugin.properties
│ ├── build.properties
│ ├── .project
│ ├── pom.xml
│ ├── META-INF
│ │ └── MANIFEST.MF
│ └── src
│ │ └── com
│ │ └── cisco
│ │ └── yangide
│ │ └── ext
│ │ └── refactoring
│ │ └── ui
│ │ ├── ChangeRevisionRefactoringWizard.java
│ │ └── ExtractGroupingRefactoringWizard.java
└── com.cisco.yangide.ext.model
│ ├── .classpath
│ ├── plugin.properties
│ ├── META-INF
│ └── MANIFEST.MF
│ ├── build.properties
│ ├── plugin.xml
│ ├── .project
│ ├── model
│ └── model.notation
│ ├── src
│ └── com
│ │ └── cisco
│ │ └── yangide
│ │ └── ext
│ │ └── model
│ │ ├── Feature.java
│ │ ├── ListKey.java
│ │ ├── Typeref.java
│ │ ├── Rpc.java
│ │ ├── Anyxml.java
│ │ ├── Augment.java
│ │ ├── Deviation.java
│ │ ├── Extension.java
│ │ ├── Leaf.java
│ │ ├── List.java
│ │ ├── Choice.java
│ │ ├── Identity.java
│ │ ├── Revision.java
│ │ ├── Typedef.java
│ │ ├── Grouping.java
│ │ ├── LeafList.java
│ │ ├── Container.java
│ │ ├── Notification.java
│ │ ├── ChoiceCase.java
│ │ ├── NamedContainingNode.java
│ │ └── validation
│ │ ├── RpcValidator.java
│ │ ├── LeafValidator.java
│ │ ├── ListValidator.java
│ │ ├── AnyxmlValidator.java
│ │ ├── ChoiceValidator.java
│ │ ├── AugmentValidator.java
│ │ ├── FeatureValidator.java
│ │ ├── GroupingValidator.java
│ │ ├── IdentityValidator.java
│ │ ├── LeafListValidator.java
│ │ ├── ListKeyValidator.java
│ │ ├── RevisionValidator.java
│ │ ├── TypedefValidator.java
│ │ ├── TyperefValidator.java
│ │ ├── ChoiceCaseValidator.java
│ │ ├── ContainerValidator.java
│ │ ├── DeviationValidator.java
│ │ ├── ExtensionValidator.java
│ │ ├── NotificationValidator.java
│ │ ├── NamedContainingNodeValidator.java
│ │ ├── UsesValidator.java
│ │ ├── RpcIOValidator.java
│ │ ├── NamedNodeValidator.java
│ │ ├── ReferenceNodeValidator.java
│ │ ├── TagValidator.java
│ │ ├── NodeValidator.java
│ │ ├── IncludeValidator.java
│ │ └── TypedNodeValidator.java
│ └── pom.xml
├── product
├── rfc6020.pdf
├── yang-ide
│ └── .project
├── target-platform
│ ├── .project
│ └── pom.xml
├── update-site
│ ├── pom.xml
│ └── category.xml
└── m2e-yang-catalog.xml
├── tests
├── com.cisco.yangide.editor.test
│ ├── rcptt.properties
│ ├── .project
│ ├── TestCases
│ │ ├── OutlinePage
│ │ │ └── Outline.suite
│ │ ├── SyntaxColoring
│ │ │ ├── SyntaxColor.suite
│ │ │ ├── InvalidFileSyntaxColoringTestCase2.test
│ │ │ ├── InvalidFileSyntaxColoringTestCase4.test
│ │ │ ├── InvalidFileSyntaxColoringTestCase3.test
│ │ │ ├── InvalidFileSyntaxColoringTestCase5.test
│ │ │ ├── InvalidFileSyntaxColoringTestCase6.test
│ │ │ └── InvalidFileSyntaxColoringTestCase1.test
│ │ ├── AutoCompletion
│ │ │ └── AutoComplete.suite
│ │ ├── Wizards
│ │ │ └── Wizards.suite
│ │ ├── AutoIndenting
│ │ │ ├── AutoIndent.suite
│ │ │ └── SmartPasteTestCase1.test
│ │ └── AllTests.suite
│ └── Contexts
│ │ ├── YangIDEworkspaceCleanContext.ctx
│ │ └── YangIDEworkbenchCleanContext.ctx
└── com.cisco.yangide.ext.refactoring.test
│ ├── rcptt.properties
│ ├── .project
│ ├── Contexts
│ ├── UpdateMavenProjects.ctx
│ └── DefaultWorkbench.ctx
│ └── TestCases
│ └── AllTests.suite
├── .project
├── features
├── com.cisco.yangide.feature
│ ├── .project
│ └── build.properties
└── com.cisco.yangide.m2e.yang.feature
│ ├── .project
│ └── build.properties
├── samples
├── yang-module1
│ └── .project
└── yang-module2
│ └── .project
└── README.md
/.gitignore:
--------------------------------------------------------------------------------
1 | .settings/
2 | target/
3 | bin/
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core.tests/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.m2e.yang/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/help/types/binary.txt:
--------------------------------------------------------------------------------
1 | Any binary data
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/help/types/boolean.txt:
--------------------------------------------------------------------------------
1 | "true" or "false"
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/help/types/int8.txt:
--------------------------------------------------------------------------------
1 | 8-bit signed integer
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/help/types/bits.txt:
--------------------------------------------------------------------------------
1 | A set of bits or flags
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/help/types/enumeration.txt:
--------------------------------------------------------------------------------
1 | Enumerated strings
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/help/types/int16.txt:
--------------------------------------------------------------------------------
1 | 16-bit signed integer
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/help/types/int32.txt:
--------------------------------------------------------------------------------
1 | 32-bit signed integer
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/help/types/int64.txt:
--------------------------------------------------------------------------------
1 | 64-bit signed integer
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/help/types/string.txt:
--------------------------------------------------------------------------------
1 | Human-readable string
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/help/types/uint16.txt:
--------------------------------------------------------------------------------
1 | 16-bit unsigned integer
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/help/types/uint32.txt:
--------------------------------------------------------------------------------
1 | 32-bit unsigned integer
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/help/types/uint64.txt:
--------------------------------------------------------------------------------
1 | 64-bit unsigned integer
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/help/types/uint8.txt:
--------------------------------------------------------------------------------
1 | 8-bit unsigned integer
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/help/types/union.txt:
--------------------------------------------------------------------------------
1 | Choice of member types
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/templates/nodes/anyxml.txt:
--------------------------------------------------------------------------------
1 | anyxml @name@;
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/templates/nodes/input.txt:
--------------------------------------------------------------------------------
1 | input {
2 | }
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/templates/nodes/output.txt:
--------------------------------------------------------------------------------
1 | output {
2 | }
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/templates/nodes/uses.txt:
--------------------------------------------------------------------------------
1 | uses @name@;
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/templates/nodes/case.txt:
--------------------------------------------------------------------------------
1 | case @name@ {
2 | }
--------------------------------------------------------------------------------
/product/rfc6020.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/product/rfc6020.pdf
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/help/types/decimal64.txt:
--------------------------------------------------------------------------------
1 | 64-bit signed decimal number
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/help/types/leafref.txt:
--------------------------------------------------------------------------------
1 | A reference to a leaf instance
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/help/types/empty.txt:
--------------------------------------------------------------------------------
1 | A leaf that does not have any value
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/help/types/identityref.txt:
--------------------------------------------------------------------------------
1 | A reference to an abstract identity
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/help/types/instance-identifier.txt:
--------------------------------------------------------------------------------
1 | References a data tree node
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/templates/nodes/grouping.txt:
--------------------------------------------------------------------------------
1 | grouping @name@ {
2 |
3 | }
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/templates/nodes/container.txt:
--------------------------------------------------------------------------------
1 | container @name@ {
2 |
3 | }
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/templates/nodes/leaf.txt:
--------------------------------------------------------------------------------
1 | leaf @name@ {
2 | type string;
3 | }
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/templates/nodes/list.txt:
--------------------------------------------------------------------------------
1 | list @name@ {
2 | key "name";
3 | }
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/templates/nodes/notification.txt:
--------------------------------------------------------------------------------
1 | notification @name@ {
2 |
3 | }
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/templates/nodes/submodule.txt:
--------------------------------------------------------------------------------
1 | submodule @name@ {
2 |
3 | }
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/templates/nodes/feature.txt:
--------------------------------------------------------------------------------
1 | feature @name@ {
2 | description "";
3 | }
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/templates/nodes/identity.txt:
--------------------------------------------------------------------------------
1 | identity @name@ {
2 | description "";
3 | }
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/templates/nodes/leaf list.txt:
--------------------------------------------------------------------------------
1 | leaf-list @name@ {
2 | type string;
3 | }
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/templates/nodes/choice.txt:
--------------------------------------------------------------------------------
1 | choice @name@ {
2 | case case0 {
3 | }
4 | }
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.m2e.yang.tests/plugin_customization.ini:
--------------------------------------------------------------------------------
1 | org.eclipse.m2e.core/eclipse.m2.updateIndexes=false
2 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/templates/nodes/augment.txt:
--------------------------------------------------------------------------------
1 | augment @name@ {
2 | ext:augment-identifier "@name@";
3 | }
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/templates/nodes/deviation.txt:
--------------------------------------------------------------------------------
1 | deviation "/base:@name@" {
2 | deviate not-supported;
3 | }
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/templates/nodes/rpc.txt:
--------------------------------------------------------------------------------
1 | rpc @name@ {
2 | input {
3 | }
4 |
5 | output {
6 | }
7 | }
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/templates/nodes/extension.txt:
--------------------------------------------------------------------------------
1 | extension @name@ {
2 | description "";
3 | argument "name";
4 | }
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/lib/mapdb-1.0.4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.core/lib/mapdb-1.0.4.jar
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/templates/nodes/typedef.txt:
--------------------------------------------------------------------------------
1 | typedef @name@ {
2 | type string;
3 | description "Type description";
4 | }
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/lib/slf4j-api-1.7.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.core/lib/slf4j-api-1.7.2.jar
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/icons/yang_file.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.editor/icons/yang_file.png
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/lib/antlr4-runtime-4.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.core/lib/antlr4-runtime-4.0.jar
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/lib/yang-model-api-0.6.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.core/lib/yang-model-api-0.6.1.jar
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/error_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/error_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/leaf_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/leaf_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/rpc_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/rpc_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/type_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/type_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/uses_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/uses_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/yang_file.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/yang_file.png
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/lib/yang-parser-impl-0.6.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.core/lib/yang-parser-impl-0.6.1.jar
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.refactoring/icons/calendar.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.refactoring/icons/calendar.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/elcl16/view_menu.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/elcl16/view_menu.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/augment_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/augment_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/import_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/import_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/include_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/include_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/keyword_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/keyword_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/module_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/module_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/wizban/newprj_wiz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/wizban/newprj_wiz.png
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/yang_file.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/yang_file.png
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/etool16/newfile_wiz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/etool16/newfile_wiz.png
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/etool16/newprj_wiz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/etool16/newprj_wiz.png
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/container_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/container_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/deviation_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/deviation_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/error_alt_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/error_alt_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/extension_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/extension_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/grouping_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/grouping_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/identity_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/identity_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/rpc_input_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/rpc_input_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/rpc_output_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/rpc_output_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/submodule_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/submodule_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/template_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/template_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/wizban/newfile_wiz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/wizban/newfile_wiz.png
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/custom_type_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/custom_type_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/icons/full/obj16/notification_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ui/icons/full/obj16/notification_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/key_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/key_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/rpc_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/rpc_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/etool16/add_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/etool16/add_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/anyxml_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/anyxml_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/choice_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/choice_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/error_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/error_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/import_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/import_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/leaf_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/leaf_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/list_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/list_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/module_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/module_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/type_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/type_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/uses_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/uses_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/etool16/delete_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/etool16/delete_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/etool16/editor_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/etool16/editor_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/augment_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/augment_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/feature_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/feature_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/grouping_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/grouping_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/identity_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/identity_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/include_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/include_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/keyword_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/keyword_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/template_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/template_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/choice_case_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/choice_case_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/container_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/container_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/custom_type_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/custom_type_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/deviation_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/deviation_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/error_alt_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/error_alt_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/extension_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/extension_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/leaf_list_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/leaf_list_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/rpc_input_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/rpc_input_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/rpc_output_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/rpc_output_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/submodule_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/submodule_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/etool16/collapseall_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/etool16/collapseall_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/notification_obj.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xored/yang-ide/HEAD/plugins/com.cisco.yangide.ext.model.editor/icons/full/obj16/notification_obj.gif
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/.options:
--------------------------------------------------------------------------------
1 | com.cisco.yangide.ext.model.editor/debug=false
2 | com.cisco.yangide.ext.model.editor/editor/perf=false
3 | com.cisco.yangide.ext.model.editor/diagram/perf=false
4 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/resources/yang/new_yang_file.yang:
--------------------------------------------------------------------------------
1 | // Contents of "%MODULE%"
2 | module %MODULE% {
3 | namespace "%NAMESPACE%";
4 | prefix "%PREFIX%";
5 |
6 | revision %REVISION% {
7 | description "%REVISION_DESC%";
8 | }
9 |
10 | }
--------------------------------------------------------------------------------
/product/yang-ide/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | yang-ide
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/help/keywords/namespace.txt:
--------------------------------------------------------------------------------
1 | The "namespace" statement defines the XML namespace that all identifiers defined by the module are qualified by, with the exception of data node identifiers defined inside a grouping. The argument to the "namespace" statement is the URI of the namespace.
--------------------------------------------------------------------------------
/tests/com.cisco.yangide.editor.test/rcptt.properties:
--------------------------------------------------------------------------------
1 | --- RCPTT project settings ---
2 | Format-Version: 1.0
3 | Contexts: _zefAMAwDEeSdascDp4ftXw,_WP1mMBPOEeSaxLxF-fnitg
4 | Element-Name: Project Settings
5 | Element-Type: projectMetadata
6 | Element-Version: 2.0
7 | Id: _C9xu0Av7EeSdascDp4ftXw
8 | Runtime-Version: 1.5.0.201406151150
9 | Save-Time: 7/25/14 4:21 PM
10 |
11 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core.tests/yang/simple_import_incomplete.yang:
--------------------------------------------------------------------------------
1 | module my-crypto {
2 | namespace "http://example.com/my-crypto";
3 | prefix mc;
4 |
5 | import
6 |
7 | identity aes {
8 | base "crypto:crypto-alg";
9 | }
10 |
11 | leaf crypto {
12 | type identityref {
13 | base "crypto:crypto-alg";
14 | }
15 | }
16 | }
--------------------------------------------------------------------------------
/tests/com.cisco.yangide.ext.refactoring.test/rcptt.properties:
--------------------------------------------------------------------------------
1 | --- RCPTT project settings ---
2 | Format-Version: 1.0
3 | Contexts: _QEySUDJQEeSzJ-2otsp1aw,_OQXHUDJQEeSzJ-2otsp1aw,_IOJPATHIEeSMKNSnFXk2YA
4 | Element-Name: Project Settings
5 | Element-Type: projectMetadata
6 | Element-Version: 2.0
7 | Id: _C9xu0Av7EeSdascDp4ftXw
8 | Runtime-Version: 1.5.0.201406151150
9 | Save-Time: 9/2/14 4:16 PM
10 |
11 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core.tests/yang/simple_import.yang:
--------------------------------------------------------------------------------
1 | module my-crypto {
2 | namespace "http://example.com/my-crypto";
3 | prefix mc;
4 |
5 | import "crypto-base" {
6 | prefix "crypto";
7 | }
8 |
9 | identity aes {
10 | base "crypto:crypto-alg";
11 | }
12 |
13 | leaf crypto {
14 | type identityref {
15 | base "crypto:crypto-alg";
16 | }
17 | }
18 | }
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.refactoring/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | yang-ide
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.m2e.core.maven2Builder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.m2e.core.maven2Nature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core.tests/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.m2e.yang/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.m2e.yang.tests/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/features/com.cisco.yangide.feature/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | com.cisco.yangide.feature
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.pde.FeatureBuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.pde.FeatureNature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/product/target-platform/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | com.cisco.yangide.target-platform
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.m2e.core.maven2Builder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.m2e.core.maven2Nature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/features/com.cisco.yangide.m2e.yang.feature/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | com.cisco.yangide.m2e.yang.feature
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.pde.FeatureBuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.pde.FeatureNature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/tests/com.cisco.yangide.editor.test/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | com.cisco.yangide.editor.test
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.rcptt.core.builder.q7Builder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.rcptt.core.rcpttnature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/tests/com.cisco.yangide.ext.refactoring.test/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | com.cisco.yangide.ext.refactoring.test
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.rcptt.core.builder.q7Builder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.rcptt.core.rcpttnature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.refactoring/plugin.properties:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | #
4 | # This program and the accompanying materials are made available under the
5 | # terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | # and is available at http://www.eclipse.org/legal/epl-v10.html
7 | #
8 | ###############################################################################
9 | Refactor=Refac&tor
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/plugin.properties:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | #
4 | # This program and the accompanying materials are made available under the
5 | # terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | # and is available at http://www.eclipse.org/legal/epl-v10.html
7 | #
8 | ###############################################################################
9 | Source=&Source
10 | FormatDocument=&Format
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core.tests/yang/simple-string-demo.yang:
--------------------------------------------------------------------------------
1 | // This is comments
2 | /* This is also comments*/
3 | module simple-string-demo {
4 |
5 | namespace "urn:simple:string:demo";
6 | prefix "sbd";
7 |
8 | organization "OPEN DAYLIGHT";
9 | contact "http://www.opendaylight.org/";
10 |
11 | revision 2013-06-18 {
12 | }
13 |
14 | typedef typedef-string {
15 | type string {
16 | length "40";
17 | pattern "[0-9A-F]\.*";
18 | pattern "[B-D]*";
19 | pattern "[4-7]*";
20 | }
21 | }
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core.tests/projects/yang/yang-p001/src/main/yang/simple-string-demo.yang:
--------------------------------------------------------------------------------
1 | module simple-string-demo {
2 |
3 | namespace "urn:simple:string:demo";
4 | prefix "sbd";
5 |
6 | organization "OPEN DAYLIGHT";
7 | contact "http://www.opendaylight.org/";
8 |
9 | revision 2013-06-18 {
10 |
11 | }
12 | // This is also comment
13 | typedef typedef-string {
14 | type string {
15 | length "50";
16 | pattern "[0-9A-F]\.*";
17 | pattern "[B-D]*";
18 | pattern "[4-7]*";
19 | }
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.m2e.yang.tests/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Bundle-ManifestVersion: 2
3 | Bundle-Name: Tests Plug-in
4 | Bundle-SymbolicName: com.cisco.yangide.m2e.yang.tests
5 | Bundle-Version: 1.1.1.qualifier
6 | Bundle-RequiredExecutionEnvironment: JavaSE-1.7
7 | Require-Bundle: org.eclipse.m2e.tests.common;bundle-version="1.4.0",
8 | org.junit,
9 | org.eclipse.m2e.core;bundle-version="1.4.0",
10 | org.eclipse.core.resources,
11 | org.eclipse.core.runtime,
12 | org.eclipse.jdt.core,
13 | com.cisco.yangide.m2e.yang;bundle-version="0.1.0"
14 | Bundle-Vendor: Cisco Systems, Inc.
15 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.m2e.yang.tests/projects/yang/yang-p001/src/main/yang/simple-string-demo.yang:
--------------------------------------------------------------------------------
1 | module simple-string-demo {
2 |
3 | namespace "urn:simple:string:demo";
4 | prefix "sbd";
5 |
6 | organization "OPEN DAYLIGHT";
7 | contact "http://www.opendaylight.org/";
8 |
9 | revision 2013-06-18 {
10 |
11 | }
12 | // This is also comment
13 | typedef typedef-string {
14 | type string {
15 | length "50";
16 | pattern "[0-9A-F]\.*";
17 | pattern "[B-D]*";
18 | pattern "[4-7]*";
19 | }
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/tests/com.cisco.yangide.editor.test/TestCases/OutlinePage/Outline.suite:
--------------------------------------------------------------------------------
1 | --- RCPTT testcase ---
2 | Format-Version: 1.0
3 | Element-Name: Outline
4 | Element-Type: testsuite
5 | Element-Version: 2.0
6 | Id: _YDMzUBYVEeSaxLxF-fnitg
7 | Runtime-Version: 1.5.0.201406151150
8 | Save-Time: 7/28/14 12:09 PM
9 |
10 | ------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8
11 | Content-Type: text/testcase
12 | Entry-Name: testcase-items
13 |
14 | _Q2aGsBJKEeSuB9srVCSsAA // kind: 'test' name: 'OutlineViewTestCase' path: 'OutlineViewTestCase.test'
15 |
16 | ------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8--
17 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/plugin.properties:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | #
4 | # This program and the accompanying materials are made available under the
5 | # terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | # and is available at http://www.eclipse.org/legal/epl-v10.html
7 | #
8 | ###############################################################################
9 | #
10 |
11 | pluginName = Model Model
12 | providerName = www.example.org
13 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Bundle-ManifestVersion: 2
3 | Bundle-Name: %pluginName
4 | Bundle-SymbolicName: com.cisco.yangide.ext.model;singleton:=true
5 | Bundle-Version: 1.1.1.qualifier
6 | Bundle-ClassPath: .
7 | Bundle-Vendor: %providerName
8 | Bundle-Localization: plugin
9 | Bundle-RequiredExecutionEnvironment: JavaSE-1.7
10 | Export-Package: com.cisco.yangide.ext.model,
11 | com.cisco.yangide.ext.model.impl,
12 | com.cisco.yangide.ext.model.util
13 | Require-Bundle: org.eclipse.core.runtime,
14 | org.eclipse.emf.ecore;visibility:=reexport
15 | Bundle-ActivationPolicy: lazy
16 |
--------------------------------------------------------------------------------
/features/com.cisco.yangide.feature/build.properties:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | #
4 | # This program and the accompanying materials are made available under the
5 | # terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | # and is available at http://www.eclipse.org/legal/epl-v10.html
7 | #
8 | ###############################################################################
9 | bin.includes = feature.xml,\
10 | feature.properties,\
11 | license.html
12 |
--------------------------------------------------------------------------------
/tests/com.cisco.yangide.editor.test/TestCases/SyntaxColoring/SyntaxColor.suite:
--------------------------------------------------------------------------------
1 | --- RCPTT testcase ---
2 | Format-Version: 1.0
3 | Element-Name: SyntaxColor
4 | Element-Type: testsuite
5 | Element-Version: 2.0
6 | Id: _-hQJcBYcEeSaxLxF-fnitg
7 | Runtime-Version: 1.5.0.201406151150
8 | Save-Time: 7/28/14 1:27 PM
9 |
10 | ------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8
11 | Content-Type: text/testcase
12 | Entry-Name: testcase-items
13 |
14 | _JFpV4AwEEeSdascDp4ftXw // kind: 'test' name: 'ValidFileSyntaxColoringTestCase' path: 'ValidFileSyntaxColoringTestCase.test'
15 |
16 | ------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8--
17 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.m2e.yang.tests/build.properties:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | #
4 | # This program and the accompanying materials are made available under the
5 | # terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | # and is available at http://www.eclipse.org/legal/epl-v10.html
7 | #
8 | ###############################################################################
9 | source.. = src/
10 | output.. = target/classes/
11 | bin.includes = META-INF/,\
12 | .
13 |
--------------------------------------------------------------------------------
/features/com.cisco.yangide.m2e.yang.feature/build.properties:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | #
4 | # This program and the accompanying materials are made available under the
5 | # terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | # and is available at http://www.eclipse.org/legal/epl-v10.html
7 | #
8 | ###############################################################################
9 | bin.includes = feature.xml,\
10 | feature.properties,\
11 | license.html
12 |
--------------------------------------------------------------------------------
/samples/yang-module1/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | yang-module1
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.m2e.core.maven2Builder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/samples/yang-module2/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | yang-module2
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.m2e.core.maven2Builder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/product/target-platform/pom.xml:
--------------------------------------------------------------------------------
1 |
4 | 4.0.0
5 |
6 |
7 | com.cisco.yangide
8 | com.cisco.yangide.parent
9 | 1.1.1-SNAPSHOT
10 | ../..
11 |
12 |
13 | com.cisco.yangide.target-platform
14 | eclipse-target-definition
15 | 1.1.1-SNAPSHOT
16 |
17 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Yang-IDE
2 | ## Overview
3 | YANG IDE is an integrated development environment for a Yang Language(http://www.yang-central.org).
4 |
5 | It is licensed with [Eclipse Public License v1.0](http://www.eclipse.org/legal/epl-v10.html)
6 |
7 | Please note that a fork of this project continues to be actively maintained under [opendaylight.org](https://www.opendaylight.org/) in [the "yangide" repo on git.opendaylight.org](https://git.opendaylight.org/gerrit/gitweb?p=yangide.git;a=summary).
8 |
9 | ## Install instructions are here:
10 | [Install Yang-IDE](https://github.com/xored/yang-ide/wiki/Installing)
11 | ## Documentation are here:
12 | [Wiki](https://github.com/xored/yang-ide/wiki)
13 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/src/com/cisco/yangide/ui/nls/messages.properties:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | #
4 | # This program and the accompanying materials are made available under the
5 | # terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | # and is available at http://www.eclipse.org/legal/epl-v10.html
7 | #
8 | ###############################################################################
9 |
10 | pref_Base_cleanCodeGen=Clean generated code before M2E YANG code generation
11 | pref_Base_enableTracing=Enable tracing
12 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core.tests/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Bundle-ManifestVersion: 2
3 | Bundle-Name: YANG IDE Core Tests Plug-in
4 | Bundle-SymbolicName: com.cisco.yangide.core.tests
5 | Bundle-Version: 1.1.1.qualifier
6 | Bundle-RequiredExecutionEnvironment: JavaSE-1.7
7 | Require-Bundle: org.eclipse.m2e.tests.common;bundle-version="1.4.0",
8 | org.junit;bundle-version="3.8.2",
9 | org.eclipse.core.resources;bundle-version="3.4.2",
10 | org.eclipse.core.runtime;bundle-version="3.4.0",
11 | org.eclipse.jdt.core;bundle-version="3.4.4",
12 | com.cisco.yangide.core;bundle-version="0.1.0",
13 | org.eclipse.m2e.core;bundle-version="1.4.0"
14 | Bundle-Vendor: Cisco Systems, Inc.
15 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core.tests/build.properties:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | #
4 | # This program and the accompanying materials are made available under the
5 | # terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | # and is available at http://www.eclipse.org/legal/epl-v10.html
7 | #
8 | ###############################################################################
9 | source.. = src/
10 | output.. = target/classes/
11 | bin.includes = META-INF/,\
12 | .,\
13 | projects/,\
14 | yang/
15 |
--------------------------------------------------------------------------------
/product/update-site/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 4.0.0
4 |
5 |
6 | com.cisco.yangide
7 | com.cisco.yangide.parent
8 | 1.1.1-SNAPSHOT
9 | ../..
10 |
11 |
12 | com.cisco.yangide.update-site
13 | eclipse-repository
14 | 1.1.1-SNAPSHOT
15 |
16 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.m2e.yang/build.properties:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | #
4 | # This program and the accompanying materials are made available under the
5 | # terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | # and is available at http://www.eclipse.org/legal/epl-v10.html
7 | #
8 | ###############################################################################
9 | source.. = src/
10 | output.. = target/classes
11 | bin.includes = META-INF/,\
12 | .,\
13 | plugin.xml,\
14 | lifecycle-mapping-metadata.xml
15 |
--------------------------------------------------------------------------------
/tests/com.cisco.yangide.editor.test/TestCases/AutoCompletion/AutoComplete.suite:
--------------------------------------------------------------------------------
1 | --- RCPTT testcase ---
2 | Format-Version: 1.0
3 | Element-Name: AutoComplete
4 | Element-Type: testsuite
5 | Element-Version: 2.0
6 | Id: _WQPEEBYZEeSaxLxF-fnitg
7 | Runtime-Version: 1.5.0.201406151150
8 | Save-Time: 7/28/14 12:38 PM
9 |
10 | ------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8
11 | Content-Type: text/testcase
12 | Entry-Name: testcase-items
13 |
14 | _M0ZOcA5HEeSKlfM72EMibA // kind: 'test' name: 'AutoCompletionTestCase1' path: 'AutoCompletionTestCase1.test'
15 | _TwMTMA5YEeSKlfM72EMibA // kind: 'test' name: 'AutoCompletionTestCase2' path: 'AutoCompletionTestCase2.test'
16 |
17 | ------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8--
18 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.refactoring/build.properties:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | #
4 | # This program and the accompanying materials are made available under the
5 | # terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | # and is available at http://www.eclipse.org/legal/epl-v10.html
7 | #
8 | ###############################################################################
9 | source.. = src/
10 | output.. = target/classes
11 | bin.includes = META-INF/,\
12 | .,\
13 | plugin.xml,\
14 | plugin.properties,\
15 | icons/
16 |
17 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/src/com/cisco/yangide/ext/model/editor/util/BusinessObjectWrapper.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model.editor.util;
10 |
11 | public interface BusinessObjectWrapper {
12 | public T getBusinessObject();
13 | }
14 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/plugin.properties:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | #
4 | # This program and the accompanying materials are made available under the
5 | # terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | # and is available at http://www.eclipse.org/legal/epl-v10.html
7 | #
8 | ###############################################################################
9 |
10 | yang.wizard.category.name=YANG
11 | yang.wizard.project.name=YANG Project
12 | yang.wizard.project.description=Create a YANG Project
13 |
14 | yang.wizard.file.name=YANG File
15 | yang.wizard.file.description=Create a YANG File
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/build.properties:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | #
4 | # This program and the accompanying materials are made available under the
5 | # terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | # and is available at http://www.eclipse.org/legal/epl-v10.html
7 | #
8 | ###############################################################################
9 | source.. = src/
10 | output.. = target/classes
11 | bin.includes = META-INF/,\
12 | .,\
13 | plugin.properties,\
14 | plugin.xml,\
15 | resources/,\
16 | icons/
17 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/build.properties:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | #
4 | # This program and the accompanying materials are made available under the
5 | # terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | # and is available at http://www.eclipse.org/legal/epl-v10.html
7 | #
8 | ###############################################################################
9 | source.. = src/
10 | output.. = bin/
11 | bin.includes = icons/,\
12 | plugin.xml,\
13 | META-INF/,\
14 | .,\
15 | templates/,\
16 | .options
17 | src.includes = icons/
18 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/src/com/cisco/yangide/editor/editors/IReconcileHandler.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.editor.editors;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Aug 14, 2014
14 | */
15 | public interface IReconcileHandler {
16 | void reconcile();
17 | }
18 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/build.properties:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | #
4 | # This program and the accompanying materials are made available under the
5 | # terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | # and is available at http://www.eclipse.org/legal/epl-v10.html
7 | #
8 | ###############################################################################
9 | #
10 |
11 | bin.includes = .,\
12 | model/,\
13 | META-INF/,\
14 | plugin.xml,\
15 | plugin.properties,\
16 | src/
17 | jars.compile.order = .
18 | source.. = src/
19 | output.. = bin/
20 |
--------------------------------------------------------------------------------
/tests/com.cisco.yangide.editor.test/TestCases/Wizards/Wizards.suite:
--------------------------------------------------------------------------------
1 | --- RCPTT testcase ---
2 | Format-Version: 1.0
3 | Element-Name: Wizards
4 | Element-Type: testsuite
5 | Element-Version: 2.0
6 | Id: _MoMCYBPBEeSaxLxF-fnitg
7 | Runtime-Version: 1.5.0.201406151150
8 | Save-Time: 7/25/14 4:15 PM
9 |
10 | ------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8
11 | Content-Type: text/testcase
12 | Entry-Name: testcase-items
13 |
14 | _WbcsMBPBEeSaxLxF-fnitg // kind: 'test' name: 'NewYangProjectTest' path: 'NewYangProjectTest.test'
15 | _OhLngBPFEeSaxLxF-fnitg // kind: 'test' name: 'NewYangFileTest' path: 'NewYangFileTest.test'
16 | _QkzsIBPFEeSaxLxF-fnitg // kind: 'test' name: 'ImportYangProjectTest' path: 'ImportYangProjectTest.test'
17 |
18 | ------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8--
19 |
--------------------------------------------------------------------------------
/tests/com.cisco.yangide.ext.refactoring.test/Contexts/UpdateMavenProjects.ctx:
--------------------------------------------------------------------------------
1 | --- RCPTT testcase ---
2 | Format-Version: 1.0
3 | Context-Type: org.eclipse.rcptt.ctx.ecl
4 | Element-Name: UpdateMavenProjects
5 | Element-Type: context
6 | Element-Version: 2.0
7 | Id: _e7HegDJ-EeSzJ-2otsp1aw
8 | Runtime-Version: 1.5.0.201406151150
9 | Save-Time: 9/2/14 4:16 PM
10 |
11 | ------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998
12 | Content-Type: text/ecl
13 | Entry-Name: .ecl.context
14 |
15 | get-view "Package Explorer" | get-tree | select module1 | get-menu "Maven/Update Project..." | click
16 | with [get-window "Update Maven Project"] {
17 | get-tree | select module1
18 | get-button "Select All" | click
19 | get-button OK | click
20 | }
21 | ------=_.ecl.context-718f04b4-ed39-33e3-af62-0995e4561998--
22 |
--------------------------------------------------------------------------------
/tests/com.cisco.yangide.editor.test/TestCases/SyntaxColoring/InvalidFileSyntaxColoringTestCase2.test:
--------------------------------------------------------------------------------
1 | --- RCPTT testcase ---
2 | Format-Version: 1.0
3 | Contexts: _CN8X4Av8EeSdascDp4ftXw,_aHkbQAwDEeSdascDp4ftXw
4 | Element-Name: InvalidFileSyntaxColoringTestCase2
5 | Element-Type: testcase
6 | Element-Version: 3.0
7 | External-Reference:
8 | Id: _VzGTYAwZEeSdascDp4ftXw
9 | Runtime-Version: 1.5.0.201406151150
10 | Save-Time: 7/28/14 1:04 PM
11 | Testcase-Type: ecl
12 | Verifications: _qpxK0AwaEeSdascDp4ftXw
13 |
14 | ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
15 | Content-Type: text/ecl
16 | Entry-Name: .content
17 |
18 | with [get-editor "opendaylight-flow-statistics.yang" | get-text-viewer] {
19 | set-caret-pos 2 9
20 | type-text " "
21 | }
22 | ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
23 |
--------------------------------------------------------------------------------
/tests/com.cisco.yangide.editor.test/TestCases/SyntaxColoring/InvalidFileSyntaxColoringTestCase4.test:
--------------------------------------------------------------------------------
1 | --- RCPTT testcase ---
2 | Format-Version: 1.0
3 | Contexts: _CN8X4Av8EeSdascDp4ftXw,_aHkbQAwDEeSdascDp4ftXw
4 | Element-Name: InvalidFileSyntaxColoringTestCase4
5 | Element-Type: testcase
6 | Element-Version: 3.0
7 | External-Reference:
8 | Id: _5ayIEAwaEeSdascDp4ftXw
9 | Runtime-Version: 1.5.0.201406151150
10 | Save-Time: 7/28/14 1:05 PM
11 | Testcase-Type: ecl
12 | Verifications: _KdSm0AwbEeSdascDp4ftXw
13 |
14 | ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
15 | Content-Type: text/ecl
16 | Entry-Name: .content
17 |
18 | with [get-editor "opendaylight-flow-statistics.yang" | get-text-viewer] {
19 | set-caret-pos 4 1
20 | type-text "/*"
21 | }
22 | ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
23 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/plugin.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
12 |
13 |
14 |
15 |
16 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/tests/com.cisco.yangide.editor.test/TestCases/SyntaxColoring/InvalidFileSyntaxColoringTestCase3.test:
--------------------------------------------------------------------------------
1 | --- RCPTT testcase ---
2 | Format-Version: 1.0
3 | Contexts: _CN8X4Av8EeSdascDp4ftXw,_aHkbQAwDEeSdascDp4ftXw
4 | Element-Name: InvalidFileSyntaxColoringTestCase3
5 | Element-Type: testcase
6 | Element-Version: 3.0
7 | External-Reference:
8 | Id: _Zz-5cAwaEeSdascDp4ftXw
9 | Runtime-Version: 1.5.0.201406151150
10 | Save-Time: 7/28/14 1:05 PM
11 | Testcase-Type: ecl
12 | Verifications: _twNz0AwZEeSdascDp4ftXw
13 |
14 | ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
15 | Content-Type: text/ecl
16 | Entry-Name: .content
17 |
18 | with [get-editor "opendaylight-flow-statistics.yang" | get-text-viewer] {
19 | set-caret-pos 5 7
20 | key-type BackSpace
21 | }
22 | ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
23 |
--------------------------------------------------------------------------------
/tests/com.cisco.yangide.editor.test/TestCases/SyntaxColoring/InvalidFileSyntaxColoringTestCase5.test:
--------------------------------------------------------------------------------
1 | --- RCPTT testcase ---
2 | Format-Version: 1.0
3 | Contexts: _CN8X4Av8EeSdascDp4ftXw,_aHkbQAwDEeSdascDp4ftXw
4 | Element-Name: InvalidFileSyntaxColoringTestCase5
5 | Element-Type: testcase
6 | Element-Version: 3.0
7 | External-Reference:
8 | Id: _tWer4AweEeSdascDp4ftXw
9 | Runtime-Version: 1.5.0.201406151150
10 | Save-Time: 7/28/14 1:07 PM
11 | Testcase-Type: ecl
12 | Verifications: _tVaKUAwdEeSdascDp4ftXw
13 |
14 | ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
15 | Content-Type: text/ecl
16 | Entry-Name: .content
17 |
18 | with [get-editor "opendaylight-statistics-types.yang" | get-text-viewer] {
19 | set-caret-pos 5 6
20 | key-type BackSpace
21 | }
22 | ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
23 |
--------------------------------------------------------------------------------
/tests/com.cisco.yangide.editor.test/TestCases/SyntaxColoring/InvalidFileSyntaxColoringTestCase6.test:
--------------------------------------------------------------------------------
1 | --- RCPTT testcase ---
2 | Format-Version: 1.0
3 | Contexts: _CN8X4Av8EeSdascDp4ftXw,_aHkbQAwDEeSdascDp4ftXw
4 | Element-Name: InvalidFileSyntaxColoringTestCase6
5 | Element-Type: testcase
6 | Element-Version: 3.0
7 | External-Reference:
8 | Id: _R7EVEAwdEeSdascDp4ftXw
9 | Runtime-Version: 1.5.0.201406151150
10 | Save-Time: 7/28/14 1:06 PM
11 | Testcase-Type: ecl
12 | Verifications: _wR2Q0AweEeSdascDp4ftXw
13 |
14 | ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
15 | Content-Type: text/ecl
16 | Entry-Name: .content
17 |
18 | with [get-editor "opendaylight-statistics-types.yang" | get-text-viewer] {
19 | set-caret-pos 9 30
20 | key-type Enter
21 | }
22 | ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
23 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core.tests/yang/acme-types.yang:
--------------------------------------------------------------------------------
1 | submodule acme-types {
2 | belongs-to "acme-system" {
3 | prefix "acme";
4 | }
5 |
6 | import ietf-yang-types {
7 | prefix "yang";
8 | }
9 |
10 | organization "ACME Inc.";
11 | contact
12 | "Joe L. User
13 | ACME, Inc.
14 | 42 Anywhere Drive
15 | Nowhere, CA 95134
16 | USA
17 | Phone: +1 800 555 0100
18 | EMail: joe@acme.example.com";
19 |
20 | description
21 | "This submodule defines common ACME types.";
22 |
23 | revision "2007-06-09" {
24 | description "Initial revision.";
25 | }
26 |
27 | container test {
28 | leaf test {
29 | type acme:mytype;
30 | }
31 | }
32 | // definitions follows...
33 | }
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | com.cisco.yangide.ext.model.editor
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.pde.ManifestBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.pde.SchemaBuilder
20 |
21 |
22 |
23 |
24 |
25 | org.eclipse.pde.PluginNature
26 | org.eclipse.jdt.core.javanature
27 |
28 |
29 |
--------------------------------------------------------------------------------
/tests/com.cisco.yangide.editor.test/TestCases/AutoIndenting/AutoIndent.suite:
--------------------------------------------------------------------------------
1 | --- RCPTT testcase ---
2 | Format-Version: 1.0
3 | Element-Name: AutoIndent
4 | Element-Type: testsuite
5 | Element-Version: 2.0
6 | Id: _Ktvw8BYcEeSaxLxF-fnitg
7 | Runtime-Version: 1.5.0.201406151150
8 | Save-Time: 7/28/14 12:58 PM
9 |
10 | ------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8
11 | Content-Type: text/testcase
12 | Entry-Name: testcase-items
13 |
14 | _LA_SIAwNEeSdascDp4ftXw // kind: 'test' name: 'AutoIndentingTestCase' path: 'AutoIndentingTestCase.test'
15 | __1C5kA46EeS2F7KvdfPBCg // kind: 'test' name: 'SmartPasteTestCase1' path: 'SmartPasteTestCase1.test'
16 | _eiE1UA5AEeSmmuXdoHAkcQ // kind: 'test' name: 'SmartPasteTestCase2' path: 'SmartPasteTestCase2.test'
17 |
18 | ------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8--
19 |
--------------------------------------------------------------------------------
/tests/com.cisco.yangide.editor.test/TestCases/SyntaxColoring/InvalidFileSyntaxColoringTestCase1.test:
--------------------------------------------------------------------------------
1 | --- RCPTT testcase ---
2 | Format-Version: 1.0
3 | Contexts: _CN8X4Av8EeSdascDp4ftXw,_aHkbQAwDEeSdascDp4ftXw
4 | Element-Name: InvalidFileSyntaxColoringTestCase1
5 | Element-Type: testcase
6 | Element-Version: 3.0
7 | External-Reference:
8 | Id: _iv06cAwXEeSdascDp4ftXw
9 | Runtime-Version: 1.5.0.201406151150
10 | Save-Time: 7/28/14 1:25 PM
11 | Testcase-Type: ecl
12 | Verifications: _7pWjUAwYEeSdascDp4ftXw
13 |
14 | ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
15 | Content-Type: text/ecl
16 | Entry-Name: .content
17 |
18 | with [get-editor "opendaylight-flow-statistics.yang" | get-text-viewer] {
19 | set-caret-pos 2 48
20 | key-type Del
21 | }
22 | wait 5000
23 | ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/build.properties:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | #
4 | # This program and the accompanying materials are made available under the
5 | # terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | # and is available at http://www.eclipse.org/legal/epl-v10.html
7 | #
8 | ###############################################################################
9 | source.. = src/
10 | output.. = target/classes/
11 | bin.includes = plugin.xml,\
12 | META-INF/,\
13 | icons/,\
14 | resources/,\
15 | .,\
16 | templates/,\
17 | plugin.properties
18 | jars.compile.order = .
19 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | com.cisco.yangide.ui
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.pde.ManifestBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.pde.SchemaBuilder
20 |
21 |
22 |
23 |
24 |
25 | org.eclipse.pde.PluginNature
26 | org.eclipse.jdt.core.javanature
27 |
28 |
29 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | com.cisco.yangide.core
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.pde.ManifestBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.pde.SchemaBuilder
20 |
21 |
22 |
23 |
24 |
25 | org.eclipse.pde.PluginNature
26 | org.eclipse.jdt.core.javanature
27 |
28 |
29 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | com.cisco.yangide.editor
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.pde.ManifestBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.pde.SchemaBuilder
20 |
21 |
22 |
23 |
24 |
25 | org.eclipse.pde.PluginNature
26 | org.eclipse.jdt.core.javanature
27 |
28 |
29 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core.tests/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | com.cisco.yangide.core.tests
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.pde.ManifestBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.pde.SchemaBuilder
20 |
21 |
22 |
23 |
24 |
25 | org.eclipse.pde.PluginNature
26 | org.eclipse.jdt.core.javanature
27 |
28 |
29 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.m2e.yang/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | com.cisco.yangide.m2e.yang
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.pde.ManifestBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.pde.SchemaBuilder
20 |
21 |
22 |
23 |
24 |
25 | org.eclipse.pde.PluginNature
26 | org.eclipse.jdt.core.javanature
27 |
28 |
29 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.refactoring/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | com.cisco.yangide.ext.refactoring
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.pde.ManifestBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.pde.SchemaBuilder
20 |
21 |
22 |
23 |
24 |
25 | org.eclipse.pde.PluginNature
26 | org.eclipse.jdt.core.javanature
27 |
28 |
29 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.m2e.yang.tests/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | com.cisco.yangide.m2e.yang.tests
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.pde.ManifestBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.pde.SchemaBuilder
20 |
21 |
22 |
23 |
24 |
25 | org.eclipse.pde.PluginNature
26 | org.eclipse.jdt.core.javanature
27 |
28 |
29 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/parser/ITokenFormatter.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.parser;
10 |
11 | import org.antlr.v4.runtime.Token;
12 |
13 | /**
14 | * @author Konstantin Zaitsev
15 | * @date Jul 22, 2014
16 | */
17 | public interface ITokenFormatter {
18 | void process(Token token);
19 |
20 | String getFormattedContent();
21 | }
22 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | com.cisco.yangide.ext.model
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.pde.ManifestBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.pde.SchemaBuilder
20 |
21 |
22 |
23 |
24 |
25 | org.eclipse.sirius.nature.modelingproject
26 | org.eclipse.jdt.core.javanature
27 | org.eclipse.pde.PluginNature
28 |
29 |
30 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/build.properties:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | #
4 | # This program and the accompanying materials are made available under the
5 | # terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | # and is available at http://www.eclipse.org/legal/epl-v10.html
7 | #
8 | ###############################################################################
9 | source.. = src/
10 | output.. = target/classes
11 | bin.includes = META-INF/,\
12 | .,\
13 | lib/yang-parser-impl-0.6.1.jar,\
14 | lib/antlr4-runtime-4.0.jar,\
15 | lib/mapdb-1.0.4.jar,\
16 | plugin.xml,\
17 | lib/yang-model-api-0.6.1.jar,\
18 | lib/slf4j-api-1.7.2.jar
19 |
--------------------------------------------------------------------------------
/product/m2e-yang-catalog.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | org.eclipse.m2e.discovery.category.lifecycles
5 | 1.4,1.5
6 | yang
7 | lifecycles
8 | org.eclipse.m2e.discovery.lifecyclemapping.yang
9 | lifecycles
10 | EPL
11 | yang
12 | Cisco Systems, Inc.
13 |
14 | @REPO_URL@
15 | com.cisco.yangide.m2e.yang.feature.group
16 |
17 | com.cisco.yangide.m2e.yang
18 |
19 |
20 |
21 | yang
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.m2e.yang/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Bundle-ManifestVersion: 2
3 | Bundle-Name: com.cisco.yangide.m2e.yang
4 | Bundle-SymbolicName: com.cisco.yangide.m2e.yang;singleton:=true
5 | Bundle-Version: 1.1.1.qualifier
6 | Bundle-Vendor: Cisco Systems, Inc.
7 | Bundle-RequiredExecutionEnvironment: JavaSE-1.7
8 | Require-Bundle: org.eclipse.core.resources,
9 | org.eclipse.core.runtime,
10 | org.eclipse.m2e.jdt;bundle-version="1.4.0",
11 | org.eclipse.m2e.core;bundle-version="1.4.0",
12 | org.eclipse.m2e.maven.runtime;bundle-version="1.4.0",
13 | org.eclipse.jdt.core,
14 | com.cisco.yangide.core;bundle-version="0.1.0",
15 | com.cisco.yangide.ui;bundle-version="0.1.0",
16 | org.eclipse.core.filesystem;bundle-version="1.3.100",
17 | org.eclipse.ui;bundle-version="3.7.0"
18 | Bundle-ClassPath: .
19 | Bundle-Activator: com.cisco.yangide.m2e.yang.YangM2EPlugin
20 | Bundle-ActivationPolicy: lazy
21 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/src/com/cisco/yangide/ext/model/editor/preferences/ModelEditorPreferences.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model.editor.preferences;
10 |
11 | /**
12 | * Preferences constants for Model Editor.
13 | *
14 | * @author Konstantin Zaitsev
15 | * @date Aug 29, 2014
16 | */
17 | public class ModelEditorPreferences {
18 | public static String DIAGRAM_EDITOR_FONT = "diagram_editor_font";
19 | }
20 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Bundle-ManifestVersion: 2
3 | Bundle-Name: com.cisco.yangide.ui
4 | Bundle-SymbolicName: com.cisco.yangide.ui;singleton:=true
5 | Bundle-Version: 1.1.1.qualifier
6 | Bundle-Activator: com.cisco.yangide.ui.YangUIPlugin
7 | Bundle-Vendor: Cisco Systems, Inc.
8 | Bundle-Localization: plugin
9 | Require-Bundle: org.eclipse.ui,
10 | org.eclipse.core.runtime,
11 | org.eclipse.text,
12 | org.eclipse.core.resources,
13 | org.eclipse.ui.workbench,
14 | org.eclipse.m2e.core.ui;bundle-version="1.4.0",
15 | org.eclipse.m2e.maven.runtime,
16 | org.eclipse.m2e.core,
17 | org.eclipse.jdt.core,
18 | org.eclipse.ui.ide
19 | Bundle-RequiredExecutionEnvironment: JavaSE-1.7
20 | Bundle-ActivationPolicy: lazy
21 | Bundle-ClassPath: .
22 | Export-Package: com.cisco.yangide.ui,
23 | com.cisco.yangide.ui.internal,
24 | com.cisco.yangide.ui.nls,
25 | com.cisco.yangide.ui.preferences
26 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/model/model.notation:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/Feature.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model;
10 |
11 |
12 | /**
13 | *
14 | * A representation of the model object 'Feature'.
15 | *
16 | *
17 | *
18 | * @see com.cisco.yangide.ext.model.ModelPackage#getFeature()
19 | * @model
20 | * @generated
21 | */
22 | public interface Feature extends NamedNode {
23 | } // Feature
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/ListKey.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model;
10 |
11 |
12 | /**
13 | *
14 | * A representation of the model object 'List Key'.
15 | *
16 | *
17 | *
18 | * @see com.cisco.yangide.ext.model.ModelPackage#getListKey()
19 | * @model
20 | * @generated
21 | */
22 | public interface ListKey extends NamedNode {
23 | } // ListKey
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/Typeref.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model;
10 |
11 |
12 | /**
13 | *
14 | * A representation of the model object 'Typeref'.
15 | *
16 | *
17 | *
18 | * @see com.cisco.yangide.ext.model.ModelPackage#getTyperef()
19 | * @model
20 | * @generated
21 | */
22 | public interface Typeref extends NamedNode {
23 | } // Typeref
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/buffer/IBufferChangedListener.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.buffer;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Jun 24, 2014
14 | */
15 | public interface IBufferChangedListener {
16 | /**
17 | * Notifies that the given event has occurred.
18 | *
19 | * @param event the change event
20 | */
21 | public void bufferChanged(BufferChangedEvent event);
22 | }
23 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/Rpc.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model;
10 |
11 |
12 | /**
13 | *
14 | * A representation of the model object 'Rpc'.
15 | *
16 | *
17 | *
18 | * @see com.cisco.yangide.ext.model.ModelPackage#getRpc()
19 | * @model
20 | * @generated
21 | */
22 | public interface Rpc extends NamedContainingNode, TaggedNode {
23 | } // Rpc
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/Anyxml.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model;
10 |
11 |
12 | /**
13 | *
14 | * A representation of the model object 'Anyxml'.
15 | *
16 | *
17 | *
18 | * @see com.cisco.yangide.ext.model.ModelPackage#getAnyxml()
19 | * @model
20 | * @generated
21 | */
22 | public interface Anyxml extends NamedNode, TaggedNode {
23 | } // Anyxml
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/Augment.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model;
10 |
11 |
12 | /**
13 | *
14 | * A representation of the model object 'Augment'.
15 | *
16 | *
17 | *
18 | * @see com.cisco.yangide.ext.model.ModelPackage#getAugment()
19 | * @model
20 | * @generated
21 | */
22 | public interface Augment extends NamedContainingNode {
23 | } // Augment
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/Deviation.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model;
10 |
11 |
12 | /**
13 | *
14 | * A representation of the model object 'Deviation'.
15 | *
16 | *
17 | *
18 | * @see com.cisco.yangide.ext.model.ModelPackage#getDeviation()
19 | * @model
20 | * @generated
21 | */
22 | public interface Deviation extends NamedNode {
23 | } // Deviation
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/Extension.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model;
10 |
11 |
12 | /**
13 | *
14 | * A representation of the model object 'Extension'.
15 | *
16 | *
17 | *
18 | * @see com.cisco.yangide.ext.model.ModelPackage#getExtension()
19 | * @model
20 | * @generated
21 | */
22 | public interface Extension extends NamedNode {
23 | } // Extension
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/Leaf.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model;
10 |
11 |
12 | /**
13 | *
14 | * A representation of the model object 'Leaf'.
15 | *
16 | *
17 | *
18 | * @see com.cisco.yangide.ext.model.ModelPackage#getLeaf()
19 | * @model
20 | * @generated
21 | */
22 | public interface Leaf extends NamedNode, TaggedNode, TypedNode {
23 | } // Leaf
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/List.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model;
10 |
11 |
12 | /**
13 | *
14 | * A representation of the model object 'List'.
15 | *
16 | *
17 | *
18 | * @see com.cisco.yangide.ext.model.ModelPackage#getList()
19 | * @model
20 | * @generated
21 | */
22 | public interface List extends NamedContainingNode, TaggedNode {
23 | } // List
24 |
--------------------------------------------------------------------------------
/product/update-site/category.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/src/com/cisco/yangide/editor/editors/YangWhitespaceDetector.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.editor.editors;
10 |
11 | import org.eclipse.jface.text.rules.IWhitespaceDetector;
12 |
13 | /**
14 | * @author Alexey Kholupko
15 | */
16 | public class YangWhitespaceDetector implements IWhitespaceDetector {
17 |
18 | public boolean isWhitespace(char c) {
19 | return (c == ' ' || c == '\t' || c == '\n' || c == '\r');
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/Choice.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model;
10 |
11 |
12 | /**
13 | *
14 | * A representation of the model object 'Choice'.
15 | *
16 | *
17 | *
18 | * @see com.cisco.yangide.ext.model.ModelPackage#getChoice()
19 | * @model
20 | * @generated
21 | */
22 | public interface Choice extends NamedContainingNode, TaggedNode {
23 | } // Choice
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/Identity.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model;
10 |
11 |
12 | /**
13 | *
14 | * A representation of the model object 'Identity'.
15 | *
16 | *
17 | *
18 | * @see com.cisco.yangide.ext.model.ModelPackage#getIdentity()
19 | * @model
20 | * @generated
21 | */
22 | public interface Identity extends NamedNode, ReferenceNode {
23 | } // Identity
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/Revision.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model;
10 |
11 |
12 | /**
13 | *
14 | * A representation of the model object 'Revision'.
15 | *
16 | *
17 | *
18 | * @see com.cisco.yangide.ext.model.ModelPackage#getRevision()
19 | * @model
20 | * @generated
21 | */
22 | public interface Revision extends TaggedNode, NamedNode {
23 | } // Revision
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/Typedef.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model;
10 |
11 |
12 | /**
13 | *
14 | * A representation of the model object 'Typedef'.
15 | *
16 | *
17 | *
18 | * @see com.cisco.yangide.ext.model.ModelPackage#getTypedef()
19 | * @model
20 | * @generated
21 | */
22 | public interface Typedef extends NamedNode, TaggedNode, TypedNode {
23 | } // Typedef
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/buffer/ILRUCacheable.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.buffer;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Jun 24, 2014
14 | */
15 | public interface ILRUCacheable {
16 | /**
17 | * Returns the space the receiver consumes in an LRU Cache. The default space value is 1.
18 | *
19 | * @return int Amount of cache space taken by the receiver
20 | */
21 | public int getCacheFootprint();
22 | }
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/Grouping.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model;
10 |
11 |
12 | /**
13 | *
14 | * A representation of the model object 'Grouping'.
15 | *
16 | *
17 | *
18 | * @see com.cisco.yangide.ext.model.ModelPackage#getGrouping()
19 | * @model
20 | * @generated
21 | */
22 | public interface Grouping extends NamedContainingNode, TaggedNode {
23 | } // Grouping
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/LeafList.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model;
10 |
11 |
12 | /**
13 | *
14 | * A representation of the model object 'Leaf List'.
15 | *
16 | *
17 | *
18 | * @see com.cisco.yangide.ext.model.ModelPackage#getLeafList()
19 | * @model
20 | * @generated
21 | */
22 | public interface LeafList extends NamedNode, TaggedNode, TypedNode {
23 | } // LeafList
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/Container.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model;
10 |
11 |
12 | /**
13 | *
14 | * A representation of the model object 'Container'.
15 | *
16 | *
17 | *
18 | * @see com.cisco.yangide.ext.model.ModelPackage#getContainer()
19 | * @model
20 | * @generated
21 | */
22 | public interface Container extends NamedContainingNode, TaggedNode {
23 | } // Container
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/Notification.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model;
10 |
11 |
12 | /**
13 | *
14 | * A representation of the model object 'Notification'.
15 | *
16 | *
17 | *
18 | * @see com.cisco.yangide.ext.model.ModelPackage#getNotification()
19 | * @model
20 | * @generated
21 | */
22 | public interface Notification extends NamedContainingNode {
23 | } // Notification
24 |
--------------------------------------------------------------------------------
/tests/com.cisco.yangide.editor.test/TestCases/AllTests.suite:
--------------------------------------------------------------------------------
1 | --- RCPTT testcase ---
2 | Format-Version: 1.0
3 | Element-Name: AllTests
4 | Element-Type: testsuite
5 | Element-Version: 2.0
6 | Id: _bntb4BYVEeSaxLxF-fnitg
7 | Runtime-Version: 1.5.0.201406151150
8 | Save-Time: 7/28/14 1:17 PM
9 |
10 | ------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8
11 | Content-Type: text/testcase
12 | Entry-Name: testcase-items
13 |
14 | _MoMCYBPBEeSaxLxF-fnitg // kind: 'suite' name: 'Wizards' path: 'Wizards/Wizards.suite'
15 | _YDMzUBYVEeSaxLxF-fnitg // kind: 'suite' name: 'Outline' path: 'OutlinePage/Outline.suite'
16 | _WQPEEBYZEeSaxLxF-fnitg // kind: 'suite' name: 'AutoComplete' path: 'AutoCompletion/AutoComplete.suite'
17 | _Ktvw8BYcEeSaxLxF-fnitg // kind: 'suite' name: 'AutoIndent' path: 'AutoIndenting/AutoIndent.suite'
18 | _-hQJcBYcEeSaxLxF-fnitg // kind: 'suite' name: 'SyntaxColor' path: 'SyntaxColoring/SyntaxColor.suite'
19 |
20 | ------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8--
21 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/ChoiceCase.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model;
10 |
11 |
12 | /**
13 | *
14 | * A representation of the model object 'Choice Case'.
15 | *
16 | *
17 | *
18 | * @see com.cisco.yangide.ext.model.ModelPackage#getChoiceCase()
19 | * @model
20 | * @generated
21 | */
22 | public interface ChoiceCase extends NamedContainingNode, TaggedNode {
23 | } // ChoiceCase
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/src/com/cisco/yangide/editor/editors/IYangEditor.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.editor.editors;
10 |
11 | /**
12 | * Basic interface to operate with YangEditor.
13 | *
14 | * @author Konstantin Zaitsev
15 | * @date Aug 27, 2014
16 | */
17 | public interface IYangEditor {
18 |
19 | /**
20 | * Select text and scroll to selected text.
21 | *
22 | * @param offset
23 | * @param length
24 | */
25 | void selectAndReveal(int offset, int length);
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/src/com/cisco/yangide/editor/editors/text/YangSyntaxAnnotation.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.editor.editors.text;
10 |
11 | import org.eclipse.jface.text.source.Annotation;
12 |
13 | /**
14 | * @author Konstantin Zaitsev
15 | * @date Jul 10, 2014
16 | */
17 | public class YangSyntaxAnnotation extends Annotation {
18 | public static final String TYPE = "com.cisco.yangide.core.syntax";
19 |
20 | public YangSyntaxAnnotation(String msg) {
21 | super(TYPE, false, msg);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/tests/com.cisco.yangide.editor.test/Contexts/YangIDEworkspaceCleanContext.ctx:
--------------------------------------------------------------------------------
1 | --- RCPTT testcase ---
2 | Format-Version: 1.0
3 | Context-Type: org.eclipse.rcptt.ctx.workspace
4 | Element-Name: YangIDEworkspaceCleanContext
5 | Element-Type: context
6 | Element-Version: 2.0
7 | Id: _kWZHoBPCEeSaxLxF-fnitg
8 | Runtime-Version: 1.5.0.201406151150
9 | Save-Time: 7/25/14 1:25 PM
10 |
11 | ------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf
12 | Content-Type: q7/binary
13 | Entry-Name: .q7.content
14 |
15 | UEsDBBQACAgIAAAAIQAAAAAAAAAAAAAAAAAIAAAALmNvbnRlbnSVkEFrg0AQhe+B/Idl7u62OQXRCLWW
16 | CC0EckjbS1jWdbuos6LTuj8/a6heS2/D43vvzUyS+a5lP3oYrcMUHvkDMI3KVRZNCt9UR3vIDttN4gbD
17 | tWptP2o+qJ6IK/J8ckMz9lLp+LJMuUPSnpjvbLzm7ubc0IRjHPQUvoj6WIhpmrjrDA/h4v2tXJA/ulb7
18 | wsz2OycCJ1YOGMou0B8STflcrHreaom/awKzVQrX5vJ5dE+nvNBn6V/9S1SjJQPhcMYSNaNIYn6D+O8f
19 | gukGUEsHCJu5mEDNAAAAZAEAAFBLAQIUABQACAgIAAAAIQCbuZhAzQAAAGQBAAAIAAAAAAAAAAAAAAAA
20 | AAAAAAAuY29udGVudFBLBQYAAAAAAQABADYAAAADAQAAAAA=
21 | ------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf--
22 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Bundle-ManifestVersion: 2
3 | Bundle-Name: com.cisco.yangide.core
4 | Bundle-SymbolicName: com.cisco.yangide.core;singleton:=true
5 | Bundle-Version: 1.1.1.qualifier
6 | Bundle-Activator: com.cisco.yangide.core.YangCorePlugin
7 | Bundle-Vendor: Cisco Systems, Inc.
8 | Require-Bundle: org.eclipse.core.runtime,
9 | org.eclipse.jdt.core;visibility:=reexport,
10 | org.eclipse.text,
11 | org.eclipse.core.resources,
12 | org.eclipse.core.filesystem
13 | Bundle-RequiredExecutionEnvironment: JavaSE-1.7
14 | Bundle-ActivationPolicy: lazy
15 | Bundle-ClassPath: .,
16 | lib/yang-parser-impl-0.6.1.jar,
17 | lib/yang-model-api-0.6.1.jar,
18 | lib/antlr4-runtime-4.0.jar,
19 | lib/mapdb-1.0.4.jar,
20 | lib/slf4j-api-1.7.2.jar
21 | Export-Package: com.cisco.yangide.core,
22 | com.cisco.yangide.core.buffer,
23 | com.cisco.yangide.core.dom,
24 | com.cisco.yangide.core.indexing,
25 | com.cisco.yangide.core.parser,
26 | com.cisco.yangide.core.model,
27 | org.antlr.v4.runtime
28 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/src/com/cisco/yangide/editor/editors/IActionGroup.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.editor.editors;
10 |
11 | /**
12 | * Interface to describe custom actions group for YANG editor.
13 | *
14 | * @author Konstantin Zaitsev
15 | * @date Jul 29, 2014
16 | */
17 | public interface IActionGroup {
18 |
19 | /**
20 | * Initializes action group.
21 | *
22 | * @param editor yang editor
23 | * @param groupName action group name
24 | */
25 | void init(YangEditor editor, String groupName);
26 | }
27 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/NamedContainingNode.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model;
10 |
11 |
12 | /**
13 | *
14 | * A representation of the model object 'Named Containing Node'.
15 | *
16 | *
17 | *
18 | * @see com.cisco.yangide.ext.model.ModelPackage#getNamedContainingNode()
19 | * @model interface="true" abstract="true"
20 | * @generated
21 | */
22 | public interface NamedContainingNode extends NamedNode, ContainingNode {
23 | } // NamedContainingNode
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/buffer/NullBuffer.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.buffer;
10 |
11 | import org.eclipse.core.resources.IFile;
12 |
13 | import com.cisco.yangide.core.IOpenable;
14 |
15 | /**
16 | * @author Konstantin Zaitsev
17 | * @date Jun 24, 2014
18 | */
19 | public class NullBuffer extends Buffer {
20 |
21 | /**
22 | * Creates a new null buffer on an underlying resource.
23 | */
24 | public NullBuffer(IFile file, IOpenable owner, boolean readOnly) {
25 | super(file, owner, readOnly);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/dom/RevisionNode.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.dom;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Aug 19, 2014
14 | */
15 | public class RevisionNode extends ASTNamedNode {
16 |
17 | public RevisionNode(ASTNode parent) {
18 | super(parent, null);
19 | }
20 |
21 | @Override
22 | public String getNodeName() {
23 | return "revision";
24 | }
25 |
26 | @Override
27 | public void accept(ASTVisitor visitor) {
28 | visitor.preVisit(this);
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/tests/com.cisco.yangide.editor.test/TestCases/AutoIndenting/SmartPasteTestCase1.test:
--------------------------------------------------------------------------------
1 | --- RCPTT testcase ---
2 | Format-Version: 1.0
3 | Contexts: _CN8X4Av8EeSdascDp4ftXw,_aHkbQAwDEeSdascDp4ftXw
4 | Element-Name: SmartPasteTestCase1
5 | Element-Type: testcase
6 | Element-Version: 3.0
7 | External-Reference:
8 | Id: __1C5kA46EeS2F7KvdfPBCg
9 | Runtime-Version: 1.5.0.201406151150
10 | Save-Time: 7/28/14 12:59 PM
11 | Testcase-Type: ecl
12 | Verifications: _kj7cUA47EeS2F7KvdfPBCg
13 |
14 | ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac
15 | Content-Type: text/ecl
16 | Entry-Name: .content
17 |
18 | with [get-editor "opendaylight-flow-statistics.yang" | get-text-viewer] {
19 | set-caret-pos 16 2
20 | select-range 19 6 15 1
21 | key-type "M1+c"
22 | set-caret-pos 19 6
23 | key-type Enter -times 2
24 | key-type Home
25 | key-type "M1+v"
26 | set-caret-pos 38 8
27 | select-range 39 6 33 1
28 | key-type "M1+c"
29 | set-caret-pos 51 30
30 | key-type Enter
31 | key-type "M1+v"
32 | }
33 | ------=_.content-0a7243a0-75d3-3d5f-9791-539de0e5b7ac--
34 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Bundle-ManifestVersion: 2
3 | Bundle-Name: Editor
4 | Bundle-SymbolicName: com.cisco.yangide.editor;singleton:=true
5 | Bundle-Version: 1.1.1.qualifier
6 | Bundle-ClassPath: .
7 | Bundle-Activator: com.cisco.yangide.editor.YangEditorPlugin
8 | Bundle-Vendor: Cisco
9 | Bundle-Localization: plugin
10 | Require-Bundle: org.eclipse.ui,
11 | org.eclipse.ui.editors,
12 | org.eclipse.core.runtime,
13 | org.eclipse.jface.text,
14 | org.eclipse.jdt.ui,
15 | org.eclipse.ui.forms,
16 | com.cisco.yangide.core;bundle-version="0.1.0",
17 | com.cisco.yangide.ui;bundle-version="0.1.0",
18 | org.eclipse.core.resources,
19 | org.eclipse.ui.ide;bundle-version="3.7.0",
20 | org.eclipse.ui.workbench.texteditor,
21 | org.eclipse.ui.views,
22 | org.eclipse.compare
23 | Bundle-RequiredExecutionEnvironment: JavaSE-1.7
24 | Bundle-ActivationPolicy: lazy
25 | Export-Package: com.cisco.yangide.editor,
26 | com.cisco.yangide.editor.editors,
27 | com.cisco.yangide.editor.preferences
28 | Import-Package: org.eclipse.ui.texteditor.templates
29 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/src/com/cisco/yangide/editor/editors/YangWordDetector.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.editor.editors;
10 |
11 | import org.eclipse.jface.text.rules.IWordDetector;
12 |
13 | /**
14 | * @author Alexey Kholupko
15 | */
16 | public class YangWordDetector implements IWordDetector {
17 |
18 | public boolean isWordPart(char character) {
19 | return Character.isJavaIdentifierPart(character) || character == '-';
20 | }
21 |
22 | public boolean isWordStart(char character) {
23 | return Character.isJavaIdentifierPart(character);
24 | }
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/buffer/ICacheEnumeration.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.buffer;
10 |
11 | import java.util.Enumeration;
12 |
13 | /**
14 | * @author Konstantin Zaitsev
15 | * @date Jun 24, 2014
16 | */
17 | @SuppressWarnings({ "rawtypes" })
18 | public interface ICacheEnumeration extends Enumeration {
19 | /**
20 | * Returns the value of the previously accessed key in the enumeration. Must be called after a
21 | * call to nextElement().
22 | *
23 | * @return Value of current cache entry
24 | */
25 | public Object getValue();
26 | }
27 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/model/YangElementType.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.model;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Jun 30, 2014
14 | */
15 | public enum YangElementType {
16 |
17 | /** YangModel type. */
18 | YANG_MODEL,
19 |
20 | /** YangProject type. */
21 | YANG_PROJECT,
22 |
23 | /** YangFolder type. */
24 | YANG_FOLDER,
25 |
26 | /** Yang File type. */
27 | YANG_FILE,
28 |
29 | /** Yang Jar File type. */
30 | YANG_JAR_FILE,
31 |
32 | /** Yang Jar Entry. */
33 | YANG_JAR_ENTRY;
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
12 | 4.0.0
13 |
14 |
15 | com.cisco.yangide
16 | com.cisco.yangide.parent
17 | 1.1.1-SNAPSHOT
18 | ../..
19 |
20 |
21 | com.cisco.yangide.ext.model
22 | eclipse-plugin
23 |
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/indexing/JobAdapter.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.indexing;
10 |
11 |
12 | /**
13 | * @author Konstantin Zaitsev
14 | * @date Aug 4, 2014
15 | */
16 | public abstract class JobAdapter implements IJob {
17 |
18 | @Override
19 | public boolean belongsTo(String jobFamily) {
20 | return false;
21 | }
22 |
23 | @Override
24 | public void cancel() {
25 | }
26 |
27 | @Override
28 | public void ensureReadyToRun() {
29 | }
30 |
31 | @Override
32 | public String getJobFamily() {
33 | return "yang_generic";
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
12 | 4.0.0
13 |
14 |
15 | com.cisco.yangide
16 | com.cisco.yangide.parent
17 | 1.1.1-SNAPSHOT
18 | ../..
19 |
20 |
21 | com.cisco.yangide.ext.model.editor
22 | eclipse-plugin
23 |
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.refactoring/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
12 | 4.0.0
13 |
14 |
15 | com.cisco.yangide
16 | com.cisco.yangide.parent
17 | 1.1.1-SNAPSHOT
18 | ../..
19 |
20 |
21 | com.cisco.yangide.ext.refactoring
22 | eclipse-plugin
23 |
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/src/com/cisco/yangide/ui/preferences/IYangColorConstants.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ui.preferences;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Jul 14, 2014
14 | */
15 | public interface IYangColorConstants {
16 |
17 | String YANG_STRING = "yang_string";
18 | String YANG_COMMENT = "yang_comment";
19 | String YANG_KEYWORD = "yang_keyword";
20 | String YANG_IDENTIFIER = "yang_identifier";
21 | String YANG_TYPE = "yang_built-in_type";
22 | String YANG_NUMBER = "yang_number";
23 |
24 | String EDITOR_MATCHING_BRACKETS_COLOR = "yang_matching_brackets_color";
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/tests/com.cisco.yangide.editor.test/Contexts/YangIDEworkbenchCleanContext.ctx:
--------------------------------------------------------------------------------
1 | --- RCPTT testcase ---
2 | Format-Version: 1.0
3 | Context-Type: org.eclipse.rcptt.ctx.workbench
4 | Element-Name: YangIDEworkbenchCleanContext
5 | Element-Type: context
6 | Element-Version: 2.0
7 | Id: _WP1mMBPOEeSaxLxF-fnitg
8 | Runtime-Version: 1.5.0.201406151150
9 | Save-Time: 7/25/14 2:36 PM
10 |
11 | ------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf
12 | Content-Type: q7/binary
13 | Entry-Name: .q7.content
14 |
15 | UEsDBBQACAgIAAAAIQAAAAAAAAAAAAAAAAAIAAAALmNvbnRlbnSVkU1LAzEQhu+C/yHk3sR6kmW3BXWF
16 | lZYuCFZPku5O09hkErLZj59vWm3rwSK9Tp5n5p1JOh2MJh34RlnM6JjdUAJY2VqhzGgb1qM7Op1cX6XW
17 | SwaVVq4B5isXAmsqQOGVTZbWb1dR2jxYDDAEMhiVHFve7lrGIdgksZ7RTQgu4bzve2aNZLEvf5sXB+T8
18 | mKN5eN6Ze4QbW4PmBzD61gMlKAxk9F2gLB7z/phRg8CfoJSoOqMfy3Js5vflIocXMcyGp9EaVZCUuLiC
19 | gyqoDorI/Y72WQfWKvYsOlGeKBoPRUjaKeibyR94KaqtkJAPTseEPuXf5BnJ1fEELQZlgM2sfI3AP0Yc
20 | sS+y0tuVBnOJsj8JhkUbtEI4WSm/4Ocj/wVQSwcINx3awyABAABRAgAAUEsBAhQAFAAICAgAAAAhADcd
21 | 2sMgAQAAUQIAAAgAAAAAAAAAAAAAAAAAAAAAAC5jb250ZW50UEsFBgAAAAABAAEANgAAAFYBAAAAAA==
22 |
23 | ------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf--
24 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ui/src/com/cisco/yangide/ui/nls/Messages.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ui.nls;
10 |
11 | import org.eclipse.osgi.util.NLS;
12 |
13 | /**
14 | * @author Konstantin Zaitsev
15 | * @date Jul 3, 2014
16 | */
17 | public class Messages extends NLS {
18 | private static final String BUNDLE_NAME = "com.cisco.yangide.ui.nls.messages"; //$NON-NLS-1$
19 | public static String pref_Base_cleanCodeGen;
20 | public static String pref_Base_enableTracing;
21 | static {
22 | // initialize resource bundle
23 | NLS.initializeMessages(BUNDLE_NAME, Messages.class);
24 | }
25 |
26 | private Messages() {
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/RpcValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.Rpc}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface RpcValidator {
23 | boolean validate();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.editor/src/com/cisco/yangide/editor/compare/YangFileMergeViewerCreator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.editor.compare;
10 |
11 | import org.eclipse.compare.CompareConfiguration;
12 | import org.eclipse.compare.IViewerCreator;
13 | import org.eclipse.jface.viewers.Viewer;
14 | import org.eclipse.swt.widgets.Composite;
15 |
16 | /**
17 | * @author Konstantin Zaitsev
18 | * @date Jul 31, 2014
19 | */
20 | public class YangFileMergeViewerCreator implements IViewerCreator {
21 |
22 | @Override
23 | public Viewer createViewer(Composite parent, CompareConfiguration config) {
24 | return new YangFileMergeViewer(parent, config);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/LeafValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.Leaf}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface LeafValidator {
23 | boolean validate();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/ListValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.List}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface ListValidator {
23 | boolean validate();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/AnyxmlValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.Anyxml}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface AnyxmlValidator {
23 | boolean validate();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/ChoiceValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.Choice}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface ChoiceValidator {
23 | boolean validate();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/src/com/cisco/yangide/ext/model/editor/sync/TypedefPropertyUpdater.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model.editor.sync;
10 |
11 | import com.cisco.yangide.core.dom.ContrainerSchemaNode;
12 |
13 | /**
14 | * @author Konstantin Zaitsev
15 | * @date Aug 28, 2014
16 | */
17 | public class TypedefPropertyUpdater extends SourceNodePropertyUpdater {
18 |
19 | public TypedefPropertyUpdater(DiagramModelAdapter adapter) {
20 | super(adapter);
21 | }
22 |
23 | @Override
24 | protected boolean isHandleProperty(String name) {
25 | return "default".equals(name) || "units".equals(name);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/AugmentValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.Augment}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface AugmentValidator {
23 | boolean validate();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/FeatureValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.Feature}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface FeatureValidator {
23 | boolean validate();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/GroupingValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.Grouping}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface GroupingValidator {
23 | boolean validate();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/IdentityValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.Identity}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface IdentityValidator {
23 | boolean validate();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/LeafListValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.LeafList}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface LeafListValidator {
23 | boolean validate();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/ListKeyValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.ListKey}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface ListKeyValidator {
23 | boolean validate();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/RevisionValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.Revision}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface RevisionValidator {
23 | boolean validate();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/TypedefValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.Typedef}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface TypedefValidator {
23 | boolean validate();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/TyperefValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.Typeref}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface TyperefValidator {
23 | boolean validate();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/ChoiceCaseValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.ChoiceCase}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface ChoiceCaseValidator {
23 | boolean validate();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/ContainerValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.Container}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface ContainerValidator {
23 | boolean validate();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/DeviationValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.Deviation}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface DeviationValidator {
23 | boolean validate();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/ExtensionValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.Extension}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface ExtensionValidator {
23 | boolean validate();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/src/com/cisco/yangide/ext/model/editor/sync/ContainerPropertyUpdater.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model.editor.sync;
10 |
11 | import com.cisco.yangide.core.dom.ContrainerSchemaNode;
12 |
13 | /**
14 | * @author Konstantin Zaitsev
15 | * @date Aug 28, 2014
16 | */
17 | public class ContainerPropertyUpdater extends SourceNodePropertyUpdater {
18 |
19 | public ContainerPropertyUpdater(DiagramModelAdapter adapter) {
20 | super(adapter);
21 | }
22 |
23 | @Override
24 | protected boolean isHandleProperty(String name) {
25 | return "config".equals(name) || "presence".equals(name);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/NotificationValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.Notification}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface NotificationValidator {
23 | boolean validate();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/model/YangFileInfo.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.model;
10 |
11 | import com.cisco.yangide.core.OpenableElementInfo;
12 | import com.cisco.yangide.core.dom.Module;
13 |
14 | /**
15 | * @author Konstantin Zaitsev
16 | * @date Jun 26, 2014
17 | */
18 | public class YangFileInfo extends OpenableElementInfo {
19 | private Module module;
20 |
21 | /**
22 | * @return the module
23 | */
24 | public Module getModule() {
25 | return module;
26 | }
27 |
28 | /**
29 | * @param module the module to set
30 | */
31 | public void setModule(Module module) {
32 | this.module = module;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/IYangElementChangedListener.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core;
10 |
11 | /**
12 | * An element changed listener receives notification of changes to Yang elements maintained by the
13 | * Yang model.
14 | *
15 | * @author Konstantin Zaitsev
16 | * @date Jun 30, 2014
17 | */
18 | public interface IYangElementChangedListener {
19 |
20 | /**
21 | * Notifies that one or more attributes of one or more Yang elements have changed. The specific
22 | * details of the change are described by the given event.
23 | *
24 | * @param event the change event
25 | */
26 | public void elementChanged(ElementChangedEvent event);
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/dom/ASTCompositeNode.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.dom;
10 |
11 | import java.util.ArrayList;
12 | import java.util.List;
13 |
14 | /**
15 | * @author Konstantin Zaitsev
16 | * @date Jul 8, 2014
17 | */
18 | public abstract class ASTCompositeNode extends ASTNamedNode {
19 | private List children;
20 |
21 | /**
22 | * @param parent
23 | */
24 | public ASTCompositeNode(ASTNode parent) {
25 | super(parent);
26 | children = new ArrayList<>();
27 | }
28 |
29 | /**
30 | * @return the children
31 | */
32 | public List getChildren() {
33 | return children;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/NamedContainingNodeValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.NamedContainingNode}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface NamedContainingNodeValidator {
23 | boolean validate();
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/UsesValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.Uses}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface UsesValidator {
23 | boolean validate();
24 |
25 | boolean validateQName(String value);
26 | }
27 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.refactoring/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Bundle-ManifestVersion: 2
3 | Bundle-Name: com.cisco.yangide.ext.refactoring
4 | Bundle-SymbolicName: com.cisco.yangide.ext.refactoring;singleton:=true
5 | Bundle-Version: 1.1.1.qualifier
6 | Bundle-Activator: com.cisco.yangide.ext.refactoring.YangRefactoringPlugin
7 | Bundle-Vendor: Cisco Systems, Inc.
8 | Bundle-Localization: plugin
9 | Require-Bundle: org.eclipse.core.runtime,
10 | org.eclipse.jdt.core;visibility:=reexport,
11 | org.eclipse.text,
12 | org.eclipse.core.resources,
13 | org.eclipse.core.filesystem,
14 | com.cisco.yangide.editor,
15 | org.eclipse.ui.workbench,
16 | org.eclipse.jface,
17 | com.cisco.yangide.core,
18 | org.eclipse.jface.text,
19 | org.eclipse.ui.editors,
20 | org.eclipse.ltk.core.refactoring,
21 | org.eclipse.ltk.ui.refactoring,
22 | org.eclipse.ui.ide,
23 | org.eclipse.swt,
24 | com.cisco.yangide.ui,
25 | org.eclipse.ui.workbench.texteditor
26 | Bundle-RequiredExecutionEnvironment: JavaSE-1.7
27 | Bundle-ActivationPolicy: lazy
28 | Bundle-ClassPath: .
29 | Export-Package: com.cisco.yangide.ext.refactoring,
30 | com.cisco.yangide.ext.refactoring.code,
31 | com.cisco.yangide.ext.refactoring.ui
32 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/dom/SimpleNamedNode.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.dom;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Aug 20, 2014
14 | */
15 | public class SimpleNamedNode extends ASTNamedNode {
16 |
17 | private String nodeName;
18 |
19 | /**
20 | * @param parent
21 | */
22 | public SimpleNamedNode(ASTNode parent, String nodeName) {
23 | super(parent, null);
24 | this.nodeName = nodeName;
25 | }
26 |
27 | @Override
28 | public String getNodeName() {
29 | return nodeName;
30 | }
31 |
32 | @Override
33 | public void accept(ASTVisitor visitor) {
34 | visitor.visit(this);
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/RpcIOValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.RpcIO}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface RpcIOValidator {
23 | boolean validate();
24 |
25 | boolean validateInput(boolean value);
26 | }
27 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/dom/ChoiceNode.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.dom;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Aug 20, 2014
14 | */
15 | public class ChoiceNode extends ASTCompositeNode {
16 |
17 | public ChoiceNode(ASTNode parent) {
18 | super(parent);
19 | }
20 |
21 | @Override
22 | public String getNodeName() {
23 | return "choice";
24 | }
25 |
26 | @Override
27 | public void accept(ASTVisitor visitor) {
28 | visitor.preVisit(this);
29 | boolean visitChildren = visitor.visit(this);
30 | if (visitChildren) {
31 | acceptChildren(visitor, getChildren());
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/dom/Deviation.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.dom;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Jul 23, 2014
14 | */
15 | public class Deviation extends ASTCompositeNode {
16 |
17 | public Deviation(ASTNode parent) {
18 | super(parent);
19 | }
20 |
21 | @Override
22 | public String getNodeName() {
23 | return "deviation";
24 | }
25 |
26 | @Override
27 | public void accept(ASTVisitor visitor) {
28 | visitor.preVisit(this);
29 | boolean visitChildren = visitor.visit(this);
30 | if (visitChildren) {
31 | acceptChildren(visitor, getChildren());
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/src/com/cisco/yangide/ext/model/editor/YangMutiPageEditorActionContributor.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model.editor;
10 |
11 | import org.eclipse.ui.IEditorPart;
12 |
13 | import com.cisco.yangide.editor.editors.YangEditorActionContributor;
14 |
15 | /**
16 | * @author Konstantin Zaitsev
17 | * @date Aug 27, 2014
18 | */
19 | public class YangMutiPageEditorActionContributor extends YangEditorActionContributor {
20 | @Override
21 | public void setActiveEditor(IEditorPart part) {
22 | if (part instanceof YangMultiPageEditorPart) {
23 | super.setActiveEditor((IEditorPart) ((YangMultiPageEditorPart) part).getSelectedPage());
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/src/com/cisco/yangide/ext/model/editor/sync/LeafPropertyUpdater.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model.editor.sync;
10 |
11 | import com.cisco.yangide.core.dom.ContrainerSchemaNode;
12 |
13 | /**
14 | * @author Konstantin Zaitsev
15 | * @date Aug 28, 2014
16 | */
17 | public class LeafPropertyUpdater extends SourceNodePropertyUpdater {
18 |
19 | public LeafPropertyUpdater(DiagramModelAdapter adapter) {
20 | super(adapter);
21 | }
22 |
23 | @Override
24 | protected boolean isHandleProperty(String name) {
25 | return "config".equals(name) || "default".equals(name) || "mandatory".equals(name) || "units".equals(name);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/dom/RpcDefinition.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.dom;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Jul 23, 2014
14 | */
15 | public class RpcDefinition extends ASTCompositeNode {
16 |
17 | public RpcDefinition(ASTNode parent) {
18 | super(parent);
19 | }
20 |
21 | @Override
22 | public String getNodeName() {
23 | return "rpc";
24 | }
25 |
26 | @Override
27 | public void accept(ASTVisitor visitor) {
28 | visitor.preVisit(this);
29 | boolean visitChildren = visitor.visit(this);
30 | if (visitChildren) {
31 | acceptChildren(visitor, getChildren());
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/src/com/cisco/yangide/ext/model/editor/sync/ChoicePropertyUpdater.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model.editor.sync;
10 |
11 | import com.cisco.yangide.core.dom.ContrainerSchemaNode;
12 |
13 | /**
14 | * @author Konstantin Zaitsev
15 | * @date Aug 28, 2014
16 | */
17 | public class ChoicePropertyUpdater extends SourceNodePropertyUpdater {
18 |
19 | public ChoicePropertyUpdater(DiagramModelAdapter adapter) {
20 | super(adapter);
21 | }
22 |
23 | @Override
24 | protected boolean isHandleProperty(String name) {
25 | return "config".equals(name) || "default".equals(name) || "mandatory".equals(name) || "status".equals(name);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/NamedNodeValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.NamedNode}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface NamedNodeValidator {
23 | boolean validate();
24 |
25 | boolean validateName(String value);
26 | }
27 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/dom/ChoiceCaseNode.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.dom;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Aug 20, 2014
14 | */
15 | public class ChoiceCaseNode extends ASTCompositeNode {
16 |
17 | public ChoiceCaseNode(ASTNode parent) {
18 | super(parent);
19 | }
20 |
21 | @Override
22 | public String getNodeName() {
23 | return "case";
24 | }
25 |
26 | @Override
27 | public void accept(ASTVisitor visitor) {
28 | visitor.preVisit(this);
29 | boolean visitChildren = visitor.visit(this);
30 | if (visitChildren) {
31 | acceptChildren(visitor, getChildren());
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/dom/LeafSchemaNode.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.dom;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Jul 4, 2014
14 | */
15 | public class LeafSchemaNode extends ASTCompositeNode {
16 |
17 | public LeafSchemaNode(ASTNode parent) {
18 | super(parent);
19 | }
20 |
21 | @Override
22 | public String getNodeName() {
23 | return "leaf";
24 | }
25 |
26 | @Override
27 | public void accept(ASTVisitor visitor) {
28 | visitor.preVisit(this);
29 | boolean visitChildren = visitor.visit(this);
30 | if (visitChildren) {
31 | acceptChildren(visitor, getChildren());
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/dom/TypeDefinition.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.dom;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Jul 2, 2014
14 | */
15 | public class TypeDefinition extends ASTCompositeNode {
16 |
17 | public TypeDefinition(ASTNode parent) {
18 | super(parent);
19 | }
20 |
21 | @Override
22 | public String getNodeName() {
23 | return "typedef";
24 | }
25 |
26 | @Override
27 | public void accept(ASTVisitor visitor) {
28 | visitor.preVisit(this);
29 | boolean visitChildren = visitor.visit(this);
30 | if (visitChildren) {
31 | acceptChildren(visitor, getChildren());
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.refactoring/src/com/cisco/yangide/ext/refactoring/ui/ChangeRevisionRefactoringWizard.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.refactoring.ui;
10 |
11 | import org.eclipse.ltk.core.refactoring.Refactoring;
12 | import org.eclipse.ltk.ui.refactoring.RefactoringWizard;
13 |
14 | /**
15 | * @author Konstantin Zaitsev
16 | * @date Aug 18, 2014
17 | */
18 | public class ChangeRevisionRefactoringWizard extends RefactoringWizard {
19 |
20 | public ChangeRevisionRefactoringWizard(Refactoring refactoring) {
21 | super(refactoring, DIALOG_BASED_USER_INTERFACE);
22 | }
23 |
24 | @Override
25 | protected void addUserInputPages() {
26 | addPage(new ChangeRevisionInputWizardPage());
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/dom/AnyXmlSchemaNode.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.dom;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Aug 20, 2014
14 | */
15 | public class AnyXmlSchemaNode extends ASTCompositeNode {
16 |
17 | public AnyXmlSchemaNode(ASTNode parent) {
18 | super(parent);
19 | }
20 |
21 | @Override
22 | public String getNodeName() {
23 | return "anyxml";
24 | }
25 |
26 | @Override
27 | public void accept(ASTVisitor visitor) {
28 | visitor.preVisit(this);
29 | boolean visitChildren = visitor.visit(this);
30 | if (visitChildren) {
31 | acceptChildren(visitor, getChildren());
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.refactoring/src/com/cisco/yangide/ext/refactoring/ui/ExtractGroupingRefactoringWizard.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.refactoring.ui;
10 |
11 | import org.eclipse.ltk.core.refactoring.Refactoring;
12 | import org.eclipse.ltk.ui.refactoring.RefactoringWizard;
13 |
14 | /**
15 | * @author Konstantin Zaitsev
16 | * @date Aug 19, 2014
17 | */
18 | public class ExtractGroupingRefactoringWizard extends RefactoringWizard {
19 |
20 | public ExtractGroupingRefactoringWizard(Refactoring refactoring) {
21 | super(refactoring, DIALOG_BASED_USER_INTERFACE);
22 | }
23 |
24 | @Override
25 | protected void addUserInputPages() {
26 | addPage(new ExtractGroupingInputWizardPage());
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/dom/FeatureDefinition.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.dom;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Jul 23, 2014
14 | */
15 | public class FeatureDefinition extends ASTCompositeNode {
16 |
17 | public FeatureDefinition(ASTNode parent) {
18 | super(parent);
19 | }
20 |
21 | @Override
22 | public String getNodeName() {
23 | return "feature";
24 | }
25 |
26 | @Override
27 | public void accept(ASTVisitor visitor) {
28 | visitor.preVisit(this);
29 | boolean visitChildren = visitor.visit(this);
30 | if (visitChildren) {
31 | acceptChildren(visitor, getChildren());
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/ReferenceNodeValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.ReferenceNode}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface ReferenceNodeValidator {
23 | boolean validate();
24 |
25 | boolean validateReference(String value);
26 | }
27 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/dom/AugmentationSchema.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.dom;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Jul 23, 2014
14 | */
15 | public class AugmentationSchema extends ASTCompositeNode {
16 |
17 | public AugmentationSchema(ASTNode parent) {
18 | super(parent);
19 | }
20 |
21 | @Override
22 | public String getNodeName() {
23 | return "augment";
24 | }
25 |
26 | @Override
27 | public void accept(ASTVisitor visitor) {
28 | visitor.preVisit(this);
29 | boolean visitChildren = visitor.visit(this);
30 | if (visitChildren) {
31 | acceptChildren(visitor, getChildren());
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/dom/GroupingDefinition.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.dom;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Jul 4, 2014
14 | */
15 | public class GroupingDefinition extends ASTCompositeNode {
16 |
17 | public GroupingDefinition(ASTNode parent) {
18 | super(parent);
19 | }
20 |
21 | @Override
22 | public String getNodeName() {
23 | return "grouping";
24 | }
25 |
26 | @Override
27 | public void accept(ASTVisitor visitor) {
28 | visitor.preVisit(this);
29 | boolean visitChildren = visitor.visit(this);
30 | if (visitChildren) {
31 | acceptChildren(visitor, getChildren());
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/dom/LeafListSchemaNode.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.dom;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Aug 20, 2014
14 | */
15 | public class LeafListSchemaNode extends ASTCompositeNode {
16 |
17 | public LeafListSchemaNode(ASTNode parent) {
18 | super(parent);
19 | }
20 |
21 | @Override
22 | public String getNodeName() {
23 | return "leaf-list";
24 | }
25 |
26 | @Override
27 | public void accept(ASTVisitor visitor) {
28 | visitor.preVisit(this);
29 | boolean visitChildren = visitor.visit(this);
30 | if (visitChildren) {
31 | acceptChildren(visitor, getChildren());
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/tests/com.cisco.yangide.ext.refactoring.test/Contexts/DefaultWorkbench.ctx:
--------------------------------------------------------------------------------
1 | --- RCPTT testcase ---
2 | Format-Version: 1.0
3 | Context-Type: org.eclipse.rcptt.ctx.workbench
4 | Element-Name: DefaultWorkbench
5 | Element-Type: context
6 | Element-Version: 2.0
7 | Id: _OQXHUDJQEeSzJ-2otsp1aw
8 | Runtime-Version: 1.5.0.201406151150
9 | Save-Time: 9/2/14 10:23 AM
10 |
11 | ------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf
12 | Content-Type: q7/binary
13 | Entry-Name: .q7.content
14 |
15 | UEsDBBQACAgIAAAAIQAAAAAAAAAAAAAAAAAIAAAALmNvbnRlbnSVkk9vGjEQxe+R+h1WvmMDvVSrXXIo
16 | VAWlChFKmlvkeCeLG/+TPcuSfPoMm7KESrT06PHvvTczmuJya022gZi0dyUb8SHLwClfaVeXrMGnwRd2
17 | Ofl0UfhYc1BGhwQ8qoDIkwIno/b5Tx+fH0m0/uodwhazrdV5bzneWVKISznVS7ZGDLkQbdtyb2tOvuL+
18 | x7xH0jHSfu6I8XA4IuxqpdZg5UC7hNIp2KtON9eb7b93bh0irK/AiD1Ieh/J0EkLJZvCk2wM9pOxTFcl
19 | e7i+uf9+O13czGD1uhiMPaYwki3LAg0bQKHewJy4j+38qpA3mi/kRi4PFKOVZlkBlUYfU0ZT5/gS4Fj6
20 | x5q/aQOzTkCBEtclowkaAyORohJWaidepKvF7yrfPZh4D9poaNPkRF+VV3f0X4h36u+ClW+igvP5pVTP
21 | sobZNhjab/yHiARdkS+jfzRgz8gJFW2qcagt8Ctfn6HoQ7p7dXjdoNEODqpC/Me1E/8GUEsHCLPJ0N51
22 | AQAARQMAAFBLAQIUABQACAgIAAAAIQCzydDedQEAAEUDAAAIAAAAAAAAAAAAAAAAAAAAAAAuY29udGVu
23 | dFBLBQYAAAAAAQABADYAAACrAQAAAAA=
24 | ------=_.q7.content-3d2e0690-ce48-3609-83e0-c704d49f1eaf--
25 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/dom/ContrainerSchemaNode.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.dom;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Jul 4, 2014
14 | */
15 | public class ContrainerSchemaNode extends ASTCompositeNode {
16 |
17 | public ContrainerSchemaNode(ASTNode parent) {
18 | super(parent);
19 | }
20 |
21 | @Override
22 | public String getNodeName() {
23 | return "container";
24 | }
25 |
26 | @Override
27 | public void accept(ASTVisitor visitor) {
28 | visitor.preVisit(this);
29 | boolean visitChildren = visitor.visit(this);
30 | if (visitChildren) {
31 | acceptChildren(visitor, getChildren());
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/dom/ExtensionDefinition.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.dom;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Jul 23, 2014
14 | */
15 | public class ExtensionDefinition extends ASTCompositeNode {
16 |
17 | public ExtensionDefinition(ASTNode parent) {
18 | super(parent);
19 | }
20 |
21 | @Override
22 | public String getNodeName() {
23 | return "extension";
24 | }
25 |
26 | @Override
27 | public void accept(ASTVisitor visitor) {
28 | visitor.preVisit(this);
29 | boolean visitChildren = visitor.visit(this);
30 | if (visitChildren) {
31 | acceptChildren(visitor, getChildren());
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/TagValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 |
16 | /**
17 | * A sample validator interface for {@link com.cisco.yangide.ext.model.Tag}.
18 | * This doesn't really do anything, and it's not a real EMF artifact.
19 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
20 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
21 | */
22 | public interface TagValidator {
23 | boolean validate();
24 |
25 | boolean validateName(String value);
26 | boolean validateValue(Object value);
27 | }
28 |
--------------------------------------------------------------------------------
/tests/com.cisco.yangide.ext.refactoring.test/TestCases/AllTests.suite:
--------------------------------------------------------------------------------
1 | --- RCPTT testcase ---
2 | Format-Version: 1.0
3 | Element-Name: AllTests
4 | Element-Type: testsuite
5 | Element-Version: 2.0
6 | Id: _M6mk0DHNEeSMKNSnFXk2YA
7 | Runtime-Version: 1.5.0.201406151150
8 | Save-Time: 9/3/14 12:51 PM
9 |
10 | ------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8
11 | Content-Type: text/testcase
12 | Entry-Name: testcase-items
13 |
14 | _5BvP0DKDEeSzJ-2otsp1aw // kind: 'test' name: 'ExtractGrouping' path: 'ExtractGrouping/ExtractGrouping.test'
15 | _VFRu4DKLEeSzJ-2otsp1aw // kind: 'test' name: 'InlineGroupingIndirect' path: 'InlineGrouping/InlineGroupingIndirect.test'
16 | _4-KvsDKJEeSzJ-2otsp1aw // kind: 'test' name: 'InlineGroupingDirect' path: 'InlineGrouping/InlineGroupingDirect.test'
17 | _MDlZEDHUEeSMKNSnFXk2YA // kind: 'test' name: 'RenameType' path: 'Rename/RenameType.test'
18 | _7S3O0DKMEeSzJ-2otsp1aw // kind: 'test' name: 'RenameGrouping' path: 'Rename/RenameGrouping.test'
19 | _IWCmsDKMEeSzJ-2otsp1aw // kind: 'test' name: 'RenameModule' path: 'Rename/RenameModule.test'
20 | _YnEIsDKNEeSzJ-2otsp1aw // kind: 'test' name: 'ChangeRevision' path: 'ChangeRevision/ChangeRevision.test'
21 |
22 | ------=_testcase-items-62c497da-4241-31f4-811a-6b453a3ecff8--
23 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/NodeValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 | import com.cisco.yangide.ext.model.Node;
16 |
17 | /**
18 | * A sample validator interface for {@link com.cisco.yangide.ext.model.Node}.
19 | * This doesn't really do anything, and it's not a real EMF artifact.
20 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
21 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
22 | */
23 | public interface NodeValidator {
24 | boolean validate();
25 |
26 | boolean validateParent(Node value);
27 | }
28 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/dom/NotificationDefinition.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.dom;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Jul 23, 2014
14 | */
15 | public class NotificationDefinition extends ASTCompositeNode {
16 |
17 | public NotificationDefinition(ASTNode parent) {
18 | super(parent);
19 | }
20 |
21 | @Override
22 | public String getNodeName() {
23 | return "notification";
24 | }
25 |
26 | @Override
27 | public void accept(ASTVisitor visitor) {
28 | visitor.preVisit(this);
29 | boolean visitChildren = visitor.visit(this);
30 | if (visitChildren) {
31 | acceptChildren(visitor, getChildren());
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/dom/RpcInputNode.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.dom;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Jul 23, 2014
14 | */
15 | public class RpcInputNode extends ASTCompositeNode {
16 |
17 | /**
18 | * @param parent
19 | */
20 | public RpcInputNode(ASTNode parent) {
21 | super(parent);
22 | }
23 |
24 | @Override
25 | public String getNodeName() {
26 | return "input";
27 | }
28 |
29 | @Override
30 | public void accept(ASTVisitor visitor) {
31 | visitor.preVisit(this);
32 | boolean visitChildren = visitor.visit(this);
33 | if (visitChildren) {
34 | acceptChildren(visitor, getChildren());
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/IncludeValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 | import com.cisco.yangide.ext.model.Submodule;
16 |
17 | /**
18 | * A sample validator interface for {@link com.cisco.yangide.ext.model.Include}.
19 | * This doesn't really do anything, and it's not a real EMF artifact.
20 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
21 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
22 | */
23 | public interface IncludeValidator {
24 | boolean validate();
25 |
26 | boolean validateSubmodule(Submodule value);
27 | }
28 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model/src/com/cisco/yangide/ext/model/validation/TypedNodeValidator.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | /**
10 | *
11 | * $Id$
12 | */
13 | package com.cisco.yangide.ext.model.validation;
14 |
15 | import com.cisco.yangide.ext.model.Typeref;
16 |
17 | /**
18 | * A sample validator interface for {@link com.cisco.yangide.ext.model.TypedNode}.
19 | * This doesn't really do anything, and it's not a real EMF artifact.
20 | * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
21 | * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
22 | */
23 | public interface TypedNodeValidator {
24 | boolean validate();
25 |
26 | boolean validateType(Typeref value);
27 | }
28 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.core/src/com/cisco/yangide/core/dom/RpcOutputNode.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.core.dom;
10 |
11 | /**
12 | * @author Konstantin Zaitsev
13 | * @date Jul 23, 2014
14 | */
15 | public class RpcOutputNode extends ASTCompositeNode {
16 |
17 | /**
18 | * @param parent
19 | */
20 | public RpcOutputNode(ASTNode parent) {
21 | super(parent);
22 | }
23 |
24 | @Override
25 | public String getNodeName() {
26 | return "output";
27 | }
28 |
29 | @Override
30 | public void accept(ASTVisitor visitor) {
31 | visitor.preVisit(this);
32 | boolean visitChildren = visitor.visit(this);
33 | if (visitChildren) {
34 | acceptChildren(visitor, getChildren());
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/plugins/com.cisco.yangide.ext.model.editor/src/com/cisco/yangide/ext/model/editor/sync/ListPropertyUpdater.java:
--------------------------------------------------------------------------------
1 | /*******************************************************************************
2 | * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
3 | *
4 | * This program and the accompanying materials are made available under the
5 | * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 | * and is available at http://www.eclipse.org/legal/epl-v10.html
7 | *
8 | *******************************************************************************/
9 | package com.cisco.yangide.ext.model.editor.sync;
10 |
11 | import com.cisco.yangide.core.dom.ContrainerSchemaNode;
12 |
13 | /**
14 | * @author Konstantin Zaitsev
15 | * @date Aug 28, 2014
16 | */
17 | public class ListPropertyUpdater extends SourceNodePropertyUpdater {
18 |
19 | public ListPropertyUpdater(DiagramModelAdapter adapter) {
20 | super(adapter);
21 | }
22 |
23 | @Override
24 | protected boolean isHandleProperty(String name) {
25 | return "config".equals(name) || "max-elements".equals(name) || "min-elements".equals(name)
26 | || "ordered-by".equals(name) || "units".equals(name);
27 | }
28 | }
29 |
--------------------------------------------------------------------------------