├── UMLFileTypes ├── src │ └── org │ │ └── uml │ │ └── filetype │ │ ├── cdg │ │ ├── ClassDiagramTemplate.cdg │ │ ├── wizard │ │ │ ├── Bundle.properties │ │ │ └── newClassDiagram.html │ │ ├── classDiagramIcon.png │ │ ├── package-info.java │ │ └── renaming │ │ │ └── MyClassDiagramRenameTable.java │ │ └── Bundle.properties ├── nbproject │ ├── suite.properties │ ├── project.properties │ ├── genfiles.properties │ └── platform.properties ├── release │ └── modules │ │ └── ext │ │ └── dom4j-1.6.1.jar ├── manifest.mf └── build.xml ├── dom4j ├── nbproject │ ├── suite.properties │ ├── project.properties │ ├── genfiles.properties │ ├── platform.properties │ └── project.xml ├── release │ └── modules │ │ └── ext │ │ └── dom4j-1.6.1.jar ├── manifest.mf ├── src │ └── org │ │ └── uml │ │ └── dom4j │ │ └── Bundle.properties └── build.xml ├── easyUML ├── nbproject │ ├── suite.properties │ ├── project.properties │ └── platform.properties ├── manifest.mf ├── src │ └── easyuml │ │ └── Bundle.properties └── build.xml ├── JavaParser ├── nbproject │ ├── suite.properties │ ├── project.properties │ ├── genfiles.properties │ └── project.xml ├── release │ └── modules │ │ └── ext │ │ └── javaparser-1.0.12-SNAPSHOT.jar ├── manifest.mf ├── src │ └── com │ │ └── github │ │ └── javaparser │ │ ├── ast │ │ ├── NamedNode.java │ │ ├── internal │ │ │ └── Utils.java │ │ ├── DocumentableNode.java │ │ ├── TreeVisitor.java │ │ ├── expr │ │ │ ├── LiteralExpr.java │ │ │ ├── Expression.java │ │ │ ├── AnnotationExpr.java │ │ │ ├── NullLiteralExpr.java │ │ │ ├── LongLiteralMinValueExpr.java │ │ │ ├── IntegerLiteralMinValueExpr.java │ │ │ ├── CharLiteralExpr.java │ │ │ ├── DoubleLiteralExpr.java │ │ │ └── MarkerAnnotationExpr.java │ │ ├── body │ │ │ └── AnnotableNode.java │ │ ├── stmt │ │ │ ├── Statement.java │ │ │ ├── EmptyStmt.java │ │ │ ├── BreakStmt.java │ │ │ └── ContinueStmt.java │ │ ├── AccessSpecifier.java │ │ ├── type │ │ │ ├── VoidType.java │ │ │ └── UnknownType.java │ │ └── comments │ │ │ ├── JavadocComment.java │ │ │ └── BlockComment.java │ │ ├── Bundle.properties │ │ └── Position.java └── build.xml ├── UMLExplorer ├── nbproject │ ├── suite.properties │ ├── project.properties │ ├── genfiles.properties │ └── platform.properties ├── src │ └── org │ │ └── uml │ │ └── explorer │ │ ├── icons │ │ ├── class.png │ │ ├── enum.png │ │ ├── interface.png │ │ ├── classDiagram.png │ │ ├── other │ │ │ ├── literal.png │ │ │ ├── override.gif │ │ │ ├── package.gif │ │ │ ├── override-glyph.gif │ │ │ └── package-empty.gif │ │ ├── fields │ │ │ ├── fieldPackage.png │ │ │ ├── fieldPrivate.png │ │ │ ├── fieldPublic.png │ │ │ ├── fieldProtected.png │ │ │ ├── fieldStaticPackage.png │ │ │ ├── fieldStaticPrivate.png │ │ │ ├── fieldStaticPublic.png │ │ │ └── fieldStaticProtected.png │ │ ├── methods │ │ │ ├── methodPublic.png │ │ │ ├── methodPackage.png │ │ │ ├── methodPrivate.png │ │ │ ├── methodProtected.png │ │ │ ├── methodStaticPackage.png │ │ │ ├── methodStaticPrivate.png │ │ │ ├── methodStaticPublic.png │ │ │ └── methodStaticProtected.png │ │ ├── classDiagramComponentIcon.png │ │ └── constructors │ │ │ ├── constructorPublic.png │ │ │ ├── constructorPackage.png │ │ │ ├── constructorPrivate.png │ │ │ └── constructorProtected.png │ │ ├── Bundle.properties │ │ ├── ExplorerTopComponent.form │ │ ├── ComponentChildFactory.java │ │ └── ClassDiagramChildFactory.java ├── manifest.mf └── build.xml ├── UMLModel ├── nbproject │ ├── suite.properties │ ├── project.properties │ ├── genfiles.properties │ └── project.xml ├── Dijagrami │ └── Model.png ├── manifest.mf ├── src │ └── org │ │ └── uml │ │ └── model │ │ ├── relations │ │ ├── HasRelation.java │ │ ├── CompositionRelation.java │ │ ├── AggregationRelation.java │ │ ├── RelationUtilities.java │ │ └── IsRelation.java │ │ ├── Bundle.properties │ │ ├── IHasSignature.java │ │ ├── notes │ │ ├── INameable.java │ │ ├── members │ │ ├── MethodArgument.java │ │ ├── Literal.java │ │ └── Constructor.java │ │ └── Visibility.java └── build.xml ├── UMLVisual ├── nbproject │ ├── suite.properties │ ├── project.properties │ ├── genfiles.properties │ └── platform.properties ├── src │ └── org │ │ └── uml │ │ ├── jung │ │ └── Bundle.properties │ │ ├── visual │ │ ├── widgets │ │ │ ├── Bundle.properties │ │ │ ├── icons │ │ │ │ ├── 16 │ │ │ │ │ ├── class.png │ │ │ │ │ ├── enum.png │ │ │ │ │ ├── interface.png │ │ │ │ │ ├── classDiagram.png │ │ │ │ │ ├── other │ │ │ │ │ │ ├── literal.png │ │ │ │ │ │ ├── package.gif │ │ │ │ │ │ ├── override.gif │ │ │ │ │ │ ├── override-glyph.gif │ │ │ │ │ │ └── package-empty.gif │ │ │ │ │ ├── fields │ │ │ │ │ │ ├── fieldPublic.png │ │ │ │ │ │ ├── fieldPackage.png │ │ │ │ │ │ ├── fieldPrivate.png │ │ │ │ │ │ ├── fieldProtected.png │ │ │ │ │ │ ├── fieldStaticPackage.png │ │ │ │ │ │ ├── fieldStaticPrivate.png │ │ │ │ │ │ ├── fieldStaticPublic.png │ │ │ │ │ │ └── fieldStaticProtected.png │ │ │ │ │ ├── methods │ │ │ │ │ │ ├── methodPublic.png │ │ │ │ │ │ ├── methodPackage.png │ │ │ │ │ │ ├── methodPrivate.png │ │ │ │ │ │ ├── methodProtected.png │ │ │ │ │ │ ├── methodStaticPackage.png │ │ │ │ │ │ ├── methodStaticPrivate.png │ │ │ │ │ │ ├── methodStaticPublic.png │ │ │ │ │ │ └── methodStaticProtected.png │ │ │ │ │ ├── classDiagramComponentIcon.png │ │ │ │ │ └── constructors │ │ │ │ │ │ ├── constructorPublic.png │ │ │ │ │ │ ├── constructorPackage.png │ │ │ │ │ │ ├── constructorPrivate.png │ │ │ │ │ │ └── constructorProtected.png │ │ │ │ ├── class.png │ │ │ │ ├── enum.png │ │ │ │ ├── interface.png │ │ │ │ ├── classDiagram.png │ │ │ │ ├── other │ │ │ │ │ ├── literal.png │ │ │ │ │ ├── package.png │ │ │ │ │ ├── override.png │ │ │ │ │ ├── override-glyph.png │ │ │ │ │ └── package-empty.png │ │ │ │ ├── constructorPackage.png │ │ │ │ ├── fields │ │ │ │ │ ├── fieldPublic.png │ │ │ │ │ ├── fieldPackage.png │ │ │ │ │ ├── fieldPrivate.png │ │ │ │ │ ├── fieldProtected.png │ │ │ │ │ ├── fieldStaticPackage.png │ │ │ │ │ ├── fieldStaticPrivate.png │ │ │ │ │ ├── fieldStaticPublic.png │ │ │ │ │ └── fieldStaticProtected.png │ │ │ │ ├── methods │ │ │ │ │ ├── methodPackage.png │ │ │ │ │ ├── methodPrivate.png │ │ │ │ │ ├── methodPublic.png │ │ │ │ │ ├── methodProtected.png │ │ │ │ │ ├── methodStaticPublic.png │ │ │ │ │ ├── methodStaticPackage.png │ │ │ │ │ ├── methodStaticPrivate.png │ │ │ │ │ └── methodStaticProtected.png │ │ │ │ ├── classDiagramComponentIcon.png │ │ │ │ └── constructors │ │ │ │ │ ├── constructorPackage.png │ │ │ │ │ ├── constructorPrivate.png │ │ │ │ │ ├── constructorPublic.png │ │ │ │ │ └── constructorProtected.png │ │ │ ├── ISignedUMLWidget.java │ │ │ ├── relations │ │ │ │ ├── IsRelationWidget.java │ │ │ │ ├── ImplementsRelationWidget.java │ │ │ │ ├── UseRelationWidget.java │ │ │ │ └── HasBaseRelationWidget.java │ │ │ ├── providers │ │ │ │ ├── CloseInplaceEditorOnClickAdapter.java │ │ │ │ ├── SceneSelectProvider.java │ │ │ │ └── SingleLayerAlignWithWidgetCollector.java │ │ │ ├── actions │ │ │ │ ├── ComponentNameEditor.java │ │ │ │ ├── MemberNameEditor.java │ │ │ │ └── RelationLabelTextFieldEditorAction.java │ │ │ ├── popups │ │ │ │ ├── CardinalityPopupMenuProvider.java │ │ │ │ ├── RelationPopupMenuProvider.java │ │ │ │ ├── MemberBasePopupProvider.java │ │ │ │ ├── EnumPopupMenuProvider.java │ │ │ │ └── InterfacePopupMenuProvider.java │ │ │ └── anchors │ │ │ │ └── TriangleEquilateralAnchorShape.java │ │ ├── icons │ │ │ ├── enum.png │ │ │ ├── has.png │ │ │ ├── is.png │ │ │ ├── use.png │ │ │ ├── class.png │ │ │ ├── has_agg.png │ │ │ ├── has_comp.png │ │ │ ├── interface.png │ │ │ ├── package.png │ │ │ └── implements.png │ │ ├── Bundle.properties │ │ ├── navigator │ │ │ └── UMLNavigatorLookupHint.java │ │ ├── palette │ │ │ ├── PaletteCategory.java │ │ │ ├── PaletteCategoryNode.java │ │ │ ├── PaletteItemNode.java │ │ │ ├── PaletteCategoryChildFactory.java │ │ │ ├── PaletteItem.java │ │ │ └── PaletteSupport.java │ │ ├── dialogs │ │ │ └── Bundle.properties │ │ ├── themes │ │ │ ├── ColorThemesStore.java │ │ │ └── Theme.java │ │ └── UMLTopComponent.form │ │ ├── xmlSerialization │ │ ├── XmlSerializer.java │ │ ├── relations │ │ │ ├── RelationSerializer.java │ │ │ ├── IsRelationSerializer.java │ │ │ └── ImplementsRelationSerializer.java │ │ ├── components │ │ │ ├── ComponentSerializer.java │ │ │ └── EnumSerializer.java │ │ └── members │ │ │ ├── LiteralSerializer.java │ │ │ ├── FieldSerializer.java │ │ │ └── ConstructorSerializer.java │ │ └── xmlDeserialization │ │ ├── XmlDeserializer.java │ │ ├── members │ │ ├── LiteralDeserializer.java │ │ ├── FieldDeserializer.java │ │ └── ConstructorDeserializer.java │ │ └── relations │ │ ├── IsRelationDeserializer.java │ │ └── ImplementsRelationDeserializer.java ├── release │ └── modules │ │ └── ext │ │ ├── vl-jung-1.0.jar │ │ ├── jung-api-2.0.1.jar │ │ ├── jung-algorithms-2.0.1.jar │ │ ├── jung-graph-impl-2.0.1.jar │ │ ├── collections-generic-4.01.jar │ │ ├── jung-visualization-2.0.1.jar │ │ └── vl-jung-extensions-1.0.jar ├── manifest.mf └── build.xml ├── UMLCodeGenerator ├── nbproject │ ├── suite.properties │ ├── project.properties │ ├── genfiles.properties │ └── platform.properties ├── release │ └── modules │ │ └── ext │ │ ├── jalopy.jar │ │ └── log4j.jar ├── manifest.mf ├── build.xml └── src │ └── org │ └── uml │ └── newcode │ ├── Bundle.properties │ ├── CodeGeneratorUtils.java │ └── GenerateCodeAction.java ├── UMLProjectType ├── nbproject │ ├── suite.properties │ ├── project.properties │ ├── genfiles.properties │ └── platform.properties ├── src │ └── org │ │ └── uml │ │ └── project │ │ ├── UMLProject.png │ │ ├── samples │ │ ├── UMLDiagrams.png │ │ ├── UMLDiagramsProject.zip │ │ ├── Bundle.properties │ │ └── UMLDiagramsDescription.html │ │ ├── Bundle.properties │ │ ├── actions │ │ ├── UMLProjectCopyOperation.java │ │ ├── UMLProjectMoveOrRenameOperation.java │ │ └── UMLProjectDeleteOperation.java │ │ └── UMLProjectFactory.java ├── manifest.mf └── build.xml ├── UMLReverseEngineering ├── nbproject │ ├── suite.properties │ ├── project.properties │ ├── genfiles.properties │ └── platform.properties ├── manifest.mf ├── build.xml └── src │ └── org │ └── uml │ └── reveng │ ├── Bundle.properties │ ├── ReverseEngineerActionBase.java │ └── ReverseEngineerMultiFileAction.java ├── ant-contrib-1.0b3.jar ├── branding ├── core │ └── core.jar │ │ └── org │ │ └── netbeans │ │ └── core │ │ └── startup │ │ └── Bundle.properties └── modules │ └── org-netbeans-core-windows.jar │ └── org │ └── netbeans │ └── core │ └── windows │ └── view │ └── ui │ └── Bundle.properties ├── nbproject ├── project.xml ├── genfiles.properties ├── project.properties └── platform.xml └── .gitignore /UMLFileTypes/src/org/uml/filetype/cdg/ClassDiagramTemplate.cdg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dom4j/nbproject/suite.properties: -------------------------------------------------------------------------------- 1 | suite.dir=${basedir}/.. 2 | -------------------------------------------------------------------------------- /easyUML/nbproject/suite.properties: -------------------------------------------------------------------------------- 1 | suite.dir=${basedir}/.. 2 | -------------------------------------------------------------------------------- /JavaParser/nbproject/suite.properties: -------------------------------------------------------------------------------- 1 | suite.dir=${basedir}/.. 2 | -------------------------------------------------------------------------------- /UMLExplorer/nbproject/suite.properties: -------------------------------------------------------------------------------- 1 | suite.dir=${basedir}/.. 2 | -------------------------------------------------------------------------------- /UMLFileTypes/nbproject/suite.properties: -------------------------------------------------------------------------------- 1 | suite.dir=${basedir}/.. 2 | -------------------------------------------------------------------------------- /UMLModel/nbproject/suite.properties: -------------------------------------------------------------------------------- 1 | suite.dir=${basedir}/.. 2 | -------------------------------------------------------------------------------- /UMLVisual/nbproject/suite.properties: -------------------------------------------------------------------------------- 1 | suite.dir=${basedir}/.. 2 | -------------------------------------------------------------------------------- /UMLCodeGenerator/nbproject/suite.properties: -------------------------------------------------------------------------------- 1 | suite.dir=${basedir}/.. 2 | -------------------------------------------------------------------------------- /UMLProjectType/nbproject/suite.properties: -------------------------------------------------------------------------------- 1 | suite.dir=${basedir}/.. 2 | -------------------------------------------------------------------------------- /UMLReverseEngineering/nbproject/suite.properties: -------------------------------------------------------------------------------- 1 | suite.dir=${basedir}/.. 2 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/jung/Bundle.properties: -------------------------------------------------------------------------------- 1 | OpenIDE-Module-Name=JUNG 2 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/Bundle.properties: -------------------------------------------------------------------------------- 1 | OpenIDE-Module-Name=VisualWidgets 2 | -------------------------------------------------------------------------------- /ant-contrib-1.0b3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/ant-contrib-1.0b3.jar -------------------------------------------------------------------------------- /UMLModel/Dijagrami/Model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLModel/Dijagrami/Model.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/icons/enum.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/icons/enum.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/icons/has.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/icons/has.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/icons/is.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/icons/is.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/icons/use.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/icons/use.png -------------------------------------------------------------------------------- /branding/core/core.jar/org/netbeans/core/startup/Bundle.properties: -------------------------------------------------------------------------------- 1 | currentVersion=UML {0} 2 | LBL_splash_window_title=Starting UML 3 | -------------------------------------------------------------------------------- /dom4j/release/modules/ext/dom4j-1.6.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/dom4j/release/modules/ext/dom4j-1.6.1.jar -------------------------------------------------------------------------------- /UMLVisual/release/modules/ext/vl-jung-1.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/release/modules/ext/vl-jung-1.0.jar -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/icons/class.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/icons/class.png -------------------------------------------------------------------------------- /UMLCodeGenerator/release/modules/ext/jalopy.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLCodeGenerator/release/modules/ext/jalopy.jar -------------------------------------------------------------------------------- /UMLCodeGenerator/release/modules/ext/log4j.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLCodeGenerator/release/modules/ext/log4j.jar -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/class.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/class.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/enum.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/enum.png -------------------------------------------------------------------------------- /UMLFileTypes/release/modules/ext/dom4j-1.6.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLFileTypes/release/modules/ext/dom4j-1.6.1.jar -------------------------------------------------------------------------------- /UMLVisual/release/modules/ext/jung-api-2.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/release/modules/ext/jung-api-2.0.1.jar -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/icons/has_agg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/icons/has_agg.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/icons/has_comp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/icons/has_comp.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/icons/interface.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/icons/interface.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/icons/package.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/icons/package.png -------------------------------------------------------------------------------- /UMLProjectType/src/org/uml/project/UMLProject.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLProjectType/src/org/uml/project/UMLProject.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/icons/implements.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/icons/implements.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/interface.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/interface.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/class.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/class.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/enum.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/enum.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/classDiagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/classDiagram.png -------------------------------------------------------------------------------- /UMLFileTypes/src/org/uml/filetype/cdg/wizard/Bundle.properties: -------------------------------------------------------------------------------- 1 | NewClassDiagramVisualPanel1.lblName.text=Name: 2 | NewClassDiagramVisualPanel1.txfName.text= 3 | -------------------------------------------------------------------------------- /UMLVisual/release/modules/ext/jung-algorithms-2.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/release/modules/ext/jung-algorithms-2.0.1.jar -------------------------------------------------------------------------------- /UMLVisual/release/modules/ext/jung-graph-impl-2.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/release/modules/ext/jung-graph-impl-2.0.1.jar -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/class.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/class.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/enum.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/enum.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/other/literal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/other/literal.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/other/override.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/other/override.gif -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/other/package.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/other/package.gif -------------------------------------------------------------------------------- /UMLFileTypes/src/org/uml/filetype/cdg/classDiagramIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLFileTypes/src/org/uml/filetype/cdg/classDiagramIcon.png -------------------------------------------------------------------------------- /UMLProjectType/src/org/uml/project/samples/UMLDiagrams.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLProjectType/src/org/uml/project/samples/UMLDiagrams.png -------------------------------------------------------------------------------- /UMLVisual/release/modules/ext/collections-generic-4.01.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/release/modules/ext/collections-generic-4.01.jar -------------------------------------------------------------------------------- /UMLVisual/release/modules/ext/jung-visualization-2.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/release/modules/ext/jung-visualization-2.0.1.jar -------------------------------------------------------------------------------- /UMLVisual/release/modules/ext/vl-jung-extensions-1.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/release/modules/ext/vl-jung-extensions-1.0.jar -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/interface.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/interface.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/interface.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/interface.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/classDiagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/classDiagram.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/other/literal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/other/literal.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/other/package.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/other/package.png -------------------------------------------------------------------------------- /JavaParser/release/modules/ext/javaparser-1.0.12-SNAPSHOT.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/JavaParser/release/modules/ext/javaparser-1.0.12-SNAPSHOT.jar -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/fields/fieldPackage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/fields/fieldPackage.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/fields/fieldPrivate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/fields/fieldPrivate.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/fields/fieldPublic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/fields/fieldPublic.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/methods/methodPublic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/methods/methodPublic.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/other/override-glyph.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/other/override-glyph.gif -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/other/package-empty.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/other/package-empty.gif -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/classDiagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/classDiagram.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/other/literal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/other/literal.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/other/package.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/other/package.gif -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/other/override.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/other/override.png -------------------------------------------------------------------------------- /branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties: -------------------------------------------------------------------------------- 1 | CTL_MainWindow_Title=UML {0} 2 | CTL_MainWindow_Title_No_Project=UML {0} 3 | -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/fields/fieldProtected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/fields/fieldProtected.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/methods/methodPackage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/methods/methodPackage.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/methods/methodPrivate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/methods/methodPrivate.png -------------------------------------------------------------------------------- /UMLProjectType/src/org/uml/project/samples/UMLDiagramsProject.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLProjectType/src/org/uml/project/samples/UMLDiagramsProject.zip -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/other/override.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/other/override.gif -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/constructorPackage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/constructorPackage.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/fields/fieldPublic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/fields/fieldPublic.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/classDiagramComponentIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/classDiagramComponentIcon.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/fields/fieldStaticPackage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/fields/fieldStaticPackage.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/fields/fieldStaticPrivate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/fields/fieldStaticPrivate.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/fields/fieldStaticPublic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/fields/fieldStaticPublic.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/methods/methodProtected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/methods/methodProtected.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/fields/fieldPublic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/fields/fieldPublic.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/fields/fieldPackage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/fields/fieldPackage.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/fields/fieldPrivate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/fields/fieldPrivate.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/fields/fieldProtected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/fields/fieldProtected.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/methods/methodPackage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/methods/methodPackage.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/methods/methodPrivate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/methods/methodPrivate.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/methods/methodPublic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/methods/methodPublic.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/other/override-glyph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/other/override-glyph.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/other/package-empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/other/package-empty.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/fields/fieldStaticProtected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/fields/fieldStaticProtected.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/methods/methodStaticPackage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/methods/methodStaticPackage.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/methods/methodStaticPrivate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/methods/methodStaticPrivate.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/methods/methodStaticPublic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/methods/methodStaticPublic.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/fields/fieldPackage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/fields/fieldPackage.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/fields/fieldPrivate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/fields/fieldPrivate.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/methods/methodPublic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/methods/methodPublic.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/other/override-glyph.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/other/override-glyph.gif -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/other/package-empty.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/other/package-empty.gif -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/methods/methodProtected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/methods/methodProtected.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/constructors/constructorPublic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/constructors/constructorPublic.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/methods/methodStaticProtected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/methods/methodStaticProtected.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/fields/fieldProtected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/fields/fieldProtected.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/methods/methodPackage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/methods/methodPackage.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/methods/methodPrivate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/methods/methodPrivate.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/methods/methodProtected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/methods/methodProtected.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/classDiagramComponentIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/classDiagramComponentIcon.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/fields/fieldStaticPackage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/fields/fieldStaticPackage.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/fields/fieldStaticPrivate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/fields/fieldStaticPrivate.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/fields/fieldStaticPublic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/fields/fieldStaticPublic.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/methods/methodStaticPublic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/methods/methodStaticPublic.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/constructors/constructorPackage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/constructors/constructorPackage.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/constructors/constructorPrivate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/constructors/constructorPrivate.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/classDiagramComponentIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/classDiagramComponentIcon.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/fields/fieldStaticPackage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/fields/fieldStaticPackage.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/fields/fieldStaticPrivate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/fields/fieldStaticPrivate.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/fields/fieldStaticPublic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/fields/fieldStaticPublic.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/fields/fieldStaticProtected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/fields/fieldStaticProtected.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/methods/methodStaticPackage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/methods/methodStaticPackage.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/methods/methodStaticPrivate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/methods/methodStaticPrivate.png -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/icons/constructors/constructorProtected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLExplorer/src/org/uml/explorer/icons/constructors/constructorProtected.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/fields/fieldStaticProtected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/fields/fieldStaticProtected.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/methods/methodStaticPackage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/methods/methodStaticPackage.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/methods/methodStaticPrivate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/methods/methodStaticPrivate.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/methods/methodStaticPublic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/methods/methodStaticPublic.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/constructors/constructorPackage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/constructors/constructorPackage.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/constructors/constructorPrivate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/constructors/constructorPrivate.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/constructors/constructorPublic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/constructors/constructorPublic.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/methods/methodStaticProtected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/methods/methodStaticProtected.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/constructors/constructorPublic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/constructors/constructorPublic.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/methods/methodStaticProtected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/methods/methodStaticProtected.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/constructors/constructorProtected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/constructors/constructorProtected.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/constructors/constructorPackage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/constructors/constructorPackage.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/constructors/constructorPrivate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/constructors/constructorPrivate.png -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/icons/16/constructors/constructorProtected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ossdcfos/easyuml/HEAD/UMLVisual/src/org/uml/visual/widgets/icons/16/constructors/constructorProtected.png -------------------------------------------------------------------------------- /easyUML/manifest.mf: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | AutoUpdate-Show-In-Client: true 3 | OpenIDE-Module: easyuml 4 | OpenIDE-Module-Localizing-Bundle: easyuml/Bundle.properties 5 | OpenIDE-Module-Specification-Version: 1.4 6 | 7 | -------------------------------------------------------------------------------- /UMLFileTypes/src/org/uml/filetype/cdg/package-info.java: -------------------------------------------------------------------------------- 1 | @TemplateRegistration(folder = "Other", content = "ClassDiagramTemplate.cdg") 2 | package org.uml.filetype.cdg; 3 | 4 | import org.netbeans.api.templates.TemplateRegistration; 5 | -------------------------------------------------------------------------------- /UMLModel/manifest.mf: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | AutoUpdate-Show-In-Client: false 3 | OpenIDE-Module: org.uml.model 4 | OpenIDE-Module-Localizing-Bundle: org/uml/model/Bundle.properties 5 | OpenIDE-Module-Specification-Version: 1.4 6 | 7 | -------------------------------------------------------------------------------- /UMLVisual/manifest.mf: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | AutoUpdate-Show-In-Client: false 3 | OpenIDE-Module: org.uml.visual 4 | OpenIDE-Module-Localizing-Bundle: org/uml/visual/Bundle.properties 5 | OpenIDE-Module-Specification-Version: 1.4 6 | -------------------------------------------------------------------------------- /dom4j/manifest.mf: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | AutoUpdate-Show-In-Client: false 3 | OpenIDE-Module: org.uml.dom4j 4 | OpenIDE-Module-Localizing-Bundle: org/uml/dom4j/Bundle.properties 5 | OpenIDE-Module-Specification-Version: 1.4 6 | 7 | -------------------------------------------------------------------------------- /UMLExplorer/manifest.mf: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | AutoUpdate-Show-In-Client: false 3 | OpenIDE-Module: org.uml.explorer 4 | OpenIDE-Module-Localizing-Bundle: org/uml/explorer/Bundle.properties 5 | OpenIDE-Module-Specification-Version: 1.4 6 | 7 | -------------------------------------------------------------------------------- /UMLFileTypes/manifest.mf: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | AutoUpdate-Show-In-Client: false 3 | OpenIDE-Module: org.uml.filetype 4 | OpenIDE-Module-Localizing-Bundle: org/uml/filetype/Bundle.properties 5 | OpenIDE-Module-Specification-Version: 1.4 6 | 7 | -------------------------------------------------------------------------------- /UMLProjectType/manifest.mf: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | AutoUpdate-Show-In-Client: false 3 | OpenIDE-Module: org.uml.project 4 | OpenIDE-Module-Localizing-Bundle: org/uml/project/Bundle.properties 5 | OpenIDE-Module-Specification-Version: 1.4 6 | 7 | -------------------------------------------------------------------------------- /UMLReverseEngineering/manifest.mf: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | AutoUpdate-Show-In-Client: false 3 | OpenIDE-Module: org.uml.reveng 4 | OpenIDE-Module-Localizing-Bundle: org/uml/reveng/Bundle.properties 5 | OpenIDE-Module-Specification-Version: 1.4 6 | -------------------------------------------------------------------------------- /JavaParser/nbproject/project.properties: -------------------------------------------------------------------------------- 1 | #Sun, 06 Mar 2016 16:07:19 -0800 2 | javac.source=1.8 3 | javac.compilerargs=-Xlint -Xlint\:-serial 4 | license.file=COPYING.LESSER 5 | 6 | keystore=../nbproject/private/easyUMLkeystore 7 | nbm_alias=easyUML 8 | -------------------------------------------------------------------------------- /UMLCodeGenerator/manifest.mf: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | AutoUpdate-Show-In-Client: false 3 | OpenIDE-Module: org.uml.newcode 4 | OpenIDE-Module-Localizing-Bundle: org/uml/newcode/Bundle.properties 5 | OpenIDE-Module-Specification-Version: 1.4 6 | 7 | -------------------------------------------------------------------------------- /JavaParser/manifest.mf: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | AutoUpdate-Show-In-Client: false 3 | OpenIDE-Module: com.github.javaparser 4 | OpenIDE-Module-Localizing-Bundle: com/github/javaparser/Bundle.properties 5 | OpenIDE-Module-Specification-Version: 1.4 6 | 7 | -------------------------------------------------------------------------------- /UMLFileTypes/src/org/uml/filetype/cdg/wizard/newClassDiagram.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Creates a new Class Diagram File. 7 | 8 | 9 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/ISignedUMLWidget.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.widgets; 2 | 3 | /** 4 | * 5 | * @author Jelena 6 | */ 7 | public interface ISignedUMLWidget { 8 | public void setSignature(String signature); 9 | public String getSignature(); 10 | } 11 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/xmlSerialization/XmlSerializer.java: -------------------------------------------------------------------------------- 1 | package org.uml.xmlSerialization; 2 | 3 | import org.dom4j.Element; 4 | 5 | /** 6 | * 7 | * @author Stefan 8 | */ 9 | public interface XmlSerializer { 10 | 11 | public void serialize(Element node); 12 | } 13 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/xmlDeserialization/XmlDeserializer.java: -------------------------------------------------------------------------------- 1 | package org.uml.xmlDeserialization; 2 | 3 | import org.dom4j.Element; 4 | 5 | /** 6 | * 7 | * @author Stefan 8 | */ 9 | public interface XmlDeserializer { 10 | 11 | public void deserialize(Element node); 12 | } 13 | -------------------------------------------------------------------------------- /dom4j/src/org/uml/dom4j/Bundle.properties: -------------------------------------------------------------------------------- 1 | OpenIDE-Module-Display-Category=Tools 2 | OpenIDE-Module-Long-Description=\ 3 | This module is a part of easyUML tool and contains a wrapped dom4j library. 4 | OpenIDE-Module-Name=dom4j 5 | OpenIDE-Module-Short-Description=This module is a part of easyUML tool and contains a wrapped dom4j library. 6 | -------------------------------------------------------------------------------- /UMLModel/src/org/uml/model/relations/HasRelation.java: -------------------------------------------------------------------------------- 1 | package org.uml.model.relations; 2 | 3 | /** 4 | * Default has relation, subclassed from base relation. 5 | * @author Boris Perović 6 | */ 7 | public class HasRelation extends HasBaseRelation { 8 | 9 | public HasRelation() { 10 | super(Type.DEFAULT); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/Bundle.properties: -------------------------------------------------------------------------------- 1 | OpenIDE-Module-Display-Category=UML 2 | OpenIDE-Module-Long-Description=\ 3 | This module is a part of easyUML tool and provides support for UML visual editor. 4 | OpenIDE-Module-Name=UMLVisual 5 | OpenIDE-Module-Short-Description=This module is a part of easyUML tool and provides support for UML visual editor. 6 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/navigator/UMLNavigatorLookupHint.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.navigator; 2 | 3 | import org.netbeans.spi.navigator.NavigatorLookupHint; 4 | 5 | public class UMLNavigatorLookupHint implements NavigatorLookupHint { 6 | 7 | @Override 8 | public String getContentType() { 9 | return "application/uml"; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /UMLProjectType/src/org/uml/project/Bundle.properties: -------------------------------------------------------------------------------- 1 | OpenIDE-Module-Display-Category=UML 2 | OpenIDE-Module-Long-Description=\ 3 | This module is a part of easyUML and contains support for easyUML project type. 4 | OpenIDE-Module-Name=UMLProjectType 5 | OpenIDE-Module-Short-Description=This module is a part of easyUML and contains support for easyUML project type. 6 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/NamedNode.java: -------------------------------------------------------------------------------- 1 | package com.github.javaparser.ast; 2 | 3 | /** 4 | * A node having a name. 5 | * 6 | * The main reason for this interface is to permit users to manipulate homogeneously all nodes with a getName method. 7 | * 8 | * @since 2.0.1 9 | */ 10 | public interface NamedNode { 11 | String getName(); 12 | } 13 | -------------------------------------------------------------------------------- /UMLModel/src/org/uml/model/relations/CompositionRelation.java: -------------------------------------------------------------------------------- 1 | package org.uml.model.relations; 2 | 3 | /** 4 | * Composition has relation, subclassed from base relation. 5 | * @author Boris Perović 6 | */ 7 | public class CompositionRelation extends HasBaseRelation { 8 | 9 | public CompositionRelation() { 10 | super(Type.COMPOSITION); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /UMLModel/src/org/uml/model/relations/AggregationRelation.java: -------------------------------------------------------------------------------- 1 | package org.uml.model.relations; 2 | 3 | /** 4 | * Aggregation has relation, subclassed from base relation. 5 | * 6 | * @author Boris Perović 7 | */ 8 | public class AggregationRelation extends HasBaseRelation { 9 | 10 | public AggregationRelation() { 11 | super(Type.AGGREGATION); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.netbeans.modules.apisupport.project.suite 4 | 5 | 6 | UML 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /UMLModel/src/org/uml/model/Bundle.properties: -------------------------------------------------------------------------------- 1 | OpenIDE-Module-Display-Category=Tools 2 | OpenIDE-Module-Long-Description=\ 3 | This module is a part of easyUML and contains classes for creating object models of uml class diagrams 4 | OpenIDE-Module-Name=UMLModel 5 | OpenIDE-Module-Short-Description=This module is a part of easyUML and contains classes for creating object models of uml class diagrams 6 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/Bundle.properties: -------------------------------------------------------------------------------- 1 | OpenIDE-Module-Display-Category=Tools 2 | OpenIDE-Module-Long-Description=\ 3 | JavaParser for parsing of Java files and code generation. \ 4 | Java 8 code supported. http://javaparser.github.io/javaparser/ 5 | OpenIDE-Module-Name=JavaParser 6 | OpenIDE-Module-Short-Description=JavaParser with Java 8 support. http://javaparser.github.io/javaparser/ 7 | -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/Bundle.properties: -------------------------------------------------------------------------------- 1 | OpenIDE-Module-Display-Category=UML 2 | OpenIDE-Module-Long-Description=\ 3 | This module is a part of easyUML tool and provides support for explorer tree view for UML class diagrams. 4 | OpenIDE-Module-Name=UMLExplorer 5 | OpenIDE-Module-Short-Description=This module is a part of easyUML tool and provides support for explorer tree view for UML class diagrams. 6 | -------------------------------------------------------------------------------- /UMLProjectType/src/org/uml/project/samples/Bundle.properties: -------------------------------------------------------------------------------- 1 | LBL_CreateProjectStep=Name and Location 2 | UMLDiagramsPanelVisual.projectNameLabel.text=Project &Name: 3 | UMLDiagramsPanelVisual.projectLocationLabel.text=Project &Location: 4 | UMLDiagramsPanelVisual.browseButton.actionCommand=BROWSE 5 | UMLDiagramsPanelVisual.browseButton.text=Br&owse... 6 | UMLDiagramsPanelVisual.createdFolderLabel.text=Project &Folder: 7 | -------------------------------------------------------------------------------- /dom4j/nbproject/project.properties: -------------------------------------------------------------------------------- 1 | #Sun, 06 Mar 2016 16:07:19 -0800 2 | javac.source=1.8 3 | javac.compilerargs=-Xlint -Xlint\:-serial 4 | license.file=LICENSE-2.0.txt 5 | nbm.homepage=https\://java.net/projects/nb-uml-plugin 6 | nbm.module.author=Open Source Software Development Center, Faculty of Organisational Sciences, University of Belgrade 7 | 8 | keystore=../nbproject/private/easyUMLkeystore 9 | nbm_alias=easyUML 10 | -------------------------------------------------------------------------------- /UMLModel/nbproject/project.properties: -------------------------------------------------------------------------------- 1 | #Sun, 06 Mar 2016 16:07:19 -0800 2 | javac.source=1.8 3 | javac.compilerargs=-Xlint -Xlint\:-serial 4 | license.file=LICENSE-2.0.txt 5 | nbm.homepage=https\://java.net/projects/nb-uml-plugin 6 | nbm.module.author=Open Source Software Development Center, Faculty of Organisational Sciences, University of Belgrade 7 | 8 | keystore=../nbproject/private/easyUMLkeystore 9 | nbm_alias=easyUML 10 | -------------------------------------------------------------------------------- /easyUML/nbproject/project.properties: -------------------------------------------------------------------------------- 1 | #Sun, 06 Mar 2016 16:07:19 -0800 2 | javac.source=1.8 3 | javac.compilerargs=-Xlint -Xlint\:-serial 4 | license.file=LICENSE-2.0.txt 5 | nbm.homepage=https\://java.net/projects/nb-uml-plugin 6 | nbm.module.author=Open Source Software Development Center, Faculty of Organisational Sciences, University of Belgrade 7 | 8 | keystore=../nbproject/private/easyUMLkeystore 9 | nbm_alias=easyUML 10 | -------------------------------------------------------------------------------- /UMLExplorer/nbproject/project.properties: -------------------------------------------------------------------------------- 1 | #Sun, 06 Mar 2016 16:07:19 -0800 2 | javac.source=1.8 3 | javac.compilerargs=-Xlint -Xlint\:-serial 4 | license.file=LICENSE-2.0.txt 5 | nbm.homepage=https\://java.net/projects/nb-uml-plugin 6 | nbm.module.author=Open Source Software Development Center, Faculty of Organisational Sciences, University of Belgrade 7 | 8 | keystore=../nbproject/private/easyUMLkeystore 9 | nbm_alias=easyUML 10 | -------------------------------------------------------------------------------- /UMLFileTypes/nbproject/project.properties: -------------------------------------------------------------------------------- 1 | #Sun, 06 Mar 2016 16:07:19 -0800 2 | javac.source=1.8 3 | javac.compilerargs=-Xlint -Xlint\:-serial 4 | license.file=LICENSE-2.0.txt 5 | nbm.homepage=https\://java.net/projects/nb-uml-plugin 6 | nbm.module.author=Open Source Software Development Center, Faculty of Organisational Sciences, University of Belgrade 7 | 8 | keystore=../nbproject/private/easyUMLkeystore 9 | nbm_alias=easyUML 10 | -------------------------------------------------------------------------------- /UMLProjectType/nbproject/project.properties: -------------------------------------------------------------------------------- 1 | #Sun, 06 Mar 2016 16:07:19 -0800 2 | javac.source=1.8 3 | javac.compilerargs=-Xlint -Xlint\:-serial 4 | license.file=LICENSE-2.0.txt 5 | nbm.homepage=https\://java.net/projects/nb-uml-plugin 6 | nbm.module.author=Open Source Software Development Center, Faculty of Organisational Sciences, University of Belgrade 7 | 8 | keystore=../nbproject/private/easyUMLkeystore 9 | nbm_alias=easyUML 10 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/xmlSerialization/relations/RelationSerializer.java: -------------------------------------------------------------------------------- 1 | package org.uml.xmlSerialization.relations; 2 | 3 | import org.uml.model.relations.RelationBase; 4 | import org.uml.xmlSerialization.XmlSerializer; 5 | 6 | /** 7 | * 8 | * @author Stefan 9 | */ 10 | public interface RelationSerializer extends XmlSerializer{ 11 | 12 | public void setClassDiagramRelation(RelationBase relation); 13 | } 14 | -------------------------------------------------------------------------------- /UMLCodeGenerator/nbproject/project.properties: -------------------------------------------------------------------------------- 1 | #Sun, 06 Mar 2016 16:07:19 -0800 2 | javac.source=1.8 3 | javac.compilerargs=-Xlint -Xlint\:-serial 4 | license.file=LICENSE-2.0.txt 5 | nbm.homepage=https\://java.net/projects/nb-uml-plugin 6 | nbm.module.author=Open Source Software Development Center, Faculty of Organisational Sciences, University of Belgrade 7 | 8 | keystore=../nbproject/private/easyUMLkeystore 9 | nbm_alias=easyUML 10 | -------------------------------------------------------------------------------- /UMLReverseEngineering/nbproject/project.properties: -------------------------------------------------------------------------------- 1 | #Sun, 06 Mar 2016 16:07:19 -0800 2 | javac.source=1.8 3 | javac.compilerargs=-Xlint -Xlint\:-serial 4 | license.file=LICENSE-2.0.txt 5 | nbm.homepage=https\://java.net/projects/nb-uml-plugin 6 | nbm.module.author=Open Source Software Development Center, Faculty of Organisational Sciences, University of Belgrade 7 | 8 | keystore=../nbproject/private/easyUMLkeystore 9 | nbm_alias=easyUML 10 | -------------------------------------------------------------------------------- /UMLVisual/nbproject/project.properties: -------------------------------------------------------------------------------- 1 | #Sun, 06 Mar 2016 16:07:19 -0800 2 | javac.source=1.8 3 | javac.compilerargs=-Xlint -Xlint\:-serial -Xlint\:-path 4 | license.file=LICENSE-2.0.txt 5 | nbm.homepage=https\://java.net/projects/nb-uml-plugin 6 | nbm.module.author=Open Source Software Development Center, Faculty of Organisational Sciences, University of Belgrade 7 | 8 | keystore=../nbproject/private/easyUMLkeystore 9 | nbm_alias=easyUML 10 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/xmlSerialization/components/ComponentSerializer.java: -------------------------------------------------------------------------------- 1 | package org.uml.xmlSerialization.components; 2 | 3 | import org.uml.model.components.ComponentBase; 4 | import org.uml.xmlSerialization.XmlSerializer; 5 | 6 | /** 7 | * 8 | * @author Stefan 9 | */ 10 | public interface ComponentSerializer extends XmlSerializer { 11 | 12 | public void setClassDiagramComponent(ComponentBase component); 13 | } 14 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/palette/PaletteCategory.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.palette; 2 | 3 | /** 4 | * 5 | * @author NUGS 6 | */ 7 | public class PaletteCategory { 8 | 9 | private String name; 10 | 11 | public PaletteCategory() { 12 | } 13 | 14 | public String getName() { 15 | return name; 16 | } 17 | 18 | public void setName(String name) { 19 | this.name = name; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /UMLProjectType/src/org/uml/project/samples/UMLDiagramsDescription.html: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | 11 | UML Diagrams project 12 | 13 | 14 | -------------------------------------------------------------------------------- /easyUML/src/easyuml/Bundle.properties: -------------------------------------------------------------------------------- 1 | OpenIDE-Module-Display-Category=UML 2 | OpenIDE-Module-Long-Description=\ 3 | easyUML provides UML drawing features, code generation and creation of UML class diagrams from Java code. \ 4 | It is being developed at Open Source Software Development Center at Faculty of Organisational Sciences, University of Belgrade. 5 | OpenIDE-Module-Name=easyUML 6 | OpenIDE-Module-Short-Description=easyUML is simple, easy to use NetBeans UML Plugin 7 | -------------------------------------------------------------------------------- /easyUML/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Builds, tests, and runs the project easyuml. 7 | 8 | 9 | -------------------------------------------------------------------------------- /UMLVisual/nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=889a0410 2 | build.xml.script.CRC32=4d41163f 3 | build.xml.stylesheet.CRC32=a56c6a5b@2.71.1 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=889a0410 7 | nbproject/build-impl.xml.script.CRC32=09f47c5e 8 | nbproject/build-impl.xml.stylesheet.CRC32=238281d1@2.71.1 9 | -------------------------------------------------------------------------------- /UMLExplorer/nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=0821d8b3 2 | build.xml.script.CRC32=7ebd0419 3 | build.xml.stylesheet.CRC32=a56c6a5b@2.71.1 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=0821d8b3 7 | nbproject/build-impl.xml.script.CRC32=468b15a1 8 | nbproject/build-impl.xml.stylesheet.CRC32=238281d1@2.71.1 9 | -------------------------------------------------------------------------------- /UMLFileTypes/nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=7a58790d 2 | build.xml.script.CRC32=69e387b4 3 | build.xml.stylesheet.CRC32=a56c6a5b@2.71.1 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=7a58790d 7 | nbproject/build-impl.xml.script.CRC32=785323e7 8 | nbproject/build-impl.xml.stylesheet.CRC32=238281d1@2.71.1 9 | -------------------------------------------------------------------------------- /UMLProjectType/nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=65b075e0 2 | build.xml.script.CRC32=9456727a 3 | build.xml.stylesheet.CRC32=a56c6a5b@2.71.1 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=65b075e0 7 | nbproject/build-impl.xml.script.CRC32=fb9fc690 8 | nbproject/build-impl.xml.stylesheet.CRC32=238281d1@2.71.1 9 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/palette/PaletteCategoryNode.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.palette; 2 | 3 | import org.openide.nodes.AbstractNode; 4 | import org.openide.nodes.Children; 5 | 6 | /** 7 | * 8 | * @author NUGS 9 | */ 10 | public class PaletteCategoryNode extends AbstractNode { 11 | 12 | public PaletteCategoryNode(PaletteCategory category) { 13 | super(Children.create(new PaletteItemChildFactory(category), true)); 14 | setDisplayName(category.getName()); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /dom4j/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Builds, tests, and runs the project org.uml.dom4j. 7 | 8 | 9 | -------------------------------------------------------------------------------- /dom4j/nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=07521622 2 | build.xml.script.CRC32=4b5e3219 3 | build.xml.stylesheet.CRC32=a56c6a5b@2.67.1 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=07521622 7 | nbproject/build-impl.xml.script.CRC32=4e64f7ac 8 | nbproject/build-impl.xml.stylesheet.CRC32=238281d1@2.67.1 9 | -------------------------------------------------------------------------------- /JavaParser/nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=9f450998 2 | build.xml.script.CRC32=55ec2430 3 | build.xml.stylesheet.CRC32=a56c6a5b@2.67.1 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=a25d480a 7 | nbproject/build-impl.xml.script.CRC32=fcd88647 8 | nbproject/build-impl.xml.stylesheet.CRC32=238281d1@2.67.1 9 | -------------------------------------------------------------------------------- /UMLCodeGenerator/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Builds, tests, and runs the project org.uml.newcode. 7 | 8 | 9 | -------------------------------------------------------------------------------- /UMLCodeGenerator/nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=b4cf2638 2 | build.xml.script.CRC32=3d6fbdc0 3 | build.xml.stylesheet.CRC32=a56c6a5b@2.71.1 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=b4cf2638 7 | nbproject/build-impl.xml.script.CRC32=b6c02f05 8 | nbproject/build-impl.xml.stylesheet.CRC32=238281d1@2.71.1 9 | -------------------------------------------------------------------------------- /UMLExplorer/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Builds, tests, and runs the project org.uml.explorer. 7 | 8 | 9 | -------------------------------------------------------------------------------- /UMLFileTypes/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Builds, tests, and runs the project org.uml.filetype. 7 | 8 | 9 | -------------------------------------------------------------------------------- /UMLModel/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Builds, tests, and runs the project org.uml.model. 7 | 8 | 9 | -------------------------------------------------------------------------------- /UMLModel/nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=89a368fe 2 | build.xml.script.CRC32=6b981d98 3 | build.xml.stylesheet.CRC32=a56c6a5b@2.67.1 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=89a368fe 7 | nbproject/build-impl.xml.script.CRC32=45785924 8 | nbproject/build-impl.xml.stylesheet.CRC32=238281d1@2.67.1 9 | -------------------------------------------------------------------------------- /UMLProjectType/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Builds, tests, and runs the project org.uml.project. 7 | 8 | 9 | -------------------------------------------------------------------------------- /UMLVisual/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Builds, tests, and runs the project org.uml.visual. 7 | 8 | 9 | -------------------------------------------------------------------------------- /UMLReverseEngineering/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Builds, tests, and runs the project org.uml.reveng. 7 | 8 | 9 | -------------------------------------------------------------------------------- /UMLReverseEngineering/nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=a8ef5152 2 | build.xml.script.CRC32=5271511d 3 | build.xml.stylesheet.CRC32=a56c6a5b@2.71.1 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=a8ef5152 7 | nbproject/build-impl.xml.script.CRC32=28949a97 8 | nbproject/build-impl.xml.stylesheet.CRC32=238281d1@2.71.1 9 | -------------------------------------------------------------------------------- /JavaParser/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Builds, tests, and runs the project com.github.javaparser 7 | 8 | 9 | -------------------------------------------------------------------------------- /UMLModel/src/org/uml/model/IHasSignature.java: -------------------------------------------------------------------------------- 1 | package org.uml.model; 2 | 3 | /** 4 | * A class implements the IHasSignature interface to indicate it has 5 | * a unique signature (within its surrounding scope), by which it can be identified. 6 | * Example: 1) ComponentBase has a unique signature within a ClassDiagram 7 | * 2) MemberBase has a unique signature within a ComponentBase 8 | * 9 | * @author Boris Perović 10 | */ 11 | public interface IHasSignature { 12 | 13 | public String getSignature(); 14 | } 15 | -------------------------------------------------------------------------------- /UMLFileTypes/src/org/uml/filetype/Bundle.properties: -------------------------------------------------------------------------------- 1 | OpenIDE-Module-Display-Category=UML 2 | OpenIDE-Module-Long-Description=\ 3 | This module is a part of easyUML tool and provides support for UML diagram file types. 4 | OpenIDE-Module-Name=UMLFileTypes 5 | OpenIDE-Module-Short-Description=This module is a part of easyUML tool and provides support for UML diagram file types. 6 | 7 | ClassDiagramVisualPanel1.jLabel1.text=Diagram Name: 8 | ClassDiagramVisualPanel1.classDiagramNameField.AccessibleContext.accessibleName= 9 | ClassDiagramVisualPanel1.classDiagramNameField.text= -------------------------------------------------------------------------------- /UMLCodeGenerator/src/org/uml/newcode/Bundle.properties: -------------------------------------------------------------------------------- 1 | OpenIDE-Module-Display-Category=Tools 2 | OpenIDE-Module-Long-Description=\ 3 | This module is a part of easyUML tool and contains support for code generation. 4 | OpenIDE-Module-Name=UMLCodeGenerator 5 | OpenIDE-Module-Short-Description=This module is a part of easyUML tool and contains support for code generation. 6 | 7 | GenerateCodeDialog.title=Generate code 8 | GenerateCodeDialog.lblProject.text=Java project: 9 | GenerateCodeDialog.btnGenerateCode.text=Generate code 10 | GenerateCodeDialog.btnCancel.text=Cancel -------------------------------------------------------------------------------- /UMLModel/src/org/uml/model/notes: -------------------------------------------------------------------------------- 1 | Modifier (public, private, abstract, final static ...) 2 | http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Modifier.html 3 | 4 | Member (Method, Field or Constructor) 5 | http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Member.html 6 | 7 | Za Abstraktnu klasu i obicnu klasu koristiti isti widget 8 | kako ce da izgleda graficka komponenta za interfejs, da li ce biti isti kao i klasa? 9 | 10 | Lepi hover i selekcija 11 | 12 | teme (boja klasa i linija, crveno zuta) 13 | 14 | mod za editovanje i prikaz 15 | 16 | Package -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/dialogs/Bundle.properties: -------------------------------------------------------------------------------- 1 | ConnectRelationPanel.txfName.text= 2 | ConnectRelationPanel.lblCollectionType.text=Collection type: 3 | ConnectRelationPanel.lblCardinalityTarget.text=Cardinality target: 4 | ConnectRelationPanel.lblRelationType.text=Relation type: 5 | ConnectRelationPanel.lblCardinalitySource.text=Cardinality source: 6 | ConnectRelationPanel.lblName.text=Name: 7 | ConnectRelationPanel.lblTarget.text=Target: 8 | ConnectRelationPanel.lblSource.text=Source: 9 | ConnectRelationPanel.lblSource.AccessibleContext.accessibleName=Source: 10 | CardinalityChangePanel.lblCardinality.text=Cardinality: 11 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/internal/Utils.java: -------------------------------------------------------------------------------- 1 | package com.github.javaparser.ast.internal; 2 | 3 | import java.util.Collection; 4 | import java.util.Collections; 5 | import java.util.List; 6 | 7 | /** 8 | * @author Federico Tomassetti 9 | * @since 2.0.1 10 | */ 11 | public class Utils { 12 | 13 | public static List ensureNotNull(List list) { 14 | return list == null ? Collections.emptyList() : list; 15 | } 16 | 17 | public static boolean isNullOrEmpty(Collection collection) { 18 | return collection == null || collection.isEmpty(); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /UMLModel/src/org/uml/model/INameable.java: -------------------------------------------------------------------------------- 1 | package org.uml.model; 2 | 3 | /** 4 | * A class implements the INameable interface to indicate it has a name. 5 | * Example:
1) Each ContainerBase has a name. 6 | *
2) Each ComponentBase has a name, used in ContainerBase to rename if the component with the same signature exists. 7 | *
3) Each MemberBase has a name, used in ComponentBase to rename if the member with the same signature exists. 8 | * 9 | * @author Boris Perović 10 | */ 11 | public interface INameable { 12 | 13 | public void setName(String name); 14 | 15 | public String getName(); 16 | } 17 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /nbproject/private/ 2 | /UMLFileTypes/nbproject/private/ 3 | /JavaParser/nbproject/private/ 4 | /UMLVisual/nbproject/private/ 5 | /UMLModel/nbproject/private/ 6 | /dom4j/nbproject/private/ 7 | /UMLCodeGenerator/nbproject/private/ 8 | /UMLExplorer/nbproject/private/ 9 | /UMLReverseEngineering/nbproject/private/ 10 | /UMLProjectType/nbproject/private/ 11 | /easyUML/nbproject/private/ 12 | /build/ 13 | /JavaParser/build/ 14 | /UMLModel/build/ 15 | /dom4j/build/ 16 | /UMLExplorer/build/ 17 | /UMLVisual/build/ 18 | /UMLFileTypes/build/ 19 | /UMLProjectType/build/ 20 | /easyUML/build/ 21 | /UMLCodeGenerator/build/ 22 | /UMLReverseEngineering/build/ -------------------------------------------------------------------------------- /nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=8cce6767 2 | build.xml.script.CRC32=677d5075 3 | build.xml.stylesheet.CRC32=eaf9f76a@2.67.1 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=8cce6767 7 | nbproject/build-impl.xml.script.CRC32=522b19cc 8 | nbproject/build-impl.xml.stylesheet.CRC32=0f381476@2.67.1 9 | nbproject/platform.xml.data.CRC32=8cce6767 10 | nbproject/platform.xml.script.CRC32=6dcbd131 11 | nbproject/platform.xml.stylesheet.CRC32=4e1f53d4@2.67.1 12 | -------------------------------------------------------------------------------- /UMLReverseEngineering/src/org/uml/reveng/Bundle.properties: -------------------------------------------------------------------------------- 1 | OpenIDE-Module-Display-Category=UML 2 | OpenIDE-Module-Long-Description=\ 3 | This module is a part of easyUML tool and contains support for reverse engineering - creating class diagrams from Java code. 4 | OpenIDE-Module-Name=UMLReverseEngineering 5 | OpenIDE-Module-Short-Description=This module is a part of easyUML tool and contains support for reverse engineering - creating class diagrams from Java code. 6 | 7 | ReverseEngineerDialog.title=Create class diagram 8 | ReverseEngineerDialog.lblProject.text=easyUML project: 9 | ReverseEngineerDialog.btnReverseEngineer.text=Create class diagram 10 | ReverseEngineerDialog.btnCancel.text=Cancel -------------------------------------------------------------------------------- /UMLModel/src/org/uml/model/relations/RelationUtilities.java: -------------------------------------------------------------------------------- 1 | package org.uml.model.relations; 2 | 3 | import java.util.LinkedList; 4 | import java.util.List; 5 | 6 | /** 7 | * 8 | * @author Boris Perović 9 | */ 10 | public class RelationUtilities { 11 | 12 | public static List allRelations() { 13 | List list = new LinkedList<>(); 14 | list.add(new IsRelation()); 15 | list.add(new ImplementsRelation()); 16 | list.add(new HasRelation()); 17 | list.add(new AggregationRelation()); 18 | list.add(new CompositionRelation()); 19 | list.add(new UseRelation()); 20 | return list; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/relations/IsRelationWidget.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.widgets.relations; 2 | 3 | import org.uml.model.relations.RelationBase; 4 | import org.uml.visual.widgets.ClassDiagramScene; 5 | import org.uml.visual.widgets.anchors.TriangleEquilateralAnchorShape; 6 | 7 | /** 8 | * 9 | * @author Boris Perović 10 | */ 11 | public class IsRelationWidget extends RelationBaseWidget { 12 | 13 | public IsRelationWidget(RelationBase relation, ClassDiagramScene scene) { 14 | super(relation, scene); 15 | setTargetAnchorShape(new TriangleEquilateralAnchorShape(10, false)); 16 | 17 | relation.setName("is"); 18 | name.setLabel("is"); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/relations/ImplementsRelationWidget.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.widgets.relations; 2 | 3 | import org.uml.model.relations.RelationBase; 4 | import org.uml.visual.widgets.ClassDiagramScene; 5 | import org.uml.visual.widgets.anchors.TriangleEquilateralAnchorShape; 6 | 7 | /** 8 | * 9 | * @author Boris Perović 10 | */ 11 | public class ImplementsRelationWidget extends RelationBaseWidget { 12 | 13 | public ImplementsRelationWidget(RelationBase relation, ClassDiagramScene scene) { 14 | super(relation, scene); 15 | setStroke(DASHED); 16 | setTargetAnchorShape(new TriangleEquilateralAnchorShape(10, false)); 17 | 18 | relation.setName("<>"); 19 | name.setLabel("<>"); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /UMLReverseEngineering/src/org/uml/reveng/ReverseEngineerActionBase.java: -------------------------------------------------------------------------------- 1 | package org.uml.reveng; 2 | 3 | import javax.swing.JOptionPane; 4 | import org.openide.windows.WindowManager; 5 | import org.uml.model.ClassDiagram; 6 | 7 | /** 8 | * 9 | * @author Boris Perović 10 | */ 11 | class ReverseEngineerActionBase { 12 | 13 | public void openReverseEngineerDialog(ClassDiagram classDiagram) { 14 | try (ReverseEngineerDialog dialog = new ReverseEngineerDialog(classDiagram)) { 15 | dialog.setLocationRelativeTo(WindowManager.getDefault().getMainWindow()); 16 | dialog.setVisible(true); 17 | } catch (Exception ex) { 18 | JOptionPane.showMessageDialog(null, ex.getMessage(), "Warning", JOptionPane.WARNING_MESSAGE); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/palette/PaletteItemNode.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.palette; 2 | 3 | import org.openide.nodes.AbstractNode; 4 | import org.openide.nodes.Children; 5 | import org.openide.util.lookup.Lookups; 6 | 7 | /** 8 | * 9 | * @author NUGS 10 | */ 11 | public class PaletteItemNode extends AbstractNode{ 12 | 13 | private final PaletteItem paletteItem; 14 | 15 | public PaletteItemNode(PaletteItem key) { 16 | super(Children.LEAF, Lookups.singleton(key)); 17 | this.paletteItem = key; 18 | setIconBaseWithExtension(key.getIcon()); 19 | setDisplayName(key.getTitle()); 20 | setShortDescription(key.getShortDescription()); 21 | } 22 | 23 | public PaletteItem getPaletteItem() { 24 | return paletteItem; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/providers/CloseInplaceEditorOnClickAdapter.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.widgets.providers; 2 | 3 | import java.awt.event.MouseAdapter; 4 | import java.awt.event.MouseEvent; 5 | import org.netbeans.api.visual.action.ActionFactory; 6 | import org.netbeans.api.visual.action.WidgetAction; 7 | 8 | /** 9 | * 10 | * @author Jelena 11 | */ 12 | public class CloseInplaceEditorOnClickAdapter extends MouseAdapter { 13 | 14 | WidgetAction editorAction; 15 | 16 | public CloseInplaceEditorOnClickAdapter(WidgetAction a) { 17 | editorAction = a; 18 | } 19 | 20 | @Override 21 | public void mousePressed(MouseEvent e) { 22 | super.mousePressed(e); 23 | ActionFactory.getInplaceEditorController(editorAction).closeEditor(true); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/themes/ColorThemesStore.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.themes; 2 | 3 | import java.util.HashMap; 4 | import java.util.Map; 5 | 6 | /** 7 | * 8 | * @author Boris Perović 9 | */ 10 | public class ColorThemesStore { 11 | 12 | private static final Map colorThemes = new HashMap<>(); 13 | 14 | static { 15 | Theme ct; 16 | ct = new BlueGrayTheme(); 17 | colorThemes.put(ct.getName(), ct); 18 | ct = new SandRedTheme(); 19 | colorThemes.put(ct.getName(), ct); 20 | } 21 | public static final Theme DEFAULT_COLOR_THEME = new BlueGrayTheme(); 22 | 23 | public static Theme getColorTheme(String name) { 24 | if (colorThemes.containsKey(name)) return colorThemes.get(name); 25 | else return DEFAULT_COLOR_THEME; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/providers/SceneSelectProvider.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.widgets.providers; 2 | 3 | import java.awt.Point; 4 | import org.netbeans.api.visual.action.SelectProvider; 5 | import org.netbeans.api.visual.widget.Widget; 6 | import org.uml.visual.widgets.ClassDiagramScene; 7 | 8 | /** 9 | * 10 | * @author stefanpetrovic 11 | */ 12 | public class SceneSelectProvider implements SelectProvider { 13 | 14 | @Override 15 | public boolean isAimingAllowed(Widget widget, Point point, boolean bln) { 16 | return true; 17 | } 18 | 19 | @Override 20 | public boolean isSelectionAllowed(Widget widget, Point point, boolean bln) { 21 | return true; 22 | } 23 | 24 | @Override 25 | public void select(Widget widget, Point point, boolean bln) { 26 | ClassDiagramScene scene = (ClassDiagramScene) widget; 27 | scene.selectScene(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/actions/ComponentNameEditor.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.widgets.actions; 2 | 3 | import org.netbeans.api.visual.action.TextFieldInplaceEditor; 4 | import org.netbeans.api.visual.widget.Widget; 5 | import org.uml.visual.widgets.components.ComponentWidgetBase; 6 | 7 | /** 8 | * 9 | * @author Jelena 10 | */ 11 | public class ComponentNameEditor implements TextFieldInplaceEditor { 12 | 13 | private final ComponentWidgetBase widget; 14 | 15 | public ComponentNameEditor(ComponentWidgetBase widget) { 16 | this.widget = widget; 17 | } 18 | 19 | @Override 20 | public boolean isEnabled(Widget widget) { 21 | return true; 22 | } 23 | 24 | @Override 25 | public String getText(Widget widget) { 26 | return this.widget.getName(); 27 | } 28 | 29 | @Override 30 | public void setText(Widget widget, String string) { 31 | this.widget.setName(string); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/xmlDeserialization/members/LiteralDeserializer.java: -------------------------------------------------------------------------------- 1 | package org.uml.xmlDeserialization.members; 2 | 3 | import org.dom4j.Element; 4 | import org.uml.model.members.Literal; 5 | import org.uml.xmlDeserialization.XmlDeserializer; 6 | 7 | /** 8 | * 9 | * @author stefanpetrovic 10 | */ 11 | public class LiteralDeserializer implements XmlDeserializer{ 12 | 13 | private Literal literal; 14 | 15 | public LiteralDeserializer(Literal literal) { 16 | this.literal = literal; 17 | } 18 | 19 | /** 20 | * Fills in attributes of literal object by reading attributes and 21 | * sub-nodes of the node input element. 22 | * 23 | * @param node is XML tree node whose attributes and sub-nodes represent 24 | * attributes of the literal object. 25 | */ 26 | @Override 27 | public void deserialize(Element node) { 28 | String name = node.attributeValue("name"); 29 | if (name != null) literal.setName(name); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/actions/MemberNameEditor.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.widgets.actions; 2 | 3 | import org.netbeans.api.visual.action.TextFieldInplaceEditor; 4 | import org.netbeans.api.visual.widget.Widget; 5 | import org.uml.visual.widgets.ISignedUMLWidget; 6 | 7 | /** 8 | * 9 | * @author Jelena 10 | */ 11 | public class MemberNameEditor implements TextFieldInplaceEditor { 12 | 13 | private ISignedUMLWidget nameable; 14 | 15 | public MemberNameEditor(ISignedUMLWidget umlWidget) { 16 | this.nameable = umlWidget; 17 | } 18 | 19 | @Override 20 | public boolean isEnabled(Widget widget) { 21 | return true; 22 | } 23 | 24 | @Override 25 | public String getText(Widget widget) { 26 | return nameable.getSignature(); 27 | } 28 | 29 | @Override 30 | // widget parameter is nameWidget. Not used, because we need to update nameable parent. 31 | public void setText(Widget widget, String string) { 32 | nameable.setSignature(string); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/xmlSerialization/members/LiteralSerializer.java: -------------------------------------------------------------------------------- 1 | package org.uml.xmlSerialization.members; 2 | 3 | import java.util.LinkedHashSet; 4 | import org.dom4j.Element; 5 | import org.uml.model.members.Literal; 6 | import org.uml.xmlSerialization.XmlSerializer; 7 | 8 | /** 9 | * 10 | * @author stefanpetrovic 11 | */ 12 | public class LiteralSerializer implements XmlSerializer { 13 | 14 | private LinkedHashSet literals; 15 | 16 | public LiteralSerializer(LinkedHashSet literal) { 17 | this.literals = literal; 18 | } 19 | 20 | /** 21 | * Serializes literal object to XML by translating its fields into parameter node's attributes and subelements. 22 | * 23 | * @param node represents the node that will contain serialized literal object. 24 | */ 25 | @Override 26 | public void serialize(Element node) { 27 | for (Literal literal : literals) { 28 | Element literalNode = node.addElement("Literal") 29 | .addAttribute("name", literal.getName()); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/actions/RelationLabelTextFieldEditorAction.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.widgets.actions; 2 | 3 | import org.netbeans.api.visual.action.TextFieldInplaceEditor; 4 | import org.netbeans.api.visual.widget.LabelWidget; 5 | import org.netbeans.api.visual.widget.Widget; 6 | import org.uml.model.relations.RelationBase; 7 | 8 | /** 9 | * 10 | * @author Uros 11 | */ 12 | public class RelationLabelTextFieldEditorAction implements TextFieldInplaceEditor { 13 | 14 | RelationBase relation; 15 | 16 | public RelationLabelTextFieldEditorAction(RelationBase relationComponent) { 17 | this.relation = relationComponent; 18 | } 19 | 20 | @Override 21 | public boolean isEnabled(Widget widget) { 22 | return true; 23 | } 24 | 25 | @Override 26 | public String getText(Widget widget) { 27 | return relation.getName(); 28 | } 29 | 30 | @Override 31 | public void setText(Widget widget, String string) { 32 | relation.setName(string); 33 | ((LabelWidget) widget).setLabel(string); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /JavaParser/nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.netbeans.modules.apisupport.project 4 | 5 | 6 | com.github.javaparser 7 | 8 | 9 | 10 | com.github.javaparser 11 | com.github.javaparser.ast 12 | com.github.javaparser.ast.body 13 | com.github.javaparser.ast.comments 14 | com.github.javaparser.ast.expr 15 | com.github.javaparser.ast.internal 16 | com.github.javaparser.ast.stmt 17 | com.github.javaparser.ast.type 18 | com.github.javaparser.ast.visitor 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /UMLProjectType/src/org/uml/project/actions/UMLProjectCopyOperation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package org.uml.project.actions; 7 | 8 | import java.io.File; 9 | import java.io.IOException; 10 | import java.util.ArrayList; 11 | import java.util.List; 12 | import org.netbeans.api.project.Project; 13 | import org.netbeans.spi.project.CopyOperationImplementation; 14 | import org.openide.filesystems.FileObject; 15 | 16 | /** 17 | * 18 | * @author Boris Perović 19 | */ 20 | public final class UMLProjectCopyOperation implements CopyOperationImplementation { 21 | 22 | @Override 23 | public List getMetadataFiles() { 24 | return new ArrayList<>(); 25 | } 26 | 27 | @Override 28 | public List getDataFiles() { 29 | return new ArrayList<>(); 30 | } 31 | 32 | @Override 33 | public void notifyCopying() throws IOException { 34 | } 35 | 36 | @Override 37 | public void notifyCopied(Project prjct, File file, String string) throws IOException { 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /UMLModel/src/org/uml/model/members/MethodArgument.java: -------------------------------------------------------------------------------- 1 | package org.uml.model.members; 2 | 3 | /** 4 | * An input argument (variable) which is used to describe Methods or 5 | * Constructors. 6 | *

7 | * A representation of input arguments used to create methods or 8 | * constructors e.g. "public methodTest(String argOne)". 9 | * 10 | * @author Uros 11 | * @see Method 12 | * @see Constructor 13 | */ 14 | public class MethodArgument { 15 | 16 | String type; 17 | String name; 18 | 19 | public MethodArgument(String type, String name) { 20 | this.type = type; 21 | this.name = name; 22 | } 23 | 24 | public String getType() { 25 | return type; 26 | } 27 | 28 | public void setType(String type) { 29 | this.type = type; 30 | } 31 | 32 | public String getName() { 33 | return name; 34 | } 35 | 36 | public void setName(String name) { 37 | this.name = name; 38 | } 39 | 40 | /** 41 | * Returns string representing that MethodArgument. 42 | * 43 | * @return string 44 | */ 45 | @Override 46 | public String toString() { 47 | return type + " " + name; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /dom4j/nbproject/platform.properties: -------------------------------------------------------------------------------- 1 | branding.token=uml 2 | cluster.path=\ 3 | ${nbplatform.active.dir}/apisupport:\ 4 | ${nbplatform.active.dir}/harness:\ 5 | ${nbplatform.active.dir}/ide:\ 6 | ${nbplatform.active.dir}/java:\ 7 | ${nbplatform.active.dir}/php:\ 8 | ${nbplatform.active.dir}/platform:\ 9 | ${nbplatform.active.dir}/profiler:\ 10 | ${nbplatform.active.dir}/webcommon:\ 11 | ${nbplatform.active.dir}/websvccommon 12 | disabled.modules=\ 13 | org.netbeans.libs.jsr223,\ 14 | org.netbeans.modules.debugger.jpda.heapwalk,\ 15 | org.netbeans.modules.maven.profiler,\ 16 | org.netbeans.modules.profiler.drilldown,\ 17 | org.netbeans.modules.profiler.freeform,\ 18 | org.netbeans.modules.profiler.heapwalker,\ 19 | org.netbeans.modules.profiler.j2se,\ 20 | org.netbeans.modules.profiler.kit,\ 21 | org.netbeans.modules.profiler.nbmodule,\ 22 | org.netbeans.modules.profiler.options,\ 23 | org.netbeans.modules.profiler.oql,\ 24 | org.netbeans.modules.profiler.oql.language,\ 25 | org.netbeans.modules.profiler.snaptracer,\ 26 | org.netbeans.modules.profiler.stp,\ 27 | org.openide.compat,\ 28 | org.openide.options,\ 29 | org.openide.util.enumerations 30 | nbjdk.active=JDK_1.7 31 | nbplatform.active=default 32 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/providers/SingleLayerAlignWithWidgetCollector.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.widgets.providers; 2 | 3 | 4 | import java.awt.Rectangle; 5 | import java.util.ArrayList; 6 | import org.netbeans.api.visual.action.AlignWithWidgetCollector; 7 | import org.netbeans.api.visual.widget.LayerWidget; 8 | import org.netbeans.api.visual.widget.Widget; 9 | 10 | public class SingleLayerAlignWithWidgetCollector implements AlignWithWidgetCollector { 11 | 12 | private LayerWidget collectionLayer; 13 | private boolean outerBounds; 14 | 15 | public SingleLayerAlignWithWidgetCollector(LayerWidget collectionLayer, boolean outerBounds) { 16 | this.collectionLayer = collectionLayer; 17 | this.outerBounds = outerBounds; 18 | } 19 | 20 | public java.util.List getRegions(Widget movingWidget) { 21 | java.util.List children = collectionLayer.getChildren(); 22 | ArrayList regions = new ArrayList(children.size()); 23 | for (Widget widget : children) { 24 | if (widget != movingWidget) 25 | regions.add(widget.convertLocalToScene(outerBounds ? widget.getBounds() : widget.getClientArea())); 26 | } 27 | return regions; 28 | } 29 | } -------------------------------------------------------------------------------- /UMLModel/nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.netbeans.modules.apisupport.project 4 | 5 | 6 | org.uml.model 7 | 8 | 9 | 10 | com.github.javaparser 11 | 12 | 13 | 14 | 1.1 15 | 16 | 17 | 18 | 19 | org.uml.memberparser 20 | org.uml.model 21 | org.uml.model.components 22 | org.uml.model.members 23 | org.uml.model.relations 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/palette/PaletteCategoryChildFactory.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.palette; 2 | 3 | import java.util.LinkedList; 4 | import java.util.List; 5 | import org.netbeans.spi.palette.PaletteController; 6 | import org.openide.nodes.ChildFactory; 7 | import org.openide.nodes.Node; 8 | 9 | /** 10 | * 11 | * @author Boris Perović 12 | */ 13 | class PaletteCategoryChildFactory extends ChildFactory { 14 | 15 | private static final String[] CATEGORIES = new String[]{"Components", "Relations"}; 16 | 17 | public PaletteCategoryChildFactory() { 18 | } 19 | 20 | @Override 21 | protected boolean createKeys(List toPopulate) { 22 | LinkedList cats = new LinkedList<>(); 23 | for (String catName : CATEGORIES) { 24 | PaletteCategory cat = new PaletteCategory(); 25 | cat.setName(catName); 26 | cats.add(cat); 27 | } 28 | toPopulate.addAll(cats); 29 | return true; 30 | } 31 | 32 | @Override 33 | protected Node createNodeForKey(PaletteCategory key) { 34 | PaletteCategoryNode pcn = new PaletteCategoryNode(key); 35 | pcn.setValue(PaletteController.ATTR_IS_EXPANDED, true); 36 | return pcn; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/DocumentableNode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 | * Copyright (C) 2011, 2013-2015 The JavaParser Team. 4 | * 5 | * This file is part of JavaParser. 6 | * 7 | * JavaParser is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * JavaParser is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with JavaParser. If not, see . 19 | */ 20 | 21 | package com.github.javaparser.ast; 22 | 23 | import com.github.javaparser.ast.comments.JavadocComment; 24 | 25 | /** 26 | * Node which can be documented through a Javadoc comment. 27 | */ 28 | public interface DocumentableNode { 29 | 30 | public JavadocComment getJavaDoc(); 31 | public void setJavaDoc(JavadocComment javadocComment); 32 | } 33 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/TreeVisitor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 | * Copyright (C) 2011, 2013-2015 The JavaParser Team. 4 | * 5 | * This file is part of JavaParser. 6 | * 7 | * JavaParser is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * JavaParser is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with JavaParser. If not, see . 19 | */ 20 | 21 | package com.github.javaparser.ast; 22 | 23 | public abstract class TreeVisitor { 24 | 25 | public void visitDepthFirst(Node node){ 26 | process(node); 27 | for (Node child : node.getChildrenNodes()){ 28 | visitDepthFirst(child); 29 | } 30 | } 31 | 32 | public abstract void process(Node node); 33 | 34 | } 35 | -------------------------------------------------------------------------------- /UMLReverseEngineering/nbproject/platform.properties: -------------------------------------------------------------------------------- 1 | branding.token=uml 2 | cluster.path=\ 3 | ${nbplatform.active.dir}/apisupport:\ 4 | ${nbplatform.active.dir}/harness:\ 5 | ${nbplatform.active.dir}/ide:\ 6 | ${nbplatform.active.dir}/java:\ 7 | ${nbplatform.active.dir}/php:\ 8 | ${nbplatform.active.dir}/platform:\ 9 | ${nbplatform.active.dir}/profiler:\ 10 | ${nbplatform.active.dir}/webcommon:\ 11 | ${nbplatform.active.dir}/websvccommon 12 | disabled.modules=\ 13 | org.netbeans.libs.jsr223,\ 14 | org.netbeans.modules.debugger.jpda.heapwalk,\ 15 | org.netbeans.modules.maven.profiler,\ 16 | org.netbeans.modules.profiler.drilldown,\ 17 | org.netbeans.modules.profiler.freeform,\ 18 | org.netbeans.modules.profiler.heapwalker,\ 19 | org.netbeans.modules.profiler.j2se,\ 20 | org.netbeans.modules.profiler.kit,\ 21 | org.netbeans.modules.profiler.nbmodule,\ 22 | org.netbeans.modules.profiler.options,\ 23 | org.netbeans.modules.profiler.oql,\ 24 | org.netbeans.modules.profiler.oql.language,\ 25 | org.netbeans.modules.profiler.snaptracer,\ 26 | org.netbeans.modules.profiler.stp,\ 27 | org.openide.compat,\ 28 | org.openide.options,\ 29 | org.openide.util.enumerations 30 | nbjdk.active=JDK_1.7 31 | nbplatform.active=default 32 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/expr/LiteralExpr.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 | * Copyright (C) 2011, 2013-2015 The JavaParser Team. 4 | * 5 | * This file is part of JavaParser. 6 | * 7 | * JavaParser is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * JavaParser is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with JavaParser. If not, see . 19 | */ 20 | 21 | package com.github.javaparser.ast.expr; 22 | 23 | /** 24 | * @author Julio Vilmar Gesser 25 | */ 26 | public abstract class LiteralExpr extends Expression { 27 | 28 | public LiteralExpr() { 29 | } 30 | 31 | public LiteralExpr(final int beginLine, final int beginColumn, final int endLine, final int endColumn) { 32 | super(beginLine, beginColumn, endLine, endColumn); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/body/AnnotableNode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 | * Copyright (C) 2011, 2013-2015 The JavaParser Team. 4 | * 5 | * This file is part of JavaParser. 6 | * 7 | * JavaParser is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * JavaParser is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with JavaParser. If not, see . 19 | */ 20 | 21 | package com.github.javaparser.ast.body; 22 | 23 | import com.github.javaparser.ast.expr.AnnotationExpr; 24 | 25 | import java.util.List; 26 | 27 | /** 28 | * An element which can be the target of annotations. 29 | * 30 | * @author Federico Tomassetti 31 | * @since July 2014 32 | */ 33 | public interface AnnotableNode { 34 | public List getAnnotations(); 35 | } 36 | -------------------------------------------------------------------------------- /UMLProjectType/src/org/uml/project/UMLProjectFactory.java: -------------------------------------------------------------------------------- 1 | package org.uml.project; 2 | 3 | import java.io.IOException; 4 | import org.netbeans.api.project.Project; 5 | import org.netbeans.spi.project.ProjectFactory; 6 | import org.netbeans.spi.project.ProjectState; 7 | import org.openide.filesystems.FileObject; 8 | import org.openide.util.lookup.ServiceProvider; 9 | 10 | /** 11 | * 12 | * @author Boris Perović 13 | */ 14 | @ServiceProvider(service=ProjectFactory.class) 15 | public class UMLProjectFactory implements ProjectFactory { 16 | 17 | public static final String PROJECT_FILE = "umlproject"; 18 | 19 | //Specifies when a project is a project, i.e., 20 | //if "umlproject" is present in the folder: 21 | @Override 22 | public boolean isProject(FileObject projectDirectory) { 23 | return projectDirectory.getFileObject(PROJECT_FILE) != null; 24 | } 25 | 26 | //Specifies when the project will be opened, i.e., if the project exists: 27 | @Override 28 | public Project loadProject(FileObject dir, ProjectState state) throws IOException { 29 | return isProject(dir) ? new UMLProject(dir, state) : null; 30 | } 31 | 32 | @Override 33 | public void saveProject(final Project project) throws IOException, ClassCastException { 34 | // leave unimplemented for the moment 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /UMLCodeGenerator/src/org/uml/newcode/CodeGeneratorUtils.java: -------------------------------------------------------------------------------- 1 | package org.uml.newcode; 2 | 3 | import com.github.javaparser.JavaParser; 4 | import com.github.javaparser.ParseException; 5 | import com.github.javaparser.ast.body.BodyDeclaration; 6 | import com.github.javaparser.ast.body.FieldDeclaration; 7 | import com.github.javaparser.ast.type.Type; 8 | import com.github.javaparser.ast.type.VoidType; 9 | import org.openide.util.Exceptions; 10 | 11 | /** 12 | * Utility methods used in code generation. 13 | * @author Boris Perović 14 | */ 15 | public class CodeGeneratorUtils { 16 | 17 | /** 18 | * Parses the type string to type class from JavaParser. 19 | * @param typeString to be parsed 20 | * @return parsed Type 21 | */ 22 | public static Type parseType(String typeString) { 23 | Type type = null; 24 | 25 | if (typeString.contains("void")) type = new VoidType(); 26 | else { 27 | try { 28 | BodyDeclaration bd = JavaParser.parseBodyDeclaration(typeString + " field;"); 29 | FieldDeclaration declaration = (FieldDeclaration) bd; 30 | type = declaration.getType(); 31 | } catch (ParseException ex) { 32 | Exceptions.printStackTrace(ex); 33 | } 34 | } 35 | 36 | return type; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /easyUML/nbproject/platform.properties: -------------------------------------------------------------------------------- 1 | branding.token=nbuml 2 | cluster.path=\ 3 | ${nbplatform.active.dir}/apisupport:\ 4 | ${nbplatform.active.dir}/extide:\ 5 | ${nbplatform.active.dir}/harness:\ 6 | ${nbplatform.active.dir}/ide:\ 7 | ${nbplatform.active.dir}/java:\ 8 | ${nbplatform.active.dir}/platform:\ 9 | ${nbplatform.active.dir}/profiler:\ 10 | ${nbplatform.active.dir}/webcommon:\ 11 | ${nbplatform.active.dir}/websvccommon 12 | disabled.modules=\ 13 | org.netbeans.libs.jsr223,\ 14 | org.netbeans.modules.apisupport.osgidemo,\ 15 | org.netbeans.modules.apisupport.paintapp,\ 16 | org.netbeans.modules.debugger.jpda.heapwalk,\ 17 | org.netbeans.modules.maven.profiler,\ 18 | org.netbeans.modules.profiler.drilldown,\ 19 | org.netbeans.modules.profiler.freeform,\ 20 | org.netbeans.modules.profiler.heapwalker,\ 21 | org.netbeans.modules.profiler.j2se,\ 22 | org.netbeans.modules.profiler.kit,\ 23 | org.netbeans.modules.profiler.nbmodule,\ 24 | org.netbeans.modules.profiler.options,\ 25 | org.netbeans.modules.profiler.oql,\ 26 | org.netbeans.modules.profiler.oql.language,\ 27 | org.netbeans.modules.profiler.snaptracer,\ 28 | org.netbeans.modules.profiler.stp,\ 29 | org.openide.compat,\ 30 | org.openide.options,\ 31 | org.openide.util.enumerations 32 | nbjdk.active=default 33 | nbplatform.active=default 34 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/stmt/Statement.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 | * Copyright (C) 2011, 2013-2015 The JavaParser Team. 4 | * 5 | * This file is part of JavaParser. 6 | * 7 | * JavaParser is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * JavaParser is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with JavaParser. If not, see . 19 | */ 20 | 21 | package com.github.javaparser.ast.stmt; 22 | 23 | import com.github.javaparser.ast.Node; 24 | 25 | /** 26 | * @author Julio Vilmar Gesser 27 | */ 28 | public abstract class Statement extends Node { 29 | 30 | public Statement() { 31 | } 32 | 33 | public Statement(final int beginLine, final int beginColumn, final int endLine, final int endColumn) { 34 | super(beginLine, beginColumn, endLine, endColumn); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/palette/PaletteItem.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.palette; 2 | 3 | /** 4 | * 5 | * @author NUGS 6 | */ 7 | public class PaletteItem { 8 | 9 | String icon; 10 | String title; 11 | String category; 12 | Class dropComponentClass; 13 | String shortDescription; 14 | 15 | public PaletteItem() { 16 | } 17 | 18 | public String getIcon() { 19 | return icon; 20 | } 21 | 22 | public void setIcon(String icon) { 23 | this.icon = icon; 24 | } 25 | 26 | public String getTitle() { 27 | return title; 28 | } 29 | 30 | public void setTitle(String title) { 31 | this.title = title; 32 | } 33 | 34 | public String getCategory() { 35 | return category; 36 | } 37 | 38 | public void setCategory(String category) { 39 | this.category = category; 40 | } 41 | 42 | public Class getDropClass() { 43 | return dropComponentClass; 44 | } 45 | 46 | public void setDropClass(Class dropClass) { 47 | this.dropComponentClass = dropClass; 48 | } 49 | 50 | public String getShortDescription() { 51 | return shortDescription; 52 | } 53 | 54 | public void setShortDescription(String shortDescription) { 55 | this.shortDescription = shortDescription; 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/expr/Expression.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 | * Copyright (C) 2011, 2013-2015 The JavaParser Team. 4 | * 5 | * This file is part of JavaParser. 6 | * 7 | * JavaParser is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * JavaParser is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with JavaParser. If not, see . 19 | */ 20 | 21 | package com.github.javaparser.ast.expr; 22 | 23 | import com.github.javaparser.ast.Node; 24 | 25 | /** 26 | * @author Julio Vilmar Gesser 27 | */ 28 | public abstract class Expression extends Node { 29 | 30 | public Expression() { 31 | } 32 | 33 | public Expression(final int beginLine, final int beginColumn, final int endLine, final int endColumn) { 34 | super(beginLine, beginColumn, endLine, endColumn); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/ExplorerTopComponent.form: -------------------------------------------------------------------------------- 1 | 2 | 3 |

4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /UMLProjectType/src/org/uml/project/actions/UMLProjectMoveOrRenameOperation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package org.uml.project.actions; 7 | 8 | import java.io.File; 9 | import java.io.IOException; 10 | import java.util.ArrayList; 11 | import java.util.List; 12 | import org.netbeans.api.project.Project; 13 | import org.netbeans.spi.project.MoveOrRenameOperationImplementation; 14 | import org.openide.filesystems.FileObject; 15 | 16 | /** 17 | * 18 | * @author Boris Perović 19 | */ 20 | public final class UMLProjectMoveOrRenameOperation implements MoveOrRenameOperationImplementation { 21 | 22 | @Override 23 | public List getMetadataFiles() { 24 | return new ArrayList<>(); 25 | } 26 | 27 | @Override 28 | public List getDataFiles() { 29 | return new ArrayList<>(); 30 | } 31 | 32 | @Override 33 | public void notifyRenaming() throws IOException { 34 | } 35 | 36 | @Override 37 | public void notifyRenamed(String nueName) throws IOException { 38 | } 39 | 40 | @Override 41 | public void notifyMoving() throws IOException { 42 | } 43 | 44 | @Override 45 | public void notifyMoved(Project original, File originalPath, String nueName) throws IOException { 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /UMLModel/src/org/uml/model/members/Literal.java: -------------------------------------------------------------------------------- 1 | package org.uml.model.members; 2 | 3 | import org.uml.model.Visibility; 4 | 5 | /** 6 | * Enum's elements - Literals (constants). 7 | * 8 | * @author Jelena 9 | * @see EnumComponent 10 | * @see MemberBase 11 | * @see Field 12 | * @see Method 13 | * @see Constructor 14 | */ 15 | public class Literal extends MemberBase { 16 | 17 | /** 18 | * Default constructor, only sets the name. 19 | * 20 | * @param name of the Literal 21 | * @see MemberBase 22 | */ 23 | public Literal(String name) { 24 | super(name); 25 | this.visibility = Visibility.PUBLIC; 26 | } 27 | 28 | @Override 29 | public String getSignature() { 30 | return name; 31 | } 32 | 33 | @Override 34 | public String getSimpleTypeSignature() { 35 | return getSignature(); 36 | } 37 | 38 | @Override 39 | public String getLabelText(boolean isShort) { 40 | return getSignature(); 41 | } 42 | 43 | @Override 44 | public String deriveSignatureFromName(String newName) { 45 | return newName; 46 | } 47 | 48 | //TODO Remove this maybe, Literal cannot change type 49 | @Override 50 | public String deriveSignatureFromType(String newType) { 51 | return name; 52 | } 53 | 54 | @Override 55 | public boolean allowedToAddModifier(int modifier) { 56 | return false; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/themes/Theme.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.themes; 2 | 3 | import java.awt.Color; 4 | import org.netbeans.api.visual.border.Border; 5 | 6 | /** 7 | * 8 | * @author Boris Perović 9 | */ 10 | public interface Theme { 11 | 12 | public static final Color TRANSPARENT = new Color(0, 0, 0, 1); 13 | 14 | public Color getDefaultColor(); 15 | public Color getHoverColor(); 16 | public Color getSelectColor(); 17 | public Color getHoverSelectColor(); 18 | 19 | public Color getDefaultBorderColor(); 20 | public Color getHoverBorderColor(); 21 | public Color getSelectBorderColor(); 22 | public Border getDefaultBorder(); 23 | public Border getHoverBorder(); 24 | public Border getSelectBorder(); 25 | 26 | public Color getMemberDefaultColor(); 27 | public Color getMemberHoverColor(); 28 | public Color getMemberSelectColor(); 29 | 30 | public Border getMemberDefaultBorder(); 31 | public Border getMemberHoverBorder(); 32 | public Border getMemberSelectBorder(); 33 | 34 | public Color getAddMemberDefaultColor(); 35 | public Color getAddMemberHoverColor(); 36 | 37 | public Border getAddMemberDefaultBorder(); 38 | public Border getAddMemberHoverBorder(); 39 | 40 | public Color getDefaultFontColor(); 41 | public Color getHoverFontColor(); 42 | public Color getSelectFontColor(); 43 | 44 | public String getName(); 45 | } 46 | -------------------------------------------------------------------------------- /UMLModel/src/org/uml/model/members/Constructor.java: -------------------------------------------------------------------------------- 1 | package org.uml.model.members; 2 | 3 | import org.uml.model.components.ClassComponent; 4 | import org.uml.model.components.EnumComponent; 5 | 6 | /** 7 | * Constructors from UML Class diagrams. Used to represent class constructors 8 | * (both with and without parameters). 9 | * 10 | * @author zoran 11 | * @see MemberBase 12 | * @see Literal 13 | * @see Field 14 | * @see MethodBase 15 | * @see ClassComponent 16 | * @see EnumComponent 17 | */ 18 | public class Constructor extends MethodBase { 19 | 20 | /** 21 | * Constructor with parameter for setting constructor's name. 22 | * Name is the type for the constructor, so the type is set to null. 23 | *

24 | * Calls super constructor. 25 | * 26 | * @param name of the constructor 27 | */ 28 | public Constructor(String name) { 29 | super(name, null); 30 | } 31 | 32 | /** 33 | * Always returns false. Cannot add any non-access modifier to constructor. 34 | * @param modifier 35 | * @return 36 | */ 37 | @Override 38 | public boolean allowedToAddModifier(int modifier) { 39 | return false; 40 | } 41 | 42 | @Override 43 | public String getLabelText(boolean isSimpleTypeNames) { 44 | StringBuilder result = new StringBuilder(); 45 | if (isSimpleTypeNames) result.append(getSimpleTypeSignature()); 46 | else result.append(getSignature()); 47 | return result.toString(); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/expr/AnnotationExpr.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 | * Copyright (C) 2011, 2013-2015 The JavaParser Team. 4 | * 5 | * This file is part of JavaParser. 6 | * 7 | * JavaParser is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * JavaParser is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with JavaParser. If not, see . 19 | */ 20 | 21 | package com.github.javaparser.ast.expr; 22 | 23 | /** 24 | * @author Julio Vilmar Gesser 25 | */ 26 | public abstract class AnnotationExpr extends Expression { 27 | 28 | protected NameExpr name; 29 | 30 | public AnnotationExpr() {} 31 | 32 | public AnnotationExpr(int beginLine, int beginColumn, int endLine, 33 | int endColumn) { 34 | super(beginLine, beginColumn, endLine, endColumn); 35 | } 36 | 37 | public NameExpr getName() { 38 | return name; 39 | } 40 | 41 | public void setName(NameExpr name) { 42 | this.name = name; 43 | setAsParentNodeOf(name); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /dom4j/nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.netbeans.modules.apisupport.project 4 | 5 | 6 | org.uml.dom4j 7 | 8 | 9 | 10 | org.dom4j 11 | org.dom4j.bean 12 | org.dom4j.datatype 13 | org.dom4j.dom 14 | org.dom4j.dtd 15 | org.dom4j.io 16 | org.dom4j.jaxb 17 | org.dom4j.rule 18 | org.dom4j.rule.pattern 19 | org.dom4j.swing 20 | org.dom4j.tree 21 | org.dom4j.util 22 | org.dom4j.xpath 23 | org.dom4j.xpp 24 | 25 | 26 | ext/dom4j-1.6.1.jar 27 | release/modules/ext/dom4j-1.6.1.jar 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /UMLCodeGenerator/src/org/uml/newcode/GenerateCodeAction.java: -------------------------------------------------------------------------------- 1 | package org.uml.newcode; 2 | 3 | import java.awt.event.ActionEvent; 4 | import java.awt.event.ActionListener; 5 | import javax.swing.JOptionPane; 6 | import org.openide.loaders.DataObject; 7 | import org.openide.awt.ActionID; 8 | import org.openide.awt.ActionReference; 9 | import org.openide.awt.ActionRegistration; 10 | import org.openide.util.NbBundle.Messages; 11 | import org.openide.windows.WindowManager; 12 | import org.uml.filetype.cdg.ClassDiagramDataObject; 13 | 14 | @ActionID( 15 | category = "Source", 16 | id = "org.uml.newcode.GenerateCodeAction" 17 | ) 18 | @ActionRegistration( 19 | displayName = "#CTL_GenerateCodeAction" 20 | ) 21 | @ActionReference(path = "Loaders/text/x-cdg/Actions", position = 1150) 22 | @Messages("CTL_GenerateCodeAction=easyUML generate code") 23 | public final class GenerateCodeAction implements ActionListener { 24 | 25 | private final ClassDiagramDataObject context; 26 | 27 | public GenerateCodeAction(DataObject context) { 28 | this.context = (ClassDiagramDataObject) context; 29 | } 30 | 31 | @Override 32 | public void actionPerformed(ActionEvent ev) { 33 | try (GenerateCodeDialog dialog = new GenerateCodeDialog(context.getClassDiagram(), context.getRenames())) { 34 | dialog.setLocationRelativeTo(WindowManager.getDefault().getMainWindow()); 35 | dialog.setVisible(true); 36 | } catch (Exception ex) { 37 | JOptionPane.showMessageDialog(null, ex.getMessage(), "Warning", JOptionPane.WARNING_MESSAGE); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/popups/CardinalityPopupMenuProvider.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.widgets.popups; 2 | 3 | import java.awt.Point; 4 | import java.awt.event.ActionEvent; 5 | import java.awt.event.ActionListener; 6 | import javax.swing.JMenuItem; 7 | import javax.swing.JPopupMenu; 8 | import org.netbeans.api.visual.action.PopupMenuProvider; 9 | import org.netbeans.api.visual.widget.LabelWidget; 10 | import org.netbeans.api.visual.widget.Widget; 11 | import org.uml.model.relations.RelationBase; 12 | import org.uml.visual.dialogs.CardinalityChangePanel; 13 | 14 | /** 15 | * 16 | * @author Boris Perović 17 | */ 18 | public class CardinalityPopupMenuProvider implements PopupMenuProvider { 19 | 20 | private final JPopupMenu menu; 21 | private final JMenuItem changeCardinality; 22 | 23 | public CardinalityPopupMenuProvider(final RelationBase relationB, final LabelWidget cardinalityLbl, final boolean src) { 24 | menu = new JPopupMenu("Cardinality Menu"); 25 | 26 | (changeCardinality = new JMenuItem("Change cardinality")).addActionListener(new ActionListener() { 27 | 28 | @Override 29 | public void actionPerformed(ActionEvent e) { 30 | CardinalityChangePanel panel = new CardinalityChangePanel(relationB, src, cardinalityLbl); 31 | panel.openRelationDialog(); 32 | } 33 | }); 34 | menu.add(changeCardinality); 35 | } 36 | 37 | @Override 38 | public JPopupMenu getPopupMenu(Widget widget, Point localLocation) { 39 | return menu; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/popups/RelationPopupMenuProvider.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.widgets.popups; 2 | 3 | import java.awt.Point; 4 | import java.awt.event.ActionEvent; 5 | import java.awt.event.ActionListener; 6 | import javax.swing.JMenuItem; 7 | import javax.swing.JPopupMenu; 8 | import org.netbeans.api.visual.action.PopupMenuProvider; 9 | import org.netbeans.api.visual.widget.Widget; 10 | import org.uml.model.ClassDiagram; 11 | import org.uml.visual.widgets.relations.RelationBaseWidget; 12 | 13 | /** 14 | * 15 | * @author Uros 16 | */ 17 | public class RelationPopupMenuProvider implements PopupMenuProvider { 18 | 19 | private RelationBaseWidget relationWidget; 20 | private JPopupMenu menu; 21 | private JMenuItem removeRelation; 22 | 23 | public RelationPopupMenuProvider(RelationBaseWidget relationWidget) { 24 | this.relationWidget = relationWidget; 25 | 26 | menu = new JPopupMenu("Connection Menu"); 27 | 28 | (removeRelation = new JMenuItem("Remove relation")).addActionListener(removeRelationListener); 29 | menu.add(removeRelation); 30 | } 31 | 32 | ActionListener removeRelationListener = new ActionListener() { 33 | @Override 34 | public void actionPerformed(ActionEvent e) { 35 | ClassDiagram classDiagram = relationWidget.getRelation().getSource().getParentDiagram(); 36 | classDiagram.removeRelation(relationWidget.getRelation()); 37 | } 38 | }; 39 | 40 | @Override 41 | public JPopupMenu getPopupMenu(Widget widget, Point point) { 42 | return menu; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/AccessSpecifier.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 | * Copyright (C) 2011, 2013-2015 The JavaParser Team. 4 | * 5 | * This file is part of JavaParser. 6 | * 7 | * JavaParser is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * JavaParser is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with JavaParser. If not, see . 19 | */ 20 | 21 | package com.github.javaparser.ast; 22 | 23 | /** 24 | * Access specifier. Represents one of the possible levels of 25 | * access permitted by the language. 26 | * 27 | * @author Federico Tomassetti 28 | * @since July 2014 29 | */ 30 | public enum AccessSpecifier { 31 | 32 | PUBLIC("public"), 33 | PRIVATE("private"), 34 | PROTECTED("protected"), 35 | DEFAULT(""); 36 | 37 | private String codeRepresenation; 38 | 39 | private AccessSpecifier(String codeRepresentation) { 40 | this.codeRepresenation = codeRepresentation; 41 | } 42 | 43 | public String getCodeRepresenation(){ 44 | return this.codeRepresenation; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /UMLVisual/nbproject/platform.properties: -------------------------------------------------------------------------------- 1 | branding.token=uml 2 | cluster.path=\ 3 | ${nbplatform.active.dir}/apisupport:\ 4 | ${nbplatform.active.dir}/harness:\ 5 | ${nbplatform.active.dir}/ide:\ 6 | ${nbplatform.active.dir}/java:\ 7 | ${nbplatform.active.dir}/php:\ 8 | ${nbplatform.active.dir}/platform:\ 9 | ${nbplatform.active.dir}/profiler:\ 10 | ${nbplatform.active.dir}/webcommon:\ 11 | ${nbplatform.active.dir}/websvccommon 12 | disabled.modules=\ 13 | org.netbeans.libs.jsr223,\ 14 | org.netbeans.modules.debugger.jpda.heapwalk,\ 15 | org.netbeans.modules.maven.profiler,\ 16 | org.netbeans.modules.profiler.attach.impl,\ 17 | org.netbeans.modules.profiler.drilldown,\ 18 | org.netbeans.modules.profiler.freeform,\ 19 | org.netbeans.modules.profiler.heapwalker,\ 20 | org.netbeans.modules.profiler.j2ee.generic,\ 21 | org.netbeans.modules.profiler.j2ee.jboss,\ 22 | org.netbeans.modules.profiler.j2ee.sunas,\ 23 | org.netbeans.modules.profiler.j2ee.tomcat,\ 24 | org.netbeans.modules.profiler.j2ee.weblogic,\ 25 | org.netbeans.modules.profiler.j2se,\ 26 | org.netbeans.modules.profiler.j2se.impl,\ 27 | org.netbeans.modules.profiler.kit,\ 28 | org.netbeans.modules.profiler.nbmodule,\ 29 | org.netbeans.modules.profiler.options,\ 30 | org.netbeans.modules.profiler.oql,\ 31 | org.netbeans.modules.profiler.oql.language,\ 32 | org.netbeans.modules.profiler.snaptracer,\ 33 | org.netbeans.modules.profiler.stp,\ 34 | org.openide.compat,\ 35 | org.openide.options,\ 36 | org.openide.util.enumerations 37 | nbplatform.active=default 38 | -------------------------------------------------------------------------------- /UMLCodeGenerator/nbproject/platform.properties: -------------------------------------------------------------------------------- 1 | branding.token=uml 2 | cluster.path=\ 3 | ${nbplatform.active.dir}/apisupport:\ 4 | ${nbplatform.active.dir}/harness:\ 5 | ${nbplatform.active.dir}/ide:\ 6 | ${nbplatform.active.dir}/java:\ 7 | ${nbplatform.active.dir}/php:\ 8 | ${nbplatform.active.dir}/platform:\ 9 | ${nbplatform.active.dir}/profiler:\ 10 | ${nbplatform.active.dir}/webcommon:\ 11 | ${nbplatform.active.dir}/websvccommon 12 | disabled.modules=\ 13 | org.netbeans.libs.jsr223,\ 14 | org.netbeans.modules.debugger.jpda.heapwalk,\ 15 | org.netbeans.modules.maven.profiler,\ 16 | org.netbeans.modules.profiler.attach.impl,\ 17 | org.netbeans.modules.profiler.drilldown,\ 18 | org.netbeans.modules.profiler.freeform,\ 19 | org.netbeans.modules.profiler.heapwalker,\ 20 | org.netbeans.modules.profiler.j2ee.generic,\ 21 | org.netbeans.modules.profiler.j2ee.jboss,\ 22 | org.netbeans.modules.profiler.j2ee.sunas,\ 23 | org.netbeans.modules.profiler.j2ee.tomcat,\ 24 | org.netbeans.modules.profiler.j2ee.weblogic,\ 25 | org.netbeans.modules.profiler.j2se,\ 26 | org.netbeans.modules.profiler.j2se.impl,\ 27 | org.netbeans.modules.profiler.kit,\ 28 | org.netbeans.modules.profiler.nbmodule,\ 29 | org.netbeans.modules.profiler.options,\ 30 | org.netbeans.modules.profiler.oql,\ 31 | org.netbeans.modules.profiler.oql.language,\ 32 | org.netbeans.modules.profiler.snaptracer,\ 33 | org.netbeans.modules.profiler.stp,\ 34 | org.openide.compat,\ 35 | org.openide.options,\ 36 | org.openide.util.enumerations 37 | nbplatform.active=default 38 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/xmlDeserialization/relations/IsRelationDeserializer.java: -------------------------------------------------------------------------------- 1 | package org.uml.xmlDeserialization.relations; 2 | 3 | import java.util.List; 4 | import org.dom4j.Element; 5 | import org.uml.model.components.ComponentBase; 6 | import org.uml.model.relations.IsRelation; 7 | import org.uml.xmlDeserialization.XmlDeserializer; 8 | 9 | /** 10 | * 11 | * @author stefanpetrovic 12 | */ 13 | public class IsRelationDeserializer implements XmlDeserializer { 14 | 15 | private IsRelation relation; 16 | private List components; 17 | 18 | public IsRelationDeserializer(IsRelation relation, List components) { 19 | this.relation = relation; 20 | this.components = components; 21 | } 22 | 23 | /** 24 | * Fills in attributes of the relation object by reading attributes and 25 | * sub-nodes of the node input element. 26 | * 27 | * @param node is XML tree node whose attributes and sub-nodes represent 28 | * attributes of the relation object. 29 | */ 30 | @Override 31 | public void deserialize(Element node) { 32 | String name = node.attributeValue("name"); 33 | String source = node.attributeValue("source"); 34 | String target = node.attributeValue("target"); 35 | 36 | if (name != null) relation.setName(name); 37 | for (ComponentBase component : components) { 38 | if (source != null && component.getSignature().equals(source)) { 39 | relation.setSource(component); 40 | } else if (target != null && component.getSignature().equals(target)) { 41 | relation.setTarget(component); 42 | } 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/type/VoidType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 | * Copyright (C) 2011, 2013-2015 The JavaParser Team. 4 | * 5 | * This file is part of JavaParser. 6 | * 7 | * JavaParser is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * JavaParser is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with JavaParser. If not, see . 19 | */ 20 | 21 | package com.github.javaparser.ast.type; 22 | 23 | import com.github.javaparser.ast.visitor.GenericVisitor; 24 | import com.github.javaparser.ast.visitor.VoidVisitor; 25 | 26 | /** 27 | * @author Julio Vilmar Gesser 28 | */ 29 | public final class VoidType extends Type { 30 | 31 | public VoidType() { 32 | } 33 | 34 | public VoidType(final int beginLine, final int beginColumn, final int endLine, final int endColumn) { 35 | super(beginLine, beginColumn, endLine, endColumn); 36 | } 37 | 38 | @Override public R accept(final GenericVisitor v, final A arg) { 39 | return v.visit(this, arg); 40 | } 41 | 42 | @Override public void accept(final VoidVisitor v, final A arg) { 43 | v.visit(this, arg); 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/stmt/EmptyStmt.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 | * Copyright (C) 2011, 2013-2015 The JavaParser Team. 4 | * 5 | * This file is part of JavaParser. 6 | * 7 | * JavaParser is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * JavaParser is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with JavaParser. If not, see . 19 | */ 20 | 21 | package com.github.javaparser.ast.stmt; 22 | 23 | import com.github.javaparser.ast.visitor.GenericVisitor; 24 | import com.github.javaparser.ast.visitor.VoidVisitor; 25 | 26 | /** 27 | * @author Julio Vilmar Gesser 28 | */ 29 | public final class EmptyStmt extends Statement { 30 | 31 | public EmptyStmt() { 32 | } 33 | 34 | public EmptyStmt(final int beginLine, final int beginColumn, final int endLine, final int endColumn) { 35 | super(beginLine, beginColumn, endLine, endColumn); 36 | } 37 | 38 | @Override public R accept(final GenericVisitor v, final A arg) { 39 | return v.visit(this, arg); 40 | } 41 | 42 | @Override public void accept(final VoidVisitor v, final A arg) { 43 | v.visit(this, arg); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/palette/PaletteSupport.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.palette; 2 | 3 | import javax.swing.Action; 4 | import org.netbeans.spi.palette.PaletteActions; 5 | import org.netbeans.spi.palette.PaletteController; 6 | import org.netbeans.spi.palette.PaletteFactory; 7 | import org.openide.nodes.AbstractNode; 8 | import org.openide.nodes.Children; 9 | import org.openide.util.Lookup; 10 | 11 | /** 12 | * 13 | * @author NUGS 14 | */ 15 | public class PaletteSupport { 16 | 17 | public static PaletteController pc = null; 18 | 19 | public static PaletteController getPalette() { 20 | if (pc == null) { 21 | AbstractNode paletteRoot = new AbstractNode(Children.create(new PaletteCategoryChildFactory(), true)); 22 | paletteRoot.setName("Palette Root"); 23 | pc = PaletteFactory.createPalette(paletteRoot, new EmptyPaletteActions()); 24 | } 25 | return pc; 26 | } 27 | 28 | private static class EmptyPaletteActions extends PaletteActions { 29 | 30 | @Override 31 | public Action[] getImportActions() { 32 | return null; 33 | } 34 | 35 | @Override 36 | public Action[] getCustomPaletteActions() { 37 | return null; 38 | } 39 | 40 | @Override 41 | public Action[] getCustomCategoryActions(Lookup lookup) { 42 | return null; 43 | } 44 | 45 | @Override 46 | public Action[] getCustomItemActions(Lookup lookup) { 47 | return null; 48 | } 49 | 50 | @Override 51 | public Action getPreferredAction(Lookup lookup) { 52 | return null; 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/expr/NullLiteralExpr.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 | * Copyright (C) 2011, 2013-2015 The JavaParser Team. 4 | * 5 | * This file is part of JavaParser. 6 | * 7 | * JavaParser is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * JavaParser is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with JavaParser. If not, see . 19 | */ 20 | 21 | package com.github.javaparser.ast.expr; 22 | 23 | import com.github.javaparser.ast.visitor.GenericVisitor; 24 | import com.github.javaparser.ast.visitor.VoidVisitor; 25 | 26 | /** 27 | * @author Julio Vilmar Gesser 28 | */ 29 | public final class NullLiteralExpr extends LiteralExpr { 30 | 31 | public NullLiteralExpr() { 32 | } 33 | 34 | public NullLiteralExpr(final int beginLine, final int beginColumn, final int endLine, final int endColumn) { 35 | super(beginLine, beginColumn, endLine, endColumn); 36 | } 37 | 38 | @Override public R accept(final GenericVisitor v, final A arg) { 39 | return v.visit(this, arg); 40 | } 41 | 42 | @Override public void accept(final VoidVisitor v, final A arg) { 43 | v.visit(this, arg); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/xmlDeserialization/relations/ImplementsRelationDeserializer.java: -------------------------------------------------------------------------------- 1 | package org.uml.xmlDeserialization.relations; 2 | 3 | import java.util.List; 4 | import org.dom4j.Element; 5 | import org.uml.model.components.ComponentBase; 6 | import org.uml.model.relations.ImplementsRelation; 7 | import org.uml.xmlDeserialization.XmlDeserializer; 8 | 9 | /** 10 | * 11 | * @author stefanpetrovic 12 | */ 13 | public class ImplementsRelationDeserializer implements XmlDeserializer { 14 | 15 | private ImplementsRelation relation; 16 | private List components; 17 | 18 | public ImplementsRelationDeserializer(ImplementsRelation relation, List components) { 19 | this.relation = relation; 20 | this.components = components; 21 | } 22 | 23 | /** 24 | * Fills in attributes of relation object by reading attributes and 25 | * sub-nodes of the node input element. 26 | * 27 | * @param node is XML tree node whose attributes and sub-nodes represent 28 | * attributes of the relation object. 29 | */ 30 | @Override 31 | public void deserialize(Element node) { 32 | String name = node.attributeValue("name"); 33 | String source = node.attributeValue("source"); 34 | String target = node.attributeValue("target"); 35 | 36 | if (name != null) relation.setName(name); 37 | for (ComponentBase component : components) { 38 | if (source != null && component.getSignature().equals(source)) { 39 | relation.setSource(component); 40 | } else if (target != null && component.getSignature().equals(target)) { 41 | relation.setTarget(component); 42 | } 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/popups/MemberBasePopupProvider.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.widgets.popups; 2 | 3 | import java.awt.Point; 4 | import java.awt.event.ActionEvent; 5 | import java.awt.event.ActionListener; 6 | import javax.swing.JMenuItem; 7 | import javax.swing.JPopupMenu; 8 | import org.netbeans.api.visual.action.PopupMenuProvider; 9 | import org.netbeans.api.visual.widget.Widget; 10 | import org.uml.model.members.MemberBase; 11 | import org.uml.visual.widgets.members.MemberWidgetBase; 12 | 13 | /** 14 | * 15 | * @author Boris Perović 16 | */ 17 | public class MemberBasePopupProvider implements PopupMenuProvider { 18 | 19 | protected MemberWidgetBase widget; 20 | protected JPopupMenu menu; 21 | private JMenuItem deleteMember; 22 | 23 | public MemberBasePopupProvider(MemberWidgetBase widget){ 24 | this.widget = widget; 25 | String name = widget.getMember().getClass().getSimpleName(); 26 | menu = new JPopupMenu(name+" Menu"); 27 | 28 | (deleteMember = new JMenuItem("Delete "+name)).addActionListener(removeWidgetListener); 29 | menu.add(deleteMember); 30 | } 31 | 32 | ActionListener removeWidgetListener = new ActionListener() { 33 | @Override 34 | public void actionPerformed(ActionEvent e) { 35 | MemberBase member = widget.getMember(); 36 | member.getDeclaringComponent().removeMember(member); 37 | widget.getClassDiagramScene().removeObject(member); 38 | widget.removeFromParent(); 39 | } 40 | }; 41 | 42 | @Override 43 | public JPopupMenu getPopupMenu(Widget widget, Point localLocation) { 44 | return menu; 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /nbproject/project.properties: -------------------------------------------------------------------------------- 1 | app.name=${branding.token} 2 | app.title=UML 3 | auxiliary.org-netbeans-modules-apisupport-installer.license-type=no 4 | auxiliary.org-netbeans-modules-apisupport-installer.os-linux=true 5 | auxiliary.org-netbeans-modules-apisupport-installer.os-macosx=true 6 | auxiliary.org-netbeans-modules-apisupport-installer.os-solaris=false 7 | auxiliary.org-netbeans-modules-apisupport-installer.os-windows=true 8 | auxiliary.org-netbeans-modules-apisupport-installer.pack200-enabled=false 9 | auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml 10 | modules=\ 11 | ${project.org.uml.dom4j}:\ 12 | ${project.easyuml}:\ 13 | ${project.org.uml.explorer}:\ 14 | ${project.org.uml.filetype}:\ 15 | ${project.org.uml.model}:\ 16 | ${project.org.uml.reveng}:\ 17 | ${project.org.uml.visual}:\ 18 | ${project.com.github.javaparser}:\ 19 | ${project.org.uml.code}:\ 20 | ${project.org.uml.project} 21 | project.easyuml=easyUML 22 | project.com.github.javaparser=JavaParser 23 | project.org.uml.code=UMLCodeGenerator 24 | project.org.uml.dom4j=dom4j 25 | project.org.uml.explorer=UMLExplorer 26 | project.org.uml.filetype=UMLFileTypes 27 | project.org.uml.model=UMLModel 28 | project.org.uml.project=UMLProjectType 29 | project.org.uml.reveng=UMLReverseEngineering 30 | project.org.uml.visual=UMLVisual 31 | run.args.extra=-J-Xms512m -J-Xmx2048m -J-XX:MaxPermSize=128M --nosplash 32 | 33 | keystore.dname=CN=easyUML, OU=Faculty of Organisational Sciences Open Source Software Development Center, O=University of Belgrade, L=Belgrade, ST=Serbia, C=RS 34 | keystore.location=nbproject/private/ 35 | keystore.name=easyUMLkeystore 36 | keystore.alias=easyUML 37 | keystore.password=fon154 -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/xmlSerialization/relations/IsRelationSerializer.java: -------------------------------------------------------------------------------- 1 | package org.uml.xmlSerialization.relations; 2 | 3 | import org.dom4j.Element; 4 | import org.uml.model.components.ComponentBase; 5 | import org.uml.model.relations.IsRelation; 6 | import org.uml.model.relations.RelationBase; 7 | 8 | /** 9 | * 10 | * @author Stefan 11 | */ 12 | public class IsRelationSerializer implements RelationSerializer { 13 | 14 | private IsRelation isRelation; 15 | 16 | /** 17 | * Sets the isRelationComponent object that is going to be serialized. 18 | * 19 | * @param relation represents IsRelation object to be serialized. 20 | */ 21 | @Override 22 | public void setClassDiagramRelation(RelationBase relation) { 23 | try { 24 | isRelation = (IsRelation) relation; 25 | } catch (ClassCastException e) { 26 | System.out.println("You have tried to cast invalid type to IsRelationComponent!"); 27 | e.printStackTrace(); 28 | } 29 | } 30 | 31 | /** 32 | * Serializes isRelationComponent object to XML by translating its fields into parameter node's attributes and subelements. 33 | * 34 | * @param node represents the node that will contain serialized isRelationComponent object. 35 | */ 36 | @Override 37 | public void serialize(Element node) { 38 | if (isRelation.getName() != null) node.addAttribute("name", isRelation.getName()); 39 | 40 | ComponentBase sourceComponent = isRelation.getSource(); 41 | ComponentBase targetComponent = isRelation.getTarget(); 42 | node.addAttribute("source", sourceComponent.getSignature()); 43 | node.addAttribute("target", targetComponent.getSignature()); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /nbproject/platform.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/ComponentChildFactory.java: -------------------------------------------------------------------------------- 1 | package org.uml.explorer; 2 | 3 | import java.beans.PropertyChangeEvent; 4 | import java.beans.PropertyChangeListener; 5 | import java.util.List; 6 | import org.openide.nodes.ChildFactory; 7 | import org.openide.nodes.Node; 8 | import org.openide.util.WeakListeners; 9 | import org.uml.model.components.ComponentBase; 10 | import org.uml.model.members.MemberBase; 11 | 12 | /** 13 | * 14 | * @author Boris Perović 15 | */ 16 | public class ComponentChildFactory extends ChildFactory implements PropertyChangeListener { 17 | 18 | private final ComponentBase component; 19 | 20 | public ComponentChildFactory(ComponentBase component) { 21 | this.component = component; 22 | this.component.addPropertyChangeListener(WeakListeners.propertyChange(this, this.component)); 23 | } 24 | 25 | @Override 26 | protected boolean createKeys(List toPopulate) { 27 | if (component.getMembers() != null) { 28 | for (MemberBase member : component.getMembers()) { 29 | toPopulate.add(member); 30 | } 31 | } 32 | return true; 33 | } 34 | 35 | @Override 36 | protected Node createNodeForKey(MemberBase key) { 37 | return new MemberNode(key); 38 | } 39 | 40 | @Override 41 | public void propertyChange(PropertyChangeEvent evt) { 42 | if (null != evt.getPropertyName()) { 43 | switch (evt.getPropertyName()) { 44 | case "ADD_COMPONENT": 45 | refresh(true); 46 | break; 47 | case "REMOVE_COMPONENT": 48 | refresh(true); 49 | break; 50 | } 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /UMLProjectType/src/org/uml/project/actions/UMLProjectDeleteOperation.java: -------------------------------------------------------------------------------- 1 | package org.uml.project.actions; 2 | 3 | import java.io.IOException; 4 | import java.util.ArrayList; 5 | import java.util.List; 6 | import org.netbeans.spi.project.DeleteOperationImplementation; 7 | import org.openide.filesystems.FileObject; 8 | import org.uml.project.UMLProject; 9 | 10 | /** 11 | * 12 | * @author Boris Perović 13 | */ 14 | public class UMLProjectDeleteOperation implements DeleteOperationImplementation { 15 | 16 | private final UMLProject project; 17 | 18 | public UMLProjectDeleteOperation(UMLProject project) { 19 | this.project = project; 20 | } 21 | 22 | @Override 23 | public List getDataFiles() { 24 | List files = new ArrayList<>(); 25 | FileObject[] projectChildren = project.getProjectDirectory().getChildren(); 26 | for (FileObject fo : projectChildren) { 27 | files.add(fo); 28 | //addFile(project.getProjectDirectory(), fo.getNameExt(), files); 29 | } 30 | return files; 31 | } 32 | 33 | private void addFile(FileObject projectDirectory, String nameExt, List files) { 34 | FileObject fo = projectDirectory.getFileObject(nameExt); 35 | if (fo != null) { 36 | files.add(fo); 37 | } 38 | } 39 | 40 | @Override 41 | public List getMetadataFiles() { 42 | return new ArrayList<>(); 43 | } 44 | 45 | @Override 46 | public void notifyDeleting() throws IOException { 47 | } 48 | 49 | @Override 50 | public void notifyDeleted() throws IOException { 51 | } 52 | } -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/expr/LongLiteralMinValueExpr.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 | * Copyright (C) 2011, 2013-2015 The JavaParser Team. 4 | * 5 | * This file is part of JavaParser. 6 | * 7 | * JavaParser is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * JavaParser is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with JavaParser. If not, see . 19 | */ 20 | 21 | package com.github.javaparser.ast.expr; 22 | 23 | import com.github.javaparser.ast.visitor.GenericVisitor; 24 | import com.github.javaparser.ast.visitor.VoidVisitor; 25 | 26 | /** 27 | * @author Julio Vilmar Gesser 28 | */ 29 | public final class LongLiteralMinValueExpr extends LongLiteralExpr { 30 | 31 | public LongLiteralMinValueExpr() { 32 | super(MIN_VALUE); 33 | } 34 | 35 | public LongLiteralMinValueExpr(final int beginLine, final int beginColumn, final int endLine, final int endColumn) { 36 | super(beginLine, beginColumn, endLine, endColumn, MIN_VALUE); 37 | } 38 | 39 | @Override public R accept(final GenericVisitor v, final A arg) { 40 | return v.visit(this, arg); 41 | } 42 | 43 | @Override public void accept(final VoidVisitor v, final A arg) { 44 | v.visit(this, arg); 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/type/UnknownType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 | * Copyright (C) 2011, 2013-2015 The JavaParser Team. 4 | * 5 | * This file is part of JavaParser. 6 | * 7 | * JavaParser is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * JavaParser is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with JavaParser. If not, see . 19 | */ 20 | 21 | package com.github.javaparser.ast.type; 22 | 23 | import com.github.javaparser.ast.visitor.GenericVisitor; 24 | import com.github.javaparser.ast.visitor.VoidVisitor; 25 | 26 | /** 27 | * An unknown parameter type object. It plays the role of a null object for 28 | * lambda parameters that have no explicit type declared. As such, it has no 29 | * lexical representation and hence gets no comment attributed. 30 | * 31 | * @author Didier Villevalois 32 | */ 33 | public final class UnknownType extends Type { 34 | 35 | public UnknownType() { 36 | } 37 | 38 | @Override 39 | public R accept(final GenericVisitor v, final A arg) { 40 | return v.visit(this, arg); 41 | } 42 | 43 | @Override 44 | public void accept(final VoidVisitor v, final A arg) { 45 | v.visit(this, arg); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/expr/IntegerLiteralMinValueExpr.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 | * Copyright (C) 2011, 2013-2015 The JavaParser Team. 4 | * 5 | * This file is part of JavaParser. 6 | * 7 | * JavaParser is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * JavaParser is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with JavaParser. If not, see . 19 | */ 20 | 21 | package com.github.javaparser.ast.expr; 22 | 23 | import com.github.javaparser.ast.visitor.GenericVisitor; 24 | import com.github.javaparser.ast.visitor.VoidVisitor; 25 | 26 | /** 27 | * @author Julio Vilmar Gesser 28 | */ 29 | public final class IntegerLiteralMinValueExpr extends IntegerLiteralExpr { 30 | 31 | public IntegerLiteralMinValueExpr() { 32 | super(MIN_VALUE); 33 | } 34 | 35 | public IntegerLiteralMinValueExpr(final int beginLine, final int beginColumn, final int endLine, final int endColumn) { 36 | super(beginLine, beginColumn, endLine, endColumn, MIN_VALUE); 37 | } 38 | 39 | @Override public R accept(final GenericVisitor v, final A arg) { 40 | return v.visit(this, arg); 41 | } 42 | 43 | @Override public void accept(final VoidVisitor v, final A arg) { 44 | v.visit(this, arg); 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /UMLExplorer/src/org/uml/explorer/ClassDiagramChildFactory.java: -------------------------------------------------------------------------------- 1 | package org.uml.explorer; 2 | 3 | import java.beans.PropertyChangeEvent; 4 | import java.beans.PropertyChangeListener; 5 | import java.util.List; 6 | import org.openide.nodes.ChildFactory; 7 | import org.openide.nodes.Node; 8 | import org.openide.util.WeakListeners; 9 | import org.uml.model.ClassDiagram; 10 | import org.uml.model.components.ComponentBase; 11 | 12 | /** 13 | * 14 | * @author Boris Perović 15 | */ 16 | public class ClassDiagramChildFactory extends ChildFactory implements PropertyChangeListener { 17 | 18 | private final ClassDiagram classDiagram; 19 | 20 | public ClassDiagramChildFactory(ClassDiagram classDiagram) { 21 | this.classDiagram = classDiagram; 22 | this.classDiagram.addPropertyChangeListener(WeakListeners.propertyChange(this, this.classDiagram)); 23 | } 24 | 25 | @Override 26 | protected boolean createKeys(List toPopulate) { 27 | if (classDiagram.getComponents() != null) { 28 | for (ComponentBase component : classDiagram.getComponents()) { 29 | toPopulate.add(component); 30 | } 31 | } 32 | return true; 33 | } 34 | 35 | @Override 36 | protected Node createNodeForKey(ComponentBase key) { 37 | return new ComponentNode(key); 38 | } 39 | 40 | @Override 41 | public void propertyChange(PropertyChangeEvent evt) { 42 | if (null != evt.getPropertyName()) { 43 | switch (evt.getPropertyName()) { 44 | case "ADD_COMPONENT": 45 | refresh(true); 46 | break; 47 | case "REMOVE_COMPONENT": 48 | refresh(true); 49 | break; 50 | } 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /UMLExplorer/nbproject/platform.properties: -------------------------------------------------------------------------------- 1 | branding.token=nbuml 2 | cluster.path=\ 3 | ${nbplatform.active.dir}/apisupport:\ 4 | ${nbplatform.active.dir}/extide:\ 5 | ${nbplatform.active.dir}/harness:\ 6 | ${nbplatform.active.dir}/ide:\ 7 | ${nbplatform.active.dir}/java:\ 8 | ${nbplatform.active.dir}/platform:\ 9 | ${nbplatform.active.dir}/profiler 10 | disabled.modules=\ 11 | org.eclipse.mylyn.bugzilla.core,\ 12 | org.eclipse.mylyn.tasks.core,\ 13 | org.eclipse.mylyn.wikitext.confluence.core,\ 14 | org.eclipse.mylyn.wikitext.core,\ 15 | org.eclipse.mylyn.wikitext.textile.core,\ 16 | org.netbeans.core.browser.webview,\ 17 | org.netbeans.libs.javafx,\ 18 | org.netbeans.libs.jsr223,\ 19 | org.netbeans.modules.apisupport.kit,\ 20 | org.netbeans.modules.apisupport.osgidemo,\ 21 | org.netbeans.modules.apisupport.paintapp,\ 22 | org.netbeans.modules.bugzilla,\ 23 | org.netbeans.modules.debugger.jpda.heapwalk,\ 24 | org.netbeans.modules.localtasks,\ 25 | org.netbeans.modules.maven.profiler,\ 26 | org.netbeans.modules.mylyn.util,\ 27 | org.netbeans.modules.profiler.drilldown,\ 28 | org.netbeans.modules.profiler.freeform,\ 29 | org.netbeans.modules.profiler.heapwalker,\ 30 | org.netbeans.modules.profiler.j2se,\ 31 | org.netbeans.modules.profiler.kit,\ 32 | org.netbeans.modules.profiler.nbmodule,\ 33 | org.netbeans.modules.profiler.options,\ 34 | org.netbeans.modules.profiler.oql,\ 35 | org.netbeans.modules.profiler.oql.language,\ 36 | org.netbeans.modules.profiler.snaptracer,\ 37 | org.netbeans.modules.profiler.stp,\ 38 | org.netbeans.modules.websvc.saas.codegen.java,\ 39 | org.openide.compat,\ 40 | org.openide.options,\ 41 | org.openide.util.enumerations 42 | nbjdk.active=default 43 | nbplatform.active=default 44 | -------------------------------------------------------------------------------- /UMLFileTypes/nbproject/platform.properties: -------------------------------------------------------------------------------- 1 | branding.token=nbuml 2 | cluster.path=\ 3 | ${nbplatform.active.dir}/apisupport:\ 4 | ${nbplatform.active.dir}/extide:\ 5 | ${nbplatform.active.dir}/harness:\ 6 | ${nbplatform.active.dir}/ide:\ 7 | ${nbplatform.active.dir}/java:\ 8 | ${nbplatform.active.dir}/platform:\ 9 | ${nbplatform.active.dir}/profiler 10 | disabled.modules=\ 11 | org.eclipse.mylyn.bugzilla.core,\ 12 | org.eclipse.mylyn.tasks.core,\ 13 | org.eclipse.mylyn.wikitext.confluence.core,\ 14 | org.eclipse.mylyn.wikitext.core,\ 15 | org.eclipse.mylyn.wikitext.textile.core,\ 16 | org.netbeans.core.browser.webview,\ 17 | org.netbeans.libs.javafx,\ 18 | org.netbeans.libs.jsr223,\ 19 | org.netbeans.modules.apisupport.kit,\ 20 | org.netbeans.modules.apisupport.osgidemo,\ 21 | org.netbeans.modules.apisupport.paintapp,\ 22 | org.netbeans.modules.bugzilla,\ 23 | org.netbeans.modules.debugger.jpda.heapwalk,\ 24 | org.netbeans.modules.localtasks,\ 25 | org.netbeans.modules.maven.profiler,\ 26 | org.netbeans.modules.mylyn.util,\ 27 | org.netbeans.modules.profiler.drilldown,\ 28 | org.netbeans.modules.profiler.freeform,\ 29 | org.netbeans.modules.profiler.heapwalker,\ 30 | org.netbeans.modules.profiler.j2se,\ 31 | org.netbeans.modules.profiler.kit,\ 32 | org.netbeans.modules.profiler.nbmodule,\ 33 | org.netbeans.modules.profiler.options,\ 34 | org.netbeans.modules.profiler.oql,\ 35 | org.netbeans.modules.profiler.oql.language,\ 36 | org.netbeans.modules.profiler.snaptracer,\ 37 | org.netbeans.modules.profiler.stp,\ 38 | org.netbeans.modules.websvc.saas.codegen.java,\ 39 | org.openide.compat,\ 40 | org.openide.options,\ 41 | org.openide.util.enumerations 42 | nbjdk.active=default 43 | nbplatform.active=default 44 | -------------------------------------------------------------------------------- /UMLProjectType/nbproject/platform.properties: -------------------------------------------------------------------------------- 1 | branding.token=nbuml 2 | cluster.path=\ 3 | ${nbplatform.active.dir}/apisupport:\ 4 | ${nbplatform.active.dir}/extide:\ 5 | ${nbplatform.active.dir}/harness:\ 6 | ${nbplatform.active.dir}/ide:\ 7 | ${nbplatform.active.dir}/java:\ 8 | ${nbplatform.active.dir}/platform:\ 9 | ${nbplatform.active.dir}/profiler 10 | disabled.modules=\ 11 | org.eclipse.mylyn.bugzilla.core,\ 12 | org.eclipse.mylyn.tasks.core,\ 13 | org.eclipse.mylyn.wikitext.confluence.core,\ 14 | org.eclipse.mylyn.wikitext.core,\ 15 | org.eclipse.mylyn.wikitext.textile.core,\ 16 | org.netbeans.core.browser.webview,\ 17 | org.netbeans.libs.javafx,\ 18 | org.netbeans.libs.jsr223,\ 19 | org.netbeans.modules.apisupport.kit,\ 20 | org.netbeans.modules.apisupport.osgidemo,\ 21 | org.netbeans.modules.apisupport.paintapp,\ 22 | org.netbeans.modules.bugzilla,\ 23 | org.netbeans.modules.debugger.jpda.heapwalk,\ 24 | org.netbeans.modules.localtasks,\ 25 | org.netbeans.modules.maven.profiler,\ 26 | org.netbeans.modules.mylyn.util,\ 27 | org.netbeans.modules.profiler.drilldown,\ 28 | org.netbeans.modules.profiler.freeform,\ 29 | org.netbeans.modules.profiler.heapwalker,\ 30 | org.netbeans.modules.profiler.j2se,\ 31 | org.netbeans.modules.profiler.kit,\ 32 | org.netbeans.modules.profiler.nbmodule,\ 33 | org.netbeans.modules.profiler.options,\ 34 | org.netbeans.modules.profiler.oql,\ 35 | org.netbeans.modules.profiler.oql.language,\ 36 | org.netbeans.modules.profiler.snaptracer,\ 37 | org.netbeans.modules.profiler.stp,\ 38 | org.netbeans.modules.websvc.saas.codegen.java,\ 39 | org.openide.compat,\ 40 | org.openide.options,\ 41 | org.openide.util.enumerations 42 | nbjdk.active=default 43 | nbplatform.active=default 44 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/xmlDeserialization/members/FieldDeserializer.java: -------------------------------------------------------------------------------- 1 | package org.uml.xmlDeserialization.members; 2 | 3 | import org.dom4j.Element; 4 | import org.uml.model.members.Field; 5 | import org.uml.model.Visibility; 6 | import org.uml.xmlDeserialization.XmlDeserializer; 7 | 8 | /** 9 | * 10 | * @author Stefan 11 | */ 12 | public class FieldDeserializer implements XmlDeserializer{ 13 | 14 | private Field field; 15 | 16 | public FieldDeserializer(Field field) { 17 | this.field = field; 18 | } 19 | 20 | /** 21 | * Fills in attributes of the field object by reading attributes and sub-nodes of the node input element. 22 | * @param node is XML tree node whose attributes and sub-nodes represent attributes of the field object. 23 | */ 24 | @Override 25 | public void deserialize(Element node) { 26 | String name = node.attributeValue("name"); 27 | String type = node.attributeValue("type"); 28 | String visibility = node.attributeValue("visibility"); 29 | String isStatic = node.attributeValue("isStatic"); 30 | String isFinal = node.attributeValue("isFinal"); 31 | String isTransient = node.attributeValue("isTransient"); 32 | String isVolatile = node.attributeValue("isVolatile"); 33 | if (name != null) field.setName(name); 34 | if (visibility != null) field.setVisibility(Visibility.valueOf(visibility.toUpperCase())); 35 | if (type != null) field.setType(type); 36 | if (isStatic != null) field.setStatic(Boolean.parseBoolean(isStatic)); 37 | if (isFinal != null) field.setFinal(Boolean.parseBoolean(isFinal)); 38 | if (isTransient != null) field.setTransient(Boolean.parseBoolean(isTransient)); 39 | if (isVolatile != null) field.setTransient(Boolean.parseBoolean(isVolatile)); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/expr/CharLiteralExpr.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 | * Copyright (C) 2011, 2013-2015 The JavaParser Team. 4 | * 5 | * This file is part of JavaParser. 6 | * 7 | * JavaParser is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * JavaParser is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with JavaParser. If not, see . 19 | */ 20 | 21 | package com.github.javaparser.ast.expr; 22 | 23 | import com.github.javaparser.ast.visitor.GenericVisitor; 24 | import com.github.javaparser.ast.visitor.VoidVisitor; 25 | 26 | /** 27 | * @author Julio Vilmar Gesser 28 | */ 29 | public final class CharLiteralExpr extends StringLiteralExpr { 30 | 31 | public CharLiteralExpr() { 32 | } 33 | 34 | public CharLiteralExpr(String value) { 35 | super(value); 36 | } 37 | 38 | public CharLiteralExpr(int beginLine, int beginColumn, int endLine, int endColumn, String value) { 39 | super(beginLine, beginColumn, endLine, endColumn, value); 40 | } 41 | 42 | @Override 43 | public R accept(GenericVisitor v, A arg) { 44 | return v.visit(this, arg); 45 | } 46 | 47 | @Override 48 | public void accept(VoidVisitor v, A arg) { 49 | v.visit(this, arg); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/comments/JavadocComment.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 | * Copyright (C) 2011, 2013-2015 The JavaParser Team. 4 | * 5 | * This file is part of JavaParser. 6 | * 7 | * JavaParser is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * JavaParser is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with JavaParser. If not, see . 19 | */ 20 | 21 | package com.github.javaparser.ast.comments; 22 | 23 | import com.github.javaparser.ast.visitor.GenericVisitor; 24 | import com.github.javaparser.ast.visitor.VoidVisitor; 25 | 26 | /** 27 | * @author Julio Vilmar Gesser 28 | */ 29 | public final class JavadocComment extends Comment { 30 | 31 | public JavadocComment() { 32 | } 33 | 34 | public JavadocComment(String content) { 35 | super(content); 36 | } 37 | 38 | public JavadocComment(int beginLine, int beginColumn, int endLine, int endColumn, String content) { 39 | super(beginLine, beginColumn, endLine, endColumn, content); 40 | } 41 | 42 | @Override 43 | public R accept(GenericVisitor v, A arg) { 44 | return v.visit(this, arg); 45 | } 46 | 47 | @Override 48 | public void accept(VoidVisitor v, A arg) { 49 | v.visit(this, arg); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/expr/DoubleLiteralExpr.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 | * Copyright (C) 2011, 2013-2015 The JavaParser Team. 4 | * 5 | * This file is part of JavaParser. 6 | * 7 | * JavaParser is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * JavaParser is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with JavaParser. If not, see . 19 | */ 20 | 21 | package com.github.javaparser.ast.expr; 22 | 23 | import com.github.javaparser.ast.visitor.GenericVisitor; 24 | import com.github.javaparser.ast.visitor.VoidVisitor; 25 | 26 | /** 27 | * @author Julio Vilmar Gesser 28 | */ 29 | public final class DoubleLiteralExpr extends StringLiteralExpr { 30 | 31 | public DoubleLiteralExpr() { 32 | } 33 | 34 | public DoubleLiteralExpr(final String value) { 35 | super(value); 36 | } 37 | 38 | public DoubleLiteralExpr(final int beginLine, final int beginColumn, final int endLine, final int endColumn, 39 | final String value) { 40 | super(beginLine, beginColumn, endLine, endColumn, value); 41 | } 42 | 43 | @Override public R accept(final GenericVisitor v, final A arg) { 44 | return v.visit(this, arg); 45 | } 46 | 47 | @Override public void accept(final VoidVisitor v, final A arg) { 48 | v.visit(this, arg); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/relations/UseRelationWidget.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.widgets.relations; 2 | 3 | import org.netbeans.api.visual.action.ActionFactory; 4 | import org.netbeans.api.visual.anchor.AnchorShapeFactory; 5 | import org.netbeans.api.visual.layout.LayoutFactory; 6 | import org.netbeans.api.visual.widget.LabelWidget; 7 | import org.uml.model.relations.RelationBase; 8 | import org.uml.model.relations.UseRelation; 9 | import org.uml.visual.widgets.ClassDiagramScene; 10 | import org.uml.visual.widgets.popups.CardinalityPopupMenuProvider; 11 | 12 | /** 13 | * 14 | * @author Boris Perović 15 | */ 16 | public class UseRelationWidget extends RelationBaseWidget { 17 | 18 | public UseRelationWidget(RelationBase relation, ClassDiagramScene scene) { 19 | super(relation, scene); 20 | setStroke(DASHED); 21 | UseRelation useRelation = (UseRelation) relation; 22 | 23 | setTargetAnchorShape(AnchorShapeFactory.createArrowAnchorShape(45, 10)); 24 | 25 | LabelWidget cardinalitySource = new LabelWidget(scene, useRelation.getCardinalitySource().toString()); 26 | cardinalitySource.getActions().addAction(ActionFactory.createPopupMenuAction(new CardinalityPopupMenuProvider(useRelation, cardinalitySource, true))); 27 | addChild(cardinalitySource); 28 | setConstraint(cardinalitySource, LayoutFactory.ConnectionWidgetLayoutAlignment.TOP_SOURCE, 0.07f); 29 | 30 | LabelWidget cardinalityTarget = new LabelWidget(scene, useRelation.getCardinalityTarget().toString()); 31 | cardinalityTarget.getActions().addAction(ActionFactory.createPopupMenuAction(new CardinalityPopupMenuProvider(useRelation, cardinalityTarget, false))); 32 | addChild(cardinalityTarget); 33 | setConstraint(cardinalityTarget, LayoutFactory.ConnectionWidgetLayoutAlignment.TOP_TARGET, 0.93f); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/Position.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 | * Copyright (C) 2011, 2013-2015 The JavaParser Team. 4 | * 5 | * This file is part of JavaParser. 6 | * 7 | * JavaParser is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * JavaParser is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with JavaParser. If not, see . 19 | */ 20 | 21 | package com.github.javaparser; 22 | 23 | import com.github.javaparser.ast.Node; 24 | 25 | public class Position { 26 | private int line; 27 | private int column; 28 | 29 | public static final Position ABSOLUTE_START = new Position(Node.ABSOLUTE_BEGIN_LINE,-1); 30 | public static final Position ABSOLUTE_END = new Position(Node.ABSOLUTE_END_LINE,-1); 31 | 32 | public static Position beginOf(Node node){ 33 | return new Position(node.getBeginLine(),node.getBeginColumn()); 34 | } 35 | 36 | public static Position endOf(Node node){ 37 | return new Position(node.getEndLine(),node.getEndColumn()); 38 | } 39 | 40 | public Position(int line, int column){ 41 | this.line = line; 42 | this.column = column; 43 | } 44 | 45 | public int getLine(){ 46 | return this.line; 47 | } 48 | 49 | public int getColumn(){ 50 | return this.column; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/expr/MarkerAnnotationExpr.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 | * Copyright (C) 2011, 2013-2015 The JavaParser Team. 4 | * 5 | * This file is part of JavaParser. 6 | * 7 | * JavaParser is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * JavaParser is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with JavaParser. If not, see . 19 | */ 20 | 21 | package com.github.javaparser.ast.expr; 22 | 23 | import com.github.javaparser.ast.visitor.GenericVisitor; 24 | import com.github.javaparser.ast.visitor.VoidVisitor; 25 | 26 | /** 27 | * @author Julio Vilmar Gesser 28 | */ 29 | public final class MarkerAnnotationExpr extends AnnotationExpr { 30 | 31 | public MarkerAnnotationExpr() { 32 | } 33 | 34 | public MarkerAnnotationExpr(final NameExpr name) { 35 | setName(name); 36 | } 37 | 38 | public MarkerAnnotationExpr(final int beginLine, final int beginColumn, final int endLine, final int endColumn, 39 | final NameExpr name) { 40 | super(beginLine, beginColumn, endLine, endColumn); 41 | setName(name); 42 | } 43 | 44 | @Override public R accept(final GenericVisitor v, final A arg) { 45 | return v.visit(this, arg); 46 | } 47 | 48 | @Override public void accept(final VoidVisitor v, final A arg) { 49 | v.visit(this, arg); 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/xmlSerialization/relations/ImplementsRelationSerializer.java: -------------------------------------------------------------------------------- 1 | package org.uml.xmlSerialization.relations; 2 | 3 | import org.dom4j.Element; 4 | import org.uml.model.components.ComponentBase; 5 | import org.uml.model.relations.ImplementsRelation; 6 | import org.uml.model.relations.RelationBase; 7 | 8 | /** 9 | * 10 | * @author Stefan 11 | */ 12 | public class ImplementsRelationSerializer implements RelationSerializer { 13 | 14 | private ImplementsRelation implementsRelation; 15 | 16 | /** 17 | * Sets the implementsRelationComponent object that is going to be serialized. 18 | * 19 | * @param component represents implementsRelationComponent object to be serialized. 20 | */ 21 | @Override 22 | public void setClassDiagramRelation(RelationBase relation) { 23 | try { 24 | implementsRelation = (ImplementsRelation) relation; 25 | } catch (ClassCastException e) { 26 | System.out.println("You have tried to cast invalid type to ImplementsRelationComponent!"); 27 | e.printStackTrace(); 28 | } 29 | } 30 | 31 | /** 32 | * Serializes implementsRelationComponent object to XML by translating its fields into parameter node's attributes and subelements. 33 | * 34 | * @param node represents the node that will contain serialized ImplementsRelationComponent object. 35 | */ 36 | @Override 37 | public void serialize(Element node) { 38 | if (implementsRelation.getName() != null) node.addAttribute("name", implementsRelation.getName()); 39 | 40 | ComponentBase sourceComponent = implementsRelation.getSource(); 41 | ComponentBase targetComponent = implementsRelation.getTarget(); 42 | node.addAttribute("source", sourceComponent.getSignature()); 43 | node.addAttribute("target", targetComponent.getSignature()); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /UMLModel/src/org/uml/model/Visibility.java: -------------------------------------------------------------------------------- 1 | package org.uml.model; 2 | 3 | /** 4 | * Enumeration which represent all types of access modifiers - 5 | * private, protected, public and package. 6 | * 7 | * @author Uros 8 | */ 9 | public enum Visibility { 10 | 11 | PRIVATE { 12 | @Override 13 | public String toString() { 14 | return "private"; 15 | } 16 | 17 | }, 18 | PROTECTED { 19 | @Override 20 | public String toString() { 21 | return "protected"; 22 | } 23 | 24 | }, 25 | PUBLIC { 26 | @Override 27 | public String toString() { 28 | return "public"; 29 | } 30 | 31 | }, 32 | PACKAGE { 33 | @Override 34 | public String toString() { 35 | return "package"; 36 | } 37 | }; 38 | 39 | /** 40 | * Converts a String object into the corresponding Visibility element 41 | * (element with the same name). Case insensitive. Used here, as Enum.valueOf(String string) 42 | * is case sensitive, so this provides more flexibility and cleaner code. 43 | * 44 | * @param value - string representation of a modifier e.g. "public" 45 | * @return Visibility enumeration component. Returns PACKAGE as default value. 46 | */ 47 | public static Visibility stringToVisibility(String value) { 48 | if(value.equalsIgnoreCase(PUBLIC.toString())) return PUBLIC; 49 | else if(value.equalsIgnoreCase(PRIVATE.toString())) return PRIVATE; 50 | else if(value.equalsIgnoreCase(PROTECTED.toString())) return PROTECTED; 51 | else if(value.equalsIgnoreCase(PACKAGE.toString())) return PACKAGE; 52 | else return PACKAGE; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/relations/HasBaseRelationWidget.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.widgets.relations; 2 | 3 | import org.netbeans.api.visual.action.ActionFactory; 4 | import org.netbeans.api.visual.anchor.AnchorShapeFactory; 5 | import org.netbeans.api.visual.layout.LayoutFactory; 6 | import org.netbeans.api.visual.widget.LabelWidget; 7 | import org.uml.model.relations.HasBaseRelation; 8 | import org.uml.model.relations.RelationBase; 9 | import org.uml.visual.widgets.ClassDiagramScene; 10 | import org.uml.visual.widgets.anchors.RhombusAnchorShape; 11 | import org.uml.visual.widgets.popups.CardinalityPopupMenuProvider; 12 | 13 | /** 14 | * 15 | * @author Boris Perović 16 | */ 17 | public class HasBaseRelationWidget extends RelationBaseWidget { 18 | 19 | public HasBaseRelationWidget(RelationBase relation, ClassDiagramScene scene) { 20 | super(relation, scene); 21 | HasBaseRelation hasRelation = (HasBaseRelation) relation; 22 | 23 | switch (hasRelation.getType()) { 24 | case DEFAULT: 25 | break; 26 | case AGGREGATION: 27 | setSourceAnchorShape(new RhombusAnchorShape(45, 10, false)); 28 | break; 29 | case COMPOSITION: 30 | setSourceAnchorShape(new RhombusAnchorShape(45, 10, true)); 31 | break; 32 | } 33 | 34 | setTargetAnchorShape(AnchorShapeFactory.createArrowAnchorShape(45, 10)); 35 | 36 | LabelWidget cardinalityTarget = new LabelWidget(scene, hasRelation.getCardinalityTarget().toString()); 37 | cardinalityTarget.getActions().addAction(ActionFactory.createPopupMenuAction(new CardinalityPopupMenuProvider(hasRelation, cardinalityTarget, false))); 38 | addChild(cardinalityTarget); 39 | setConstraint(cardinalityTarget, LayoutFactory.ConnectionWidgetLayoutAlignment.TOP_TARGET, 0.93f); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/xmlSerialization/members/FieldSerializer.java: -------------------------------------------------------------------------------- 1 | package org.uml.xmlSerialization.members; 2 | 3 | import java.util.LinkedHashSet; 4 | import org.dom4j.Element; 5 | import org.uml.model.members.Field; 6 | import org.uml.xmlSerialization.XmlSerializer; 7 | 8 | /** 9 | * 10 | * @author Stefan 11 | */ 12 | public class FieldSerializer implements XmlSerializer { 13 | 14 | private LinkedHashSet fields; 15 | 16 | public FieldSerializer(LinkedHashSet fields) { 17 | this.fields = fields; 18 | } 19 | 20 | /** 21 | * Converts fields objects to nodes of an XML tree. 22 | * Each object from fields is translated to a sub-node of the node input parameter. 23 | * Each attribute of every field object from fields is translated to an attribute of the corresponding XML node. 24 | * 25 | * @param node represents empty XML node into which to put nodes representing fields. 26 | */ 27 | @Override 28 | public void serialize(Element node) { 29 | for (Field field : fields) { 30 | Element fieldNode = node.addElement("Field"); 31 | if (field.getName() != null) fieldNode.addAttribute("name", field.getName()); 32 | if (field.getType() != null) fieldNode.addAttribute("type", field.getType()); 33 | if (field.getVisibility() != null) fieldNode.addAttribute("visibility", field.getVisibility().name().toLowerCase()); 34 | if (field.isStatic()) fieldNode.addAttribute("isStatic", Boolean.toString(field.isStatic())); 35 | if (field.isFinal()) fieldNode.addAttribute("isFinal", Boolean.toString(field.isFinal())); 36 | if (field.isTransient()) fieldNode.addAttribute("isTransient", Boolean.toString(field.isTransient())); 37 | if (field.isVolatile()) fieldNode.addAttribute("isVolatile", Boolean.toString(field.isVolatile())); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/anchors/TriangleEquilateralAnchorShape.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.widgets.anchors; 2 | 3 | import java.awt.*; 4 | import java.awt.geom.GeneralPath; 5 | import org.netbeans.api.visual.anchor.AnchorShape; 6 | 7 | /** 8 | * 9 | * @author Boris Perović 10 | */ 11 | public class TriangleEquilateralAnchorShape implements AnchorShape { 12 | 13 | private static final Stroke STROKE = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND); 14 | private GeneralPath path; 15 | private double side; 16 | private double altitude; 17 | private boolean filled; 18 | 19 | // http://www.dickbaldwin.com/java/Java310-fig17.htm kako nacrtati romb 20 | // http://www.ehow.com/how_12165313_draw-diamond-java.html 21 | public TriangleEquilateralAnchorShape(int altitude, boolean filled) { 22 | this.filled = filled; 23 | 24 | path = new GeneralPath(); 25 | this.filled = filled; 26 | this.altitude = altitude; 27 | this.side = altitude * 2 / Math.sqrt(3); 28 | 29 | path.moveTo(0.0f, 0.0f); 30 | path.lineTo(altitude, -side / 2); 31 | path.lineTo(altitude, +side / 2); 32 | path.lineTo(0.0f, 0.0f); 33 | path.closePath(); 34 | } 35 | 36 | @Override 37 | public boolean isLineOriented() { 38 | return true; 39 | } 40 | 41 | @Override 42 | public int getRadius() { 43 | return (int)side + 1; 44 | } 45 | 46 | @Override 47 | public double getCutDistance() { 48 | return altitude; 49 | } 50 | 51 | @Override 52 | public void paint(Graphics2D graphics, boolean source) { 53 | Stroke previousStroke = graphics.getStroke(); 54 | graphics.setStroke(STROKE); 55 | graphics.draw(path); 56 | graphics.setStroke(previousStroke); 57 | if (filled) graphics.fill(path); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/popups/EnumPopupMenuProvider.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.widgets.popups; 2 | 3 | import java.awt.Point; 4 | import java.awt.event.ActionEvent; 5 | import java.awt.event.ActionListener; 6 | import javax.swing.JMenuItem; 7 | import javax.swing.JPopupMenu; 8 | import org.netbeans.api.visual.action.PopupMenuProvider; 9 | import org.netbeans.api.visual.widget.Widget; 10 | import org.uml.visual.widgets.components.EnumWidget; 11 | 12 | /** 13 | * 14 | * @author Jelena 15 | */ 16 | public class EnumPopupMenuProvider implements PopupMenuProvider { 17 | 18 | private EnumWidget enumWidget; 19 | private JPopupMenu menu; 20 | private JMenuItem deleteClass; 21 | private JMenuItem addLiteral; 22 | 23 | public EnumPopupMenuProvider(EnumWidget enumWidget) { 24 | this.enumWidget = enumWidget; 25 | menu = new JPopupMenu("Enum Menu"); 26 | 27 | (addLiteral = new JMenuItem("Add Literal")).addActionListener(addLiteralListener); 28 | menu.add(addLiteral); 29 | 30 | menu.addSeparator(); 31 | 32 | (deleteClass = new JMenuItem("Delete Enum")).addActionListener(removeWidgetListener); 33 | menu.add(deleteClass); 34 | 35 | } 36 | 37 | ActionListener addLiteralListener = new ActionListener() { 38 | @Override 39 | public void actionPerformed(ActionEvent e) { 40 | enumWidget.addLiteralWidget(); 41 | } 42 | }; 43 | 44 | ActionListener removeWidgetListener = new ActionListener() { 45 | @Override 46 | public void actionPerformed(ActionEvent e) { 47 | enumWidget.getComponent().getParentDiagram().removeComponentFromContainer(enumWidget.getComponent()); 48 | enumWidget.removeFromParent(); 49 | } 50 | }; 51 | 52 | @Override 53 | public JPopupMenu getPopupMenu(Widget widget, Point point) { 54 | return menu; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /UMLModel/src/org/uml/model/relations/IsRelation.java: -------------------------------------------------------------------------------- 1 | package org.uml.model.relations; 2 | 3 | import java.util.Objects; 4 | import org.uml.model.components.ClassComponent; 5 | import org.uml.model.components.ComponentBase; 6 | import org.uml.model.components.InterfaceComponent; 7 | 8 | /** 9 | * Is relation in UML class diagrams. 10 | * Describes relation used when an object extends another one. 11 | * 12 | * @author NUGS 13 | */ 14 | public class IsRelation extends RelationBase { 15 | 16 | /** 17 | * Returns the name of the relation. 18 | * 19 | * @return "Is" 20 | */ 21 | @Override 22 | public String toString() { 23 | return "Is"; 24 | } 25 | 26 | @Override 27 | public boolean canConnect(ComponentBase source, ComponentBase target) { 28 | Class sc = source.getClass(); 29 | Class tc = target.getClass(); 30 | if (source == target) { 31 | return false; 32 | } 33 | if (sc == ClassComponent.class && tc == ClassComponent.class) { 34 | return true; 35 | } 36 | if (sc == InterfaceComponent.class && tc == InterfaceComponent.class) { 37 | return true; 38 | } 39 | return false; 40 | } 41 | 42 | @Override 43 | public int hashCode() { 44 | int hash = 7; 45 | hash = 67 * hash + Objects.hashCode(this.source); 46 | return hash; 47 | } 48 | 49 | // Is relation is the same if the source is the same. 50 | @Override 51 | public boolean equals(Object obj) { 52 | if (obj == null) { 53 | return false; 54 | } 55 | if (getClass() != obj.getClass()) { 56 | return false; 57 | } 58 | final RelationBase other = (RelationBase) obj; 59 | if (!Objects.equals(this.source, other.source)) { 60 | return false; 61 | } 62 | return true; 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/xmlSerialization/components/EnumSerializer.java: -------------------------------------------------------------------------------- 1 | package org.uml.xmlSerialization.components; 2 | 3 | import org.dom4j.Element; 4 | import org.uml.model.components.ComponentBase; 5 | import org.uml.model.components.EnumComponent; 6 | import org.uml.xmlSerialization.members.LiteralSerializer; 7 | import org.uml.xmlSerialization.XmlSerializer; 8 | 9 | /** 10 | * 11 | * @author Stefan 12 | */ 13 | public class EnumSerializer implements ComponentSerializer { 14 | 15 | private EnumComponent enumComponent; 16 | 17 | /** 18 | * Sets the enumComponent object that is going to be serialized. 19 | * 20 | * @param component represents enumComponent object to be serialized. 21 | */ 22 | @Override 23 | public void setClassDiagramComponent(ComponentBase component) { 24 | try { 25 | enumComponent = (EnumComponent) component; 26 | } catch (ClassCastException e) { 27 | System.out.println("You have tried to cast invalid type to ClassComponent!"); 28 | e.printStackTrace(); 29 | } 30 | } 31 | 32 | /** 33 | * Serializes - object to XML by translating its fields into parameter node's attributes and subelements. 34 | * 35 | * @param node represents the node that will contain serialized - object. 36 | */ 37 | @Override 38 | public void serialize(Element node) { 39 | if (enumComponent.getName() != null) node.addAttribute("name", enumComponent.getName()); 40 | if (enumComponent.getParentPackage() != null) node.addAttribute("package", enumComponent.getParentPackage()); 41 | if (enumComponent.getVisibility() != null) node.addAttribute("visibility", enumComponent.getVisibility().name().toLowerCase()); 42 | 43 | Element literals = node.addElement("Literals"); 44 | XmlSerializer serializer = new LiteralSerializer(enumComponent.getLiterals()); 45 | serializer.serialize(literals); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/UMLTopComponent.form: -------------------------------------------------------------------------------- 1 | 2 | 3 |

4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/stmt/BreakStmt.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 | * Copyright (C) 2011, 2013-2015 The JavaParser Team. 4 | * 5 | * This file is part of JavaParser. 6 | * 7 | * JavaParser is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * JavaParser is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with JavaParser. If not, see . 19 | */ 20 | 21 | package com.github.javaparser.ast.stmt; 22 | 23 | import com.github.javaparser.ast.visitor.GenericVisitor; 24 | import com.github.javaparser.ast.visitor.VoidVisitor; 25 | 26 | /** 27 | * @author Julio Vilmar Gesser 28 | */ 29 | public final class BreakStmt extends Statement { 30 | 31 | private String id; 32 | 33 | public BreakStmt() { 34 | } 35 | 36 | public BreakStmt(final String id) { 37 | this.id = id; 38 | } 39 | 40 | public BreakStmt(final int beginLine, final int beginColumn, final int endLine, final int endColumn, final String id) { 41 | super(beginLine, beginColumn, endLine, endColumn); 42 | this.id = id; 43 | } 44 | 45 | @Override public R accept(final GenericVisitor v, final A arg) { 46 | return v.visit(this, arg); 47 | } 48 | 49 | @Override public
void accept(final VoidVisitor v, final A arg) { 50 | v.visit(this, arg); 51 | } 52 | 53 | public String getId() { 54 | return id; 55 | } 56 | 57 | public void setId(final String id) { 58 | this.id = id; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/xmlDeserialization/members/ConstructorDeserializer.java: -------------------------------------------------------------------------------- 1 | package org.uml.xmlDeserialization.members; 2 | 3 | import java.util.Iterator; 4 | import java.util.LinkedHashSet; 5 | import org.dom4j.Element; 6 | import org.uml.model.members.Constructor; 7 | import org.uml.model.members.MethodArgument; 8 | import org.uml.model.Visibility; 9 | import org.uml.xmlDeserialization.XmlDeserializer; 10 | 11 | /** 12 | * 13 | * @author Stefan 14 | */ 15 | public class ConstructorDeserializer implements XmlDeserializer{ 16 | 17 | 18 | private Constructor constructor; 19 | 20 | public ConstructorDeserializer(Constructor constructor) { 21 | this.constructor = constructor; 22 | } 23 | /** 24 | * Fills in attributes of the constructor object by reading attributes and sub-nodes of the node input element. 25 | * @param node is XML tree node whose attributes and sub-nodes represent attributes of the constructor object. 26 | */ 27 | @Override 28 | public void deserialize(Element node) { 29 | String visibility = node.attributeValue("visibility"); 30 | if (visibility != null) constructor.setVisibility(Visibility.valueOf(visibility.toUpperCase())); 31 | 32 | LinkedHashSet arguments = new LinkedHashSet<>(); 33 | Iterator argumentIterator = node.elementIterator("Argument"); 34 | while (argumentIterator != null && argumentIterator.hasNext()) { 35 | Element argumentElement = (Element) argumentIterator.next(); 36 | String argumentType = argumentElement.attributeValue("type"); 37 | String argumentName = argumentElement.attributeValue("name"); 38 | if (argumentType != null && argumentName != null) { 39 | MethodArgument methodArgument = new MethodArgument(argumentType, argumentName); 40 | arguments.add(methodArgument); 41 | } 42 | } 43 | constructor.setArguments(arguments); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/xmlSerialization/members/ConstructorSerializer.java: -------------------------------------------------------------------------------- 1 | package org.uml.xmlSerialization.members; 2 | 3 | import java.util.LinkedHashSet; 4 | import org.dom4j.Element; 5 | import org.uml.model.members.Constructor; 6 | import org.uml.model.members.MethodArgument; 7 | import org.uml.xmlSerialization.XmlSerializer; 8 | 9 | /** 10 | * 11 | * @author Stefan 12 | */ 13 | public class ConstructorSerializer implements XmlSerializer { 14 | 15 | private LinkedHashSet constructors; 16 | 17 | public ConstructorSerializer(LinkedHashSet constructors) { 18 | this.constructors = constructors; 19 | } 20 | 21 | /** 22 | * Converts constructors objects to nodes of an XML tree. 23 | * Each object from constructors is translated to a sub node of the node input parameter. 24 | * Each attribute of every constructor object from constructors is translated to an attribute of the corresponding XML node. 25 | * 26 | * @param node represents empty XML node in which to put nodes representing constructors. 27 | */ 28 | @Override 29 | public void serialize(Element node) { 30 | for (Constructor constructor : constructors) { 31 | Element constructorNode = node.addElement("Constructor"); 32 | if (constructor.getVisibility() != null) constructorNode.addAttribute("visibility", constructor.getVisibility().name().toLowerCase()); 33 | 34 | // Constructor name == class name 35 | // if (constructor.getName() != null) constructorNode.addAttribute("name", constructor.getName()); 36 | if (constructor.getArguments() != null) { 37 | for (MethodArgument argument : constructor.getArguments()) { 38 | constructorNode.addElement("Argument") 39 | .addAttribute("type", argument.getType()) 40 | .addAttribute("name", argument.getName()); 41 | } 42 | } 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/stmt/ContinueStmt.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 | * Copyright (C) 2011, 2013-2015 The JavaParser Team. 4 | * 5 | * This file is part of JavaParser. 6 | * 7 | * JavaParser is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * JavaParser is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with JavaParser. If not, see . 19 | */ 20 | 21 | package com.github.javaparser.ast.stmt; 22 | 23 | import com.github.javaparser.ast.visitor.GenericVisitor; 24 | import com.github.javaparser.ast.visitor.VoidVisitor; 25 | 26 | /** 27 | * @author Julio Vilmar Gesser 28 | */ 29 | public final class ContinueStmt extends Statement { 30 | 31 | private String id; 32 | 33 | public ContinueStmt() { 34 | } 35 | 36 | public ContinueStmt(final String id) { 37 | this.id = id; 38 | } 39 | 40 | public ContinueStmt(final int beginLine, final int beginColumn, final int endLine, final int endColumn, 41 | final String id) { 42 | super(beginLine, beginColumn, endLine, endColumn); 43 | this.id = id; 44 | } 45 | 46 | @Override public R accept(final GenericVisitor v, final A arg) { 47 | return v.visit(this, arg); 48 | } 49 | 50 | @Override public void accept(final VoidVisitor v, final A arg) { 51 | v.visit(this, arg); 52 | } 53 | 54 | public String getId() { 55 | return id; 56 | } 57 | 58 | public void setId(final String id) { 59 | this.id = id; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /JavaParser/src/com/github/javaparser/ast/comments/BlockComment.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007-2010 Júlio Vilmar Gesser. 3 | * Copyright (C) 2011, 2013-2015 The JavaParser Team. 4 | * 5 | * This file is part of JavaParser. 6 | * 7 | * JavaParser is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as published by 9 | * the Free Software Foundation, either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * JavaParser is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public License 18 | * along with JavaParser. If not, see . 19 | */ 20 | 21 | package com.github.javaparser.ast.comments; 22 | 23 | import com.github.javaparser.ast.visitor.GenericVisitor; 24 | import com.github.javaparser.ast.visitor.VoidVisitor; 25 | 26 | /** 27 | *

28 | * AST node that represent block comments. 29 | *

30 | * Block comments can has multi lines and are delimited by "/*" and 31 | * "*/". 32 | * 33 | * @author Julio Vilmar Gesser 34 | */ 35 | public final class BlockComment extends Comment { 36 | 37 | public BlockComment() { 38 | } 39 | 40 | public BlockComment(String content) { 41 | super(content); 42 | } 43 | 44 | public BlockComment(int beginLine, int beginColumn, int endLine, int endColumn, String content) { 45 | super(beginLine, beginColumn, endLine, endColumn, content); 46 | } 47 | 48 | @Override 49 | public R accept(GenericVisitor v, A arg) { 50 | return v.visit(this, arg); 51 | } 52 | 53 | @Override 54 | public
void accept(VoidVisitor v, A arg) { 55 | v.visit(this, arg); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /UMLReverseEngineering/src/org/uml/reveng/ReverseEngineerMultiFileAction.java: -------------------------------------------------------------------------------- 1 | package org.uml.reveng; 2 | 3 | import java.awt.event.ActionEvent; 4 | import java.awt.event.ActionListener; 5 | import java.io.File; 6 | import java.util.LinkedList; 7 | import java.util.List; 8 | import org.openide.loaders.DataObject; 9 | import org.openide.awt.ActionID; 10 | import org.openide.awt.ActionReference; 11 | import org.openide.awt.ActionRegistration; 12 | import org.openide.filesystems.FileUtil; 13 | import org.openide.util.NbBundle.Messages; 14 | import org.uml.model.ClassDiagram; 15 | 16 | @ActionID( 17 | category = "Source", 18 | id = "org.uml.reveng.ReverseEngineerMultiFileAction" 19 | ) 20 | @ActionRegistration( 21 | displayName = "#CTL_ReverseEngineerMultiFileAction" 22 | ) 23 | @ActionReference(path = "Loaders/text/x-java/Actions", position = 2550) 24 | @Messages("CTL_ReverseEngineerMultiFileAction=easyUML Generate Class Diagram") 25 | /** 26 | * Class that responds to Reverse Engineer command from multi Java file selection 27 | * 28 | * @author Boris Perović 29 | */ 30 | public final class ReverseEngineerMultiFileAction extends ReverseEngineerActionBase implements ActionListener { 31 | 32 | private final List context; 33 | 34 | public ReverseEngineerMultiFileAction(List context) { 35 | this.context = context; 36 | } 37 | 38 | @Override 39 | public void actionPerformed(ActionEvent ev) { 40 | List files = new LinkedList<>(); 41 | for (DataObject dataObject : context) { 42 | files.add(FileUtil.toFile(dataObject.getPrimaryFile())); 43 | } 44 | 45 | String diagramName; 46 | if(context.size() == 1) { 47 | diagramName = context.get(0).getName(); 48 | } else { 49 | diagramName = "Multi-file class diagram"; 50 | } 51 | ClassDiagram classDiagram = ReverseEngineer.createClassDiagramFromFiles(files, diagramName); 52 | 53 | openReverseEngineerDialog(classDiagram); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /UMLFileTypes/src/org/uml/filetype/cdg/renaming/MyClassDiagramRenameTable.java: -------------------------------------------------------------------------------- 1 | package org.uml.filetype.cdg.renaming; 2 | 3 | import java.beans.PropertyChangeEvent; 4 | import java.beans.PropertyChangeListener; 5 | import org.uml.model.ClassDiagram; 6 | import org.uml.model.components.ComponentBase; 7 | 8 | /** 9 | * 10 | * @author Boris Perović 11 | */ 12 | public class MyClassDiagramRenameTable implements PropertyChangeListener { 13 | 14 | MyComponentsRenameTable componentRenames; 15 | MyRelationsRenameTable relationRenames; 16 | 17 | public MyClassDiagramRenameTable(ClassDiagram classDiagram) { 18 | this.componentRenames = new MyComponentsRenameTable(this, classDiagram); 19 | this.relationRenames = new MyRelationsRenameTable(this, classDiagram); 20 | 21 | classDiagram.addPropertyChangeListener(this); 22 | } 23 | 24 | public MyComponentsRenameTable getComponentRenames() { 25 | return componentRenames; 26 | } 27 | 28 | public MyRelationsRenameTable getRelationRenames() { 29 | return relationRenames; 30 | } 31 | 32 | public final void updateClassDiagram(ClassDiagram classDiagram) { 33 | componentRenames.updateComponents(classDiagram); 34 | relationRenames.updateRelations(classDiagram); 35 | 36 | classDiagram.addPropertyChangeListener(this); 37 | } 38 | 39 | @Override 40 | public void propertyChange(PropertyChangeEvent evt) { 41 | String prop = evt.getPropertyName(); 42 | if (prop.equals("ADD_COMPONENT")) { 43 | ComponentBase component = (ComponentBase) evt.getNewValue(); 44 | componentRenames.addComponent(component); 45 | } else if (prop.equals("REMOVE_COMPONENT")) { 46 | ComponentBase component = (ComponentBase) evt.getNewValue(); 47 | componentRenames.removeComponent(component); 48 | } 49 | } 50 | 51 | public void clear() { 52 | componentRenames.clear(); 53 | relationRenames.clear(); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /UMLVisual/src/org/uml/visual/widgets/popups/InterfacePopupMenuProvider.java: -------------------------------------------------------------------------------- 1 | package org.uml.visual.widgets.popups; 2 | 3 | import java.awt.Point; 4 | import java.awt.event.ActionEvent; 5 | import java.awt.event.ActionListener; 6 | import javax.swing.JMenuItem; 7 | import javax.swing.JPopupMenu; 8 | import org.netbeans.api.visual.action.PopupMenuProvider; 9 | import org.netbeans.api.visual.widget.Widget; 10 | import org.uml.model.ClassDiagram; 11 | import org.uml.visual.widgets.components.InterfaceWidget; 12 | 13 | /** 14 | * 15 | * @author Jelena 16 | */ 17 | public class InterfacePopupMenuProvider implements PopupMenuProvider { 18 | 19 | private InterfaceWidget interfaceWidget; 20 | private JPopupMenu menu; 21 | private JMenuItem addMethod; 22 | private JMenuItem deleteInterface; 23 | 24 | public InterfacePopupMenuProvider(InterfaceWidget interfaceWidget) { 25 | this.interfaceWidget = interfaceWidget; 26 | menu = new JPopupMenu("Interface Menu"); 27 | 28 | (addMethod = new JMenuItem("Add Method")).addActionListener(addMethodListener); 29 | menu.add(addMethod); 30 | 31 | menu.addSeparator(); 32 | 33 | (deleteInterface = new JMenuItem("Delete Interface")).addActionListener(removeWidgetListener); 34 | menu.add(deleteInterface); 35 | } 36 | ActionListener addMethodListener = new ActionListener() { 37 | @Override 38 | public void actionPerformed(ActionEvent e) { 39 | interfaceWidget.addMethodWidget(); 40 | } 41 | }; 42 | 43 | ActionListener removeWidgetListener = new ActionListener() { 44 | @Override 45 | public void actionPerformed(ActionEvent e) { 46 | ClassDiagram classDiagram = interfaceWidget.getComponent().getParentDiagram(); 47 | classDiagram.removeComponentFromContainer(interfaceWidget.getComponent()); 48 | } 49 | }; 50 | 51 | @Override 52 | public JPopupMenu getPopupMenu(Widget widget, Point point) { 53 | return menu; 54 | } 55 | } 56 | --------------------------------------------------------------------------------