├── .mvn ├── maven.config └── extensions.xml ├── bundles ├── net.sourceforge.plantuml.lib │ ├── lib │ │ └── .gitignore │ ├── .settings │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── de.mvmsoft.checkclipse.prefs │ │ └── org.eclipse.jdt.core.prefs │ ├── build.properties │ ├── META-INF │ │ └── MANIFEST.MF │ ├── .classpath │ ├── README.md │ └── .project ├── no.hal.osgi.emf │ ├── plugin.properties │ ├── .settings │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.jdt.core.prefs │ ├── build.properties │ ├── .classpath │ ├── src │ │ ├── no │ │ │ └── hal │ │ │ │ └── osgi │ │ │ │ ├── emf │ │ │ │ └── util │ │ │ │ │ ├── Path.java │ │ │ │ │ ├── Segments.java │ │ │ │ │ └── QualifiedName.java │ │ │ │ ├── util │ │ │ │ └── OsgiResourceFactoryImpl.java │ │ │ │ ├── GenericAttributesContainer.java │ │ │ │ ├── Manifest.java │ │ │ │ ├── ExportedPackage.java │ │ │ │ └── BundlePackage.java │ │ └── org │ │ │ └── osgi │ │ │ └── scr │ │ │ └── util │ │ │ ├── ScrResourceImpl.java │ │ │ ├── ScrXMLProcessor.java │ │ │ └── ScrResourceFactoryImpl.java │ ├── META-INF │ │ └── MANIFEST.MF │ ├── manifest-grammar.txt │ ├── .project │ └── plugin.xml ├── net.sourceforge.plantuml.lib.elk │ ├── build.properties │ ├── lib │ │ └── elk-full.jar │ ├── README.md │ ├── META-INF │ │ └── MANIFEST.MF │ ├── .settings │ │ └── org.eclipse.jdt.core.prefs │ ├── .classpath │ └── .project ├── net.sourceforge.plantuml.eclipse │ ├── src │ │ └── net │ │ │ └── sourceforge │ │ │ └── plantuml │ │ │ ├── postprocessors │ │ │ ├── DiagramTextInjectionPostProcessor.properties │ │ │ ├── DiagramTextInjector.java │ │ │ └── DiagramTextAfterFirstLineInjector.java │ │ │ ├── util │ │ │ ├── DiagramIntentContext.java │ │ │ ├── DiagramTextPostProcessor.java │ │ │ ├── SimpleDiagramIntent.java │ │ │ ├── DiagramIntentProvider.java │ │ │ ├── DiagramIntent.java │ │ │ ├── ResourceInfo.java │ │ │ ├── BasicProperties.java │ │ │ └── DiagramImageData.java │ │ │ └── eclipse │ │ │ ├── DiagramIntentProviderInfo.java │ │ │ ├── DiagramTextProviderProcessor.java │ │ │ ├── utils │ │ │ ├── LinkData.java │ │ │ ├── ILinkOpener.java │ │ │ ├── WorkspaceDiagramIntentProviderContext.java │ │ │ ├── DiagramIntentProperty.java │ │ │ ├── DiagramTextIteratorProvider.java │ │ │ ├── DefaultLinkOpener.java │ │ │ ├── LocationDiagramIntentProviderContext.java │ │ │ ├── PlatformLinkOpener.java │ │ │ ├── EditorLinkOpener.java │ │ │ └── DiagramTextProvider2.java │ │ │ ├── views │ │ │ ├── DiagramViewStatusListener.java │ │ │ ├── actions │ │ │ │ ├── DiagramAction.java │ │ │ │ ├── DiagramImageAction.java │ │ │ │ ├── CopyAction.java │ │ │ │ ├── CopySourceAction.java │ │ │ │ └── SaveAction.java │ │ │ ├── DiagramImageControl.java │ │ │ └── DiagramSourceView.java │ │ │ └── DiagramIntentProviderRegistry.java │ ├── icons │ │ ├── link.gif │ │ ├── p5.gif │ │ ├── pin.png │ │ ├── Open16.gif │ │ ├── p5_old.gif │ │ ├── sample.gif │ │ ├── spawn.png │ │ └── Rotate16.gif │ ├── .settings │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.jdt.core.prefs │ ├── build.properties │ ├── .classpath │ ├── .project │ └── META-INF │ │ └── MANIFEST.MF ├── .settings │ └── org.eclipse.m2e.core.prefs ├── net.sourceforge.plantuml.ecore │ ├── src │ │ └── net │ │ │ └── sourceforge │ │ │ └── plantuml │ │ │ └── ecore │ │ │ └── EcoreClassDiagramIntent.properties │ ├── .settings │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.jdt.core.prefs │ ├── build.properties │ ├── .classpath │ ├── plugin.xml │ ├── META-INF │ │ └── MANIFEST.MF │ └── .project ├── net.sourceforge.plantuml.svg │ ├── libs │ │ └── jmustache-1.15.jar │ ├── .settings │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.jdt.core.prefs │ ├── icons │ │ └── external_browser.png │ ├── src │ │ └── net │ │ │ └── sourceforge │ │ │ └── plantuml │ │ │ └── eclipse │ │ │ └── svg │ │ │ ├── Svg2HtmlConverter.java │ │ │ ├── AbstractSvg2HtmlConverter.java │ │ │ ├── SimpleSvg2HtmlConverter.java │ │ │ └── Svg2InteractiveHtmlConverter.java │ ├── build.properties │ ├── .classpath │ ├── templates │ │ └── interactive-svg-template.mustache │ ├── META-INF │ │ └── MANIFEST.MF │ ├── .project │ └── plugin.xml ├── net.sourceforge.plantuml.jdt │ ├── .settings │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.jdt.core.prefs │ ├── build.properties │ ├── .classpath │ ├── .project │ ├── META-INF │ │ └── MANIFEST.MF │ └── src │ │ └── net │ │ └── sourceforge │ │ └── plantuml │ │ └── jdt │ │ ├── Activator.java │ │ └── ClassFileEditorDiagramTextProvider.java ├── net.sourceforge.plantuml.osgi │ ├── .settings │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.jdt.core.prefs │ ├── build.properties │ ├── .classpath │ ├── manifest-grammar.txt │ ├── META-INF │ │ └── MANIFEST.MF │ ├── plugin.xml │ ├── .project │ └── src │ │ └── net │ │ └── sourceforge │ │ └── plantuml │ │ └── osgi │ │ └── OsgiComponentDiagramIntentProvider.java ├── net.sourceforge.plantuml.text │ ├── build.properties │ ├── src │ │ └── net │ │ │ └── sourceforge │ │ │ └── plantuml │ │ │ └── text │ │ │ ├── AbstractClassDiagramIntent.properties │ │ │ └── TextDiagramIntent.java │ ├── .classpath │ ├── .settings │ │ └── org.eclipse.jdt.core.prefs │ ├── META-INF │ │ └── MANIFEST.MF │ └── .project ├── net.sourceforge.plantuml.uml2 │ ├── .settings │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.jdt.core.prefs │ ├── build.properties │ ├── .classpath │ ├── plugin.xml │ ├── META-INF │ │ └── MANIFEST.MF │ └── .project ├── net.sourceforge.plantuml.xcore │ ├── .settings │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.jdt.core.prefs │ ├── build.properties │ ├── .classpath │ ├── plugin.xml │ ├── META-INF │ │ └── MANIFEST.MF │ ├── .project │ └── src │ │ └── net │ │ └── sourceforge │ │ └── plantuml │ │ └── xcore │ │ └── XcoreDiagramIntentProvider.java ├── net.sourceforge.plantuml.lib.jlatexmath │ ├── build.properties │ ├── lib │ │ └── jlatexmath-1.0.7.jar │ ├── META-INF │ │ └── MANIFEST.MF │ ├── .settings │ │ └── org.eclipse.jdt.core.prefs │ ├── .classpath │ └── .project ├── net.sourceforge.plantuml.eclipse.imagecontrol │ ├── .settings │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── de.mvmsoft.checkclipse.prefs │ │ └── org.eclipse.jdt.core.prefs │ ├── icons │ │ ├── ZoomIn16.gif │ │ ├── ZoomFit16.gif │ │ ├── ZoomOut16.gif │ │ └── ZoomReset16.gif │ ├── build.properties │ ├── src │ │ └── net │ │ │ └── sourceforge │ │ │ └── plantuml │ │ │ └── eclipse │ │ │ └── imagecontrol │ │ │ ├── ILinkSupport.java │ │ │ └── jface │ │ │ └── actions │ │ │ ├── ControlAction.java │ │ │ ├── ZoomFitAction.java │ │ │ ├── ZoomResetAction.java │ │ │ └── ZoomAction.java │ ├── .classpath │ ├── META-INF │ │ └── MANIFEST.MF │ └── .project ├── .project └── pom.xml ├── tests ├── net.sourceforge.plantuml.text.tests │ ├── testFiles │ │ ├── diagram.md │ │ ├── diagram.md.plantuml │ │ ├── diagram.adoc │ │ ├── diagram.adoc.plantuml │ │ ├── multi.plantuml.1.plantuml │ │ ├── multi.plantuml.5.plantuml │ │ ├── multi.plantuml.2.plantuml │ │ ├── multi.plantuml.4.plantuml │ │ ├── multi.plantuml.3.plantuml │ │ ├── multi.plantuml.7.plantuml │ │ ├── multi.plantuml.6.plantuml │ │ └── multi.plantuml │ ├── src │ │ └── net │ │ │ └── sourceforge │ │ │ └── plantuml │ │ │ └── text │ │ │ └── test │ │ │ ├── diagram.md │ │ │ ├── single.puml │ │ │ ├── diagram.adoc │ │ │ ├── prefix-test.puml │ │ │ ├── jlatexmath-sample.puml │ │ │ ├── ClassWithDiagramInComment.java │ │ │ ├── elk-sample.puml │ │ │ ├── umlmmsaltumlgantt.plantuml │ │ │ ├── multi.puml │ │ │ ├── TextEditorDiagramTextProviderTest.java │ │ │ └── TextEditorDiagramTextProviderTest2.java │ ├── .settings │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── de.mvmsoft.checkclipse.prefs │ │ └── org.eclipse.jdt.core.prefs │ ├── build.properties │ ├── .classpath │ ├── plugin.xml │ ├── .project │ ├── META-INF │ │ └── MANIFEST.MF │ └── pom.xml ├── net.sourceforge.plantuml.ecore.tests │ ├── plantumlSettings │ │ ├── AbstractClassDiagramIntent.properties │ │ ├── DiagramTextInjectionPostProcessor.properties │ │ └── template.mustache │ ├── .settings │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── de.mvmsoft.checkclipse.prefs │ │ └── org.eclipse.jdt.core.prefs │ ├── build.properties │ ├── .classpath │ ├── model │ │ ├── sample.xmi │ │ ├── sample.xmi.plantuml │ │ ├── sample.ecore.plantuml │ │ └── sample.ecore │ ├── src │ │ └── net │ │ │ └── sourceforge │ │ │ └── plantuml │ │ │ └── ecore │ │ │ └── test │ │ │ └── EcoreProjectConfigurer.java │ ├── plugin.xml │ ├── META-INF │ │ └── MANIFEST.MF │ ├── .project │ └── pom.xml ├── net.sourceforge.plantuml.jdt.tests │ ├── plantumlSettings │ │ └── AbstractClassDiagramIntent.properties │ ├── .settings │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── de.mvmsoft.checkclipse.prefs │ │ └── org.eclipse.jdt.core.prefs │ ├── src │ │ └── net │ │ │ └── sourceforge │ │ │ └── plantuml │ │ │ └── jdt │ │ │ └── test │ │ │ ├── ClassWithoutMembers.java │ │ │ ├── ClassWithoutMembers.java.plantuml │ │ │ └── JavaProjectConfigurer.java │ ├── build.properties │ ├── .classpath │ ├── plugin.xml │ ├── .project │ ├── META-INF │ │ └── MANIFEST.MF │ └── pom.xml ├── .settings │ └── org.eclipse.m2e.core.prefs ├── no.hal.osgi.emf.tests │ ├── .settings │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── de.mvmsoft.checkclipse.prefs │ │ └── org.eclipse.jdt.core.prefs │ ├── build.properties │ ├── META-INF │ │ └── MANIFEST.MF │ ├── .classpath │ ├── src │ │ └── no │ │ │ └── hal │ │ │ └── osgi │ │ │ └── emf │ │ │ └── test │ │ │ ├── MANIFEST1.MF │ │ │ ├── no.hal.pg.runtime.engine.web.GameApp.xml │ │ │ └── no.hal.pg.runtime.engine.web.PlayerApp.xml │ ├── .project │ └── pom.xml ├── net.sourceforge.plantuml.eclipse.tests │ ├── .settings │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── de.mvmsoft.checkclipse.prefs │ │ └── org.eclipse.jdt.core.prefs │ ├── build.properties │ ├── plugin.xml │ ├── src │ │ └── net │ │ │ └── sourceforge │ │ │ └── plantuml │ │ │ └── eclipse │ │ │ └── test │ │ │ ├── util │ │ │ ├── ProjectConfigurer.java │ │ │ ├── SelectionIterable.java │ │ │ └── AbstractDiagramTextTest.java │ │ │ └── PlantUmlTest.java │ ├── .classpath │ ├── META-INF │ │ └── MANIFEST.MF │ └── .project ├── .project └── pom.xml ├── features ├── net.sourceforge.plantuml.lib.elk.feature │ ├── build.properties │ ├── .settings │ │ └── org.eclipse.m2e.core.prefs │ ├── .project │ └── feature.xml ├── .settings │ └── org.eclipse.m2e.core.prefs ├── net.sourceforge.plantuml.lib.jlatexmath.feature │ ├── build.properties │ ├── .settings │ │ └── org.eclipse.m2e.core.prefs │ ├── .project │ └── feature.xml ├── net.sourceforge.plantuml.lib.feature │ ├── build.properties │ ├── .settings │ │ └── org.eclipse.m2e.core.prefs │ ├── .project │ └── feature.xml ├── net.sourceforge.plantuml.feature │ ├── .settings │ │ └── org.eclipse.m2e.core.prefs │ ├── build.properties │ └── .project ├── net.sourceforge.plantuml.ecore.feature │ ├── .settings │ │ └── org.eclipse.m2e.core.prefs │ ├── build.properties │ ├── .project │ └── feature.xml ├── .project └── pom.xml ├── releng ├── .settings │ └── org.eclipse.m2e.core.prefs ├── net.sourceforge.plantuml.parent │ ├── .settings │ │ └── org.eclipse.m2e.core.prefs │ └── .project ├── net.sourceforge.plantuml.target │ ├── .settings │ │ └── org.eclipse.m2e.core.prefs │ ├── .project │ ├── eclipse-2023-12.target │ └── pom.xml ├── net.sourceforge.plantuml.aggregator │ ├── .settings │ │ └── org.eclipse.m2e.core.prefs │ └── .project ├── net.sourceforge.plantuml.composite │ ├── .settings │ │ └── org.eclipse.m2e.core.prefs │ ├── repository │ │ └── p2.index │ └── .project ├── net.sourceforge.plantuml.repository │ ├── .settings │ │ └── org.eclipse.m2e.core.prefs │ ├── .project │ └── category.xml ├── net.sourceforge.plantuml.composite.latest │ ├── .settings │ │ └── org.eclipse.m2e.core.prefs │ └── .project ├── net.sourceforge.plantuml.lib.aggregator │ ├── .settings │ │ └── org.eclipse.m2e.core.prefs │ ├── .project │ └── pom.xml ├── net.sourceforge.plantuml.lib.repository │ ├── .settings │ │ └── org.eclipse.m2e.core.prefs │ ├── .project │ ├── category.xml │ └── pom.xml ├── .project └── pom.xml ├── .gitignore └── .github └── workflows ├── plantuml.yml └── plantuml-snapshot.yml /.mvn/maven.config: -------------------------------------------------------------------------------- 1 | -Dtycho-version=3.0.5 -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.lib/lib/.gitignore: -------------------------------------------------------------------------------- 1 | *.jar 2 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/testFiles/diagram.md: -------------------------------------------------------------------------------- 1 | ```plantuml 2 | class DiagramMd 3 | ``` 4 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/testFiles/diagram.md.plantuml: -------------------------------------------------------------------------------- 1 | @startuml 2 | class DiagramMd 3 | @enduml 4 | -------------------------------------------------------------------------------- /bundles/no.hal.osgi.emf/plugin.properties: -------------------------------------------------------------------------------- 1 | # 2 | 3 | pluginName = EMF model for OSGi 4 | providerName = PlantUML Team 5 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/testFiles/diagram.adoc: -------------------------------------------------------------------------------- 1 | [plantuml] 2 | .... 3 | class DiagramAdoc 4 | .... 5 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/testFiles/diagram.adoc.plantuml: -------------------------------------------------------------------------------- 1 | @startuml 2 | class DiagramAdoc 3 | @enduml 4 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/testFiles/multi.plantuml.1.plantuml: -------------------------------------------------------------------------------- 1 | @startuml 2 | class "Bar" 3 | @enduml 4 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/testFiles/multi.plantuml.5.plantuml: -------------------------------------------------------------------------------- 1 | @startuml 2 | class "Foo" 3 | @enduml 4 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.lib.elk/build.properties: -------------------------------------------------------------------------------- 1 | bin.includes = META-INF/,\ 2 | lib/elk-full.jar 3 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.ecore.tests/plantumlSettings/AbstractClassDiagramIntent.properties: -------------------------------------------------------------------------------- 1 | classDiagram.isJavaStyle = true -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.jdt.tests/plantumlSettings/AbstractClassDiagramIntent.properties: -------------------------------------------------------------------------------- 1 | classDiagram.isJavaStyle = true -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/postprocessors/DiagramTextInjectionPostProcessor.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /features/net.sourceforge.plantuml.lib.elk.feature/build.properties: -------------------------------------------------------------------------------- 1 | bin.includes = feature.xml,\ 2 | feature.properties 3 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/src/net/sourceforge/plantuml/text/test/diagram.md: -------------------------------------------------------------------------------- 1 | ```plantuml 2 | class DiagramMd 3 | ``` 4 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/src/net/sourceforge/plantuml/text/test/single.puml: -------------------------------------------------------------------------------- 1 | // @startuml 2 | // class "Foo" 3 | // @enduml -------------------------------------------------------------------------------- /bundles/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /features/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /features/net.sourceforge.plantuml.lib.jlatexmath.feature/build.properties: -------------------------------------------------------------------------------- 1 | bin.includes = feature.xml,\ 2 | feature.properties 3 | -------------------------------------------------------------------------------- /releng/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /tests/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/src/net/sourceforge/plantuml/text/test/diagram.adoc: -------------------------------------------------------------------------------- 1 | [plantuml] 2 | .... 3 | class DiagramAdoc 4 | .... 5 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/icons/link.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hallvard/plantuml/HEAD/bundles/net.sourceforge.plantuml.eclipse/icons/link.gif -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/icons/p5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hallvard/plantuml/HEAD/bundles/net.sourceforge.plantuml.eclipse/icons/p5.gif -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/icons/pin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hallvard/plantuml/HEAD/bundles/net.sourceforge.plantuml.eclipse/icons/pin.png -------------------------------------------------------------------------------- /bundles/no.hal.osgi.emf/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/src/net/sourceforge/plantuml/text/test/prefix-test.puml: -------------------------------------------------------------------------------- 1 | // @startuml test 2 | // component test1 3 | // 4 | // @enduml -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/icons/Open16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hallvard/plantuml/HEAD/bundles/net.sourceforge.plantuml.eclipse/icons/Open16.gif -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/icons/p5_old.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hallvard/plantuml/HEAD/bundles/net.sourceforge.plantuml.eclipse/icons/p5_old.gif -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/icons/sample.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hallvard/plantuml/HEAD/bundles/net.sourceforge.plantuml.eclipse/icons/sample.gif -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/icons/spawn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hallvard/plantuml/HEAD/bundles/net.sourceforge.plantuml.eclipse/icons/spawn.png -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.ecore/src/net/sourceforge/plantuml/ecore/EcoreClassDiagramIntent.properties: -------------------------------------------------------------------------------- 1 | ecoreClassDiagram.useDataTypeInstanceClassName = false 2 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.lib.elk/lib/elk-full.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hallvard/plantuml/HEAD/bundles/net.sourceforge.plantuml.lib.elk/lib/elk-full.jar -------------------------------------------------------------------------------- /features/net.sourceforge.plantuml.lib.feature/build.properties: -------------------------------------------------------------------------------- 1 | bin.includes = feature.xml,\ 2 | feature.properties,\ 3 | epl-v20.html 4 | -------------------------------------------------------------------------------- /tests/no.hal.osgi.emf.tests/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/icons/Rotate16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hallvard/plantuml/HEAD/bundles/net.sourceforge.plantuml.eclipse/icons/Rotate16.gif -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.svg/libs/jmustache-1.15.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hallvard/plantuml/HEAD/bundles/net.sourceforge.plantuml.svg/libs/jmustache-1.15.jar -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/src/net/sourceforge/plantuml/text/test/jlatexmath-sample.puml: -------------------------------------------------------------------------------- 1 | @startuml 2 | :R(t) = e^(-lambda*t); 3 | @enduml 4 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/testFiles/multi.plantuml.2.plantuml: -------------------------------------------------------------------------------- 1 | @startmindmap 2 | * Debian 3 | ** Ubuntu 4 | *** Linux Mint 5 | *** Kubuntu 6 | @endmindmap 7 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.ecore/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.jdt/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.lib/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.osgi/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.svg/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.text/build.properties: -------------------------------------------------------------------------------- 1 | output.. = bin/ 2 | bin.includes = META-INF/,\ 3 | .,\ 4 | plugin.xml 5 | source.. = src/ 6 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.uml2/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.xcore/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.parent/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.target/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.lib.jlatexmath/build.properties: -------------------------------------------------------------------------------- 1 | bin.includes = META-INF/,\ 2 | lib/jlatexmath-1.0.7.jar,\ 3 | . 4 | source.. = js/ 5 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.svg/icons/external_browser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hallvard/plantuml/HEAD/bundles/net.sourceforge.plantuml.svg/icons/external_browser.png -------------------------------------------------------------------------------- /features/net.sourceforge.plantuml.feature/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.aggregator/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.composite/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.repository/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.eclipse.tests/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.ecore.tests/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.jdt.tests/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/testFiles/multi.plantuml.4.plantuml: -------------------------------------------------------------------------------- 1 | @startgantt 2 | [Prototype design] lasts 15 days 3 | [Test prototype] lasts 10 days 4 | @endgantt 5 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.jdt/build.properties: -------------------------------------------------------------------------------- 1 | output.. = target/classes/ 2 | bin.includes = META-INF/,\ 3 | .,\ 4 | plugin.xml 5 | source.. = src/ 6 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.lib.elk/README.md: -------------------------------------------------------------------------------- 1 | # Eclipse Layout Kernel (ELK) 2 | 3 | ## Source code and official releases 4 | 5 | See [ELK on GitHub](https://github.com/eclipse/elk) -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.text/src/net/sourceforge/plantuml/text/AbstractClassDiagramIntent.properties: -------------------------------------------------------------------------------- 1 | classDiagram.isJavaStyle = false 2 | classDiagram.nameTypeSeparator = : 3 | -------------------------------------------------------------------------------- /features/net.sourceforge.plantuml.ecore.feature/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /features/net.sourceforge.plantuml.lib.elk.feature/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /features/net.sourceforge.plantuml.lib.feature/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.composite.latest/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.lib.aggregator/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.lib.repository/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | bin/ 2 | target/ 3 | .idea 4 | **/.polyglot.build.properties 5 | **/.META-INF_MANIFEST.MF 6 | **/.polyglot.* 7 | feature.xml.takari_issue_192 8 | category.xml.takari_issue_192 9 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse.imagecontrol/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.osgi/build.properties: -------------------------------------------------------------------------------- 1 | bin.includes = .,\ 2 | META-INF/,\ 3 | plugin.xml 4 | source.. = src/ 5 | output.. = target/classes/ 6 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.uml2/build.properties: -------------------------------------------------------------------------------- 1 | output.. = target/classes/ 2 | bin.includes = META-INF/,\ 3 | .,\ 4 | plugin.xml 5 | source.. = src/ 6 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.xcore/build.properties: -------------------------------------------------------------------------------- 1 | output.. = target/classes/ 2 | bin.includes = META-INF/,\ 3 | .,\ 4 | plugin.xml 5 | source.. = src/ 6 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse.imagecontrol/icons/ZoomIn16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hallvard/plantuml/HEAD/bundles/net.sourceforge.plantuml.eclipse.imagecontrol/icons/ZoomIn16.gif -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.lib.jlatexmath/lib/jlatexmath-1.0.7.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hallvard/plantuml/HEAD/bundles/net.sourceforge.plantuml.lib.jlatexmath/lib/jlatexmath-1.0.7.jar -------------------------------------------------------------------------------- /features/net.sourceforge.plantuml.feature/build.properties: -------------------------------------------------------------------------------- 1 | bin.includes = feature.xml,\ 2 | epl-v10.html,\ 3 | feature.properties,\ 4 | license.html 5 | -------------------------------------------------------------------------------- /features/net.sourceforge.plantuml.lib.jlatexmath.feature/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.composite/repository/p2.index: -------------------------------------------------------------------------------- 1 | version = 1 2 | metadata.repository.factory.order=compositeContent.xml,\! 3 | artifact.repository.factory.order=compositeArtifacts.xml,\! -------------------------------------------------------------------------------- /tests/no.hal.osgi.emf.tests/.settings/de.mvmsoft.checkclipse.prefs: -------------------------------------------------------------------------------- 1 | #Wed Jul 29 16:09:06 CEST 2009 2 | enabled=false 3 | filenames.config=checkstyle-atos.xml 4 | additional_jars=lib/cs.jar| 5 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse.imagecontrol/icons/ZoomFit16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hallvard/plantuml/HEAD/bundles/net.sourceforge.plantuml.eclipse.imagecontrol/icons/ZoomFit16.gif -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse.imagecontrol/icons/ZoomOut16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hallvard/plantuml/HEAD/bundles/net.sourceforge.plantuml.eclipse.imagecontrol/icons/ZoomOut16.gif -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse.imagecontrol/icons/ZoomReset16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hallvard/plantuml/HEAD/bundles/net.sourceforge.plantuml.eclipse.imagecontrol/icons/ZoomReset16.gif -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/util/DiagramIntentContext.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.util; 2 | 3 | public abstract class DiagramIntentContext { 4 | } 5 | -------------------------------------------------------------------------------- /bundles/no.hal.osgi.emf/build.properties: -------------------------------------------------------------------------------- 1 | bin.includes = .,\ 2 | model/,\ 3 | META-INF/,\ 4 | plugin.xml 5 | source.. = src/ 6 | output.. = target/classes/ 7 | -------------------------------------------------------------------------------- /features/net.sourceforge.plantuml.ecore.feature/build.properties: -------------------------------------------------------------------------------- 1 | bin.includes = feature.xml,\ 2 | epl-v10.html,\ 3 | feature.properties,\ 4 | license.html 5 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.jdt.tests/src/net/sourceforge/plantuml/jdt/test/ClassWithoutMembers.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.jdt.test; 2 | 3 | public class ClassWithoutMembers { 4 | } 5 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/testFiles/multi.plantuml.3.plantuml: -------------------------------------------------------------------------------- 1 | @startsalt 2 | { 3 | Login | "MyName " 4 | Password | "**** " 5 | [Cancel] | [ OK ] 6 | } 7 | @endsalt 8 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.lib/.settings/de.mvmsoft.checkclipse.prefs: -------------------------------------------------------------------------------- 1 | #Wed Jul 29 16:09:06 CEST 2009 2 | enabled=false 3 | filenames.config=checkstyle-atos.xml 4 | additional_jars=lib/cs.jar| 5 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.ecore.tests/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = target/classes/ 3 | bin.includes = META-INF/,\ 4 | .,\ 5 | plugin.xml 6 | 7 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.ecore/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = target/classes/ 3 | bin.includes = META-INF/,\ 4 | plugin.xml,\ 5 | . 6 | source.. = src/ 7 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.eclipse.tests/.settings/de.mvmsoft.checkclipse.prefs: -------------------------------------------------------------------------------- 1 | #Wed Jul 29 16:09:06 CEST 2009 2 | enabled=false 3 | filenames.config=checkstyle-atos.xml 4 | additional_jars=lib/cs.jar| 5 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.ecore.tests/.settings/de.mvmsoft.checkclipse.prefs: -------------------------------------------------------------------------------- 1 | #Wed Jul 29 16:09:06 CEST 2009 2 | enabled=false 3 | filenames.config=checkstyle-atos.xml 4 | additional_jars=lib/cs.jar| 5 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.jdt.tests/.settings/de.mvmsoft.checkclipse.prefs: -------------------------------------------------------------------------------- 1 | #Wed Jul 29 16:09:06 CEST 2009 2 | enabled=false 3 | filenames.config=checkstyle-atos.xml 4 | additional_jars=lib/cs.jar| 5 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/.settings/de.mvmsoft.checkclipse.prefs: -------------------------------------------------------------------------------- 1 | #Wed Jul 29 16:09:06 CEST 2009 2 | enabled=false 3 | filenames.config=checkstyle-atos.xml 4 | additional_jars=lib/cs.jar| 5 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse.imagecontrol/.settings/de.mvmsoft.checkclipse.prefs: -------------------------------------------------------------------------------- 1 | #Wed Jul 29 16:09:06 CEST 2009 2 | enabled=false 3 | filenames.config=checkstyle-atos.xml 4 | additional_jars=lib/cs.jar| 5 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.ecore.tests/plantumlSettings/DiagramTextInjectionPostProcessor.properties: -------------------------------------------------------------------------------- 1 | ecore.path = ....ecore 2 | ecore = !pragma layout elk 3 | java.path = ....java 4 | java = skinparam monochrome true 5 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse.imagecontrol/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = target/classes/ 3 | bin.includes = META-INF/,\ 4 | .,\ 5 | icons/,\ 6 | epl-v10.html 7 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.jdt.tests/src/net/sourceforge/plantuml/jdt/test/ClassWithoutMembers.java.plantuml: -------------------------------------------------------------------------------- 1 | @startuml 2 | class ClassWithoutMembers [[java:net.sourceforge.plantuml.jdt.test.ClassWithoutMembers]] { 3 | } 4 | @enduml 5 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.svg/src/net/sourceforge/plantuml/eclipse/svg/Svg2HtmlConverter.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.svg; 2 | 3 | public interface Svg2HtmlConverter { 4 | 5 | public String convert2Html(final String svg); 6 | } 7 | -------------------------------------------------------------------------------- /.mvn/extensions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | org.eclipse.tycho 5 | tycho-build 6 | ${tycho-version} 7 | 8 | 9 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.eclipse.tests/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = target/classes/ 3 | bin.includes = META-INF/,\ 4 | .,\ 5 | build.properties,\ 6 | plugin.xml,\ 7 | schema/ 8 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/eclipse/DiagramIntentProviderInfo.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse; 2 | 3 | public class DiagramIntentProviderInfo { 4 | public String id; 5 | public String label; 6 | public int priority; 7 | } -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.jdt.tests/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = target/classes/ 3 | bin.includes = META-INF/,\ 4 | .,\ 5 | plugin.xml,\ 6 | src/net/sourceforge/plantuml/jdt/test/ClassWithoutMembers.java 7 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/build.properties: -------------------------------------------------------------------------------- 1 | output.. = target/classes/ 2 | bin.includes = plugin.xml,\ 3 | META-INF/,\ 4 | icons/,\ 5 | schema/,\ 6 | epl-v10.html,\ 7 | . 8 | source.. = src/ 9 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/eclipse/DiagramTextProviderProcessor.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse; 2 | 3 | public interface DiagramTextProviderProcessor { 4 | public void processDiagramIntentProviders(DiagramIntentProviderRegistry registry); 5 | } 6 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/util/DiagramTextPostProcessor.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.util; 2 | 3 | public interface DiagramTextPostProcessor { 4 | 5 | public String getDiagramText(String diagramText, AbstractDiagramIntent diagramIntent); 6 | } 7 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse.imagecontrol/src/net/sourceforge/plantuml/eclipse/imagecontrol/ILinkSupport.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.imagecontrol; 2 | 3 | public interface ILinkSupport { 4 | public Object getLink(int x, int y); 5 | public void openLink(Object link); 6 | } 7 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/eclipse/utils/LinkData.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.utils; 2 | 3 | import org.eclipse.swt.graphics.Rectangle; 4 | 5 | public class LinkData { 6 | 7 | public String href, title, altText; 8 | public Rectangle rect; 9 | } 10 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/util/SimpleDiagramIntent.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.util; 2 | 3 | public class SimpleDiagramIntent extends AbstractDiagramIntent { 4 | 5 | public SimpleDiagramIntent(final String diagramText) { 6 | super(diagramText); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.svg/build.properties: -------------------------------------------------------------------------------- 1 | output.. = target/classes/ 2 | bin.includes = plugin.xml,\ 3 | META-INF/,\ 4 | epl-v10.html,\ 5 | .,\ 6 | templates/,\ 7 | libs/,\ 8 | icons/ 9 | source.. = src/ 10 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/util/DiagramIntentProvider.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.util; 2 | 3 | import java.util.Collection; 4 | 5 | public interface DiagramIntentProvider { 6 | public Collection getDiagramInfos(DiagramIntentContext context); 7 | } 8 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.eclipse.tests/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.eclipse.tests/src/net/sourceforge/plantuml/eclipse/test/util/ProjectConfigurer.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.test.util; 2 | 3 | import org.eclipse.core.resources.IProject; 4 | 5 | public interface ProjectConfigurer { 6 | public void configureProject(IProject project) throws Exception; 7 | } 8 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/src/net/sourceforge/plantuml/text/test/ClassWithDiagramInComment.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.text.test; 2 | 3 | /* 4 | * @startuml 5 | * class ClassWithDiagramInComment { 6 | * int field 7 | * } 8 | * @enduml 9 | */ 10 | public class ClassWithDiagramInComment { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/eclipse/utils/ILinkOpener.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.utils; 2 | 3 | public interface ILinkOpener { 4 | public int NO_SUPPORT = -1, DEFAULT_SUPPORT = 0, CUSTOM_SUPPORT = 1; 5 | public int supportsLink(LinkData link); 6 | public void openLink(LinkData link); 7 | } 8 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = target/classes/ 3 | bin.includes = META-INF/,\ 4 | .,\ 5 | build.properties,\ 6 | src/net/sourceforge/plantuml/text/test/ClassWithDiagramInComment.java,\ 7 | testFiles/,\ 8 | plugin.xml 9 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/eclipse/views/DiagramViewStatusListener.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.views; 2 | 3 | public interface DiagramViewStatusListener { 4 | 5 | public void diagramViewStatusChanged(AbstractDiagramSourceView view, AbstractDiagramSourceView.ViewStatus status, Object diagram); 6 | } 7 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.lib.elk/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: ELK 4 | Bundle-SymbolicName: net.sourceforge.plantuml.lib.elk 5 | Bundle-Version: 0.7.1 6 | Fragment-Host: net.sourceforge.plantuml.lib;bundle-version="1.2024.5" 7 | Bundle-RequiredExecutionEnvironment: JavaSE-17 8 | Bundle-ClassPath: lib/elk-full.jar 9 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.eclipse.tests/src/net/sourceforge/plantuml/eclipse/test/util/SelectionIterable.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.test.util; 2 | 3 | import org.eclipse.jface.viewers.ISelection; 4 | import org.eclipse.ui.IWorkbenchPart; 5 | 6 | public interface SelectionIterable extends Iterable { 7 | public void init(IWorkbenchPart part, String spec); 8 | } 9 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/eclipse/DiagramIntentProviderRegistry.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse; 2 | 3 | import net.sourceforge.plantuml.util.DiagramIntentProvider; 4 | 5 | public interface DiagramIntentProviderRegistry { 6 | public void registerDiagramIntentProvider(final DiagramIntentProvider diagramTextProvider, final DiagramIntentProviderInfo info); 7 | } 8 | -------------------------------------------------------------------------------- /tests/no.hal.osgi.emf.tests/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = target/classes/ 3 | bin.includes = META-INF/,\ 4 | .,\ 5 | build.properties,\ 6 | src/no/hal/osgi/emf/test/MANIFEST1.MF,\ 7 | src/no/hal/osgi/emf/test/no.hal.pg.runtime.engine.web.GameApp.xml,\ 8 | src/no/hal/osgi/emf/test/no.hal.pg.runtime.engine.web.PlayerApp.xml 9 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.lib.jlatexmath/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: JLatexMath 4 | Bundle-SymbolicName: net.sourceforge.plantuml.lib.jlatexmath 5 | Bundle-Version: 1.0.7 6 | Fragment-Host: net.sourceforge.plantuml.lib;bundle-version="1.2024.5" 7 | Bundle-RequiredExecutionEnvironment: JavaSE-17 8 | Bundle-ClassPath: lib/jlatexmath-1.0.7.jar, 9 | . 10 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.eclipse.tests/src/net/sourceforge/plantuml/eclipse/test/util/AbstractDiagramTextTest.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.test.util; 2 | 3 | import org.junit.Assert; 4 | 5 | public class AbstractDiagramTextTest extends AbstractWorkbenchTest { 6 | 7 | public static void assertDiagramText(String expected, String actual) { 8 | Assert.assertEquals(expected, actual); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /bundles/no.hal.osgi.emf/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.text/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /bundles/no.hal.osgi.emf/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=1.8 8 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.ecore/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.jdt/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.jdt/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=1.8 8 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.osgi/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.uml2/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.xcore/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.lib.elk/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=1.8 8 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.text/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=1.8 8 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.uml2/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=1.8 8 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.xcore/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=1.8 8 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/eclipse/utils/WorkspaceDiagramIntentProviderContext.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.utils; 2 | 3 | import org.eclipse.core.runtime.IPath; 4 | 5 | public class WorkspaceDiagramIntentProviderContext extends LocationDiagramIntentProviderContext { 6 | 7 | public WorkspaceDiagramIntentProviderContext(final IPath path) { 8 | setWorkspaceLocation(path); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.eclipse.tests/src/net/sourceforge/plantuml/eclipse/test/PlantUmlTest.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.test; 2 | 3 | import org.junit.Test; 4 | 5 | import net.sourceforge.plantuml.eclipse.test.util.AbstractDiagramTextTest; 6 | 7 | public class PlantUmlTest extends AbstractDiagramTextTest { 8 | 9 | @Test 10 | public void testPlantUmlView() throws Exception { 11 | openPlantUMLView(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse.imagecontrol/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.lib.jlatexmath/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=1.8 8 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.lib.elk/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/testFiles/multi.plantuml.7.plantuml: -------------------------------------------------------------------------------- 1 | @startyaml 2 | doe: "a deer, a female deer" 3 | ray: "a drop of golden sun" 4 | pi: 3.14159 5 | xmas: true 6 | french-hens: 3 7 | calling-birds: 8 | - huey 9 | - dewey 10 | - louie 11 | - fred 12 | xmas-fifth-day: 13 | calling-birds: four 14 | french-hens: 3 15 | golden-rings: 5 16 | partridges: 17 | count: 1 18 | location: "a pear tree" 19 | turtle-doves: two 20 | @endyaml -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse.imagecontrol/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=1.8 8 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.lib/build.properties: -------------------------------------------------------------------------------- 1 | bin.includes = META-INF/,\ 2 | epl-v20.html,\ 3 | lib/,\ 4 | lib/plantuml-epl-1.2024.5.jar 5 | bin.excludes = lib/plantuml-epl-1.2024.5-sources.jar,\ 6 | lib/.DS_Store 7 | src.includes = README.md,\ 8 | epl-v20.html,\ 9 | lib/ 10 | src.excludes = lib/plantuml-epl-1.2024.5.jar,\ 11 | lib/.DS_Store 12 | -------------------------------------------------------------------------------- /tests/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.tests 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.m2e.core.maven2Builder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.m2e.core.maven2Nature 16 | 17 | 18 | -------------------------------------------------------------------------------- /bundles/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.bundles 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.m2e.core.maven2Builder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.m2e.core.maven2Nature 16 | 17 | 18 | -------------------------------------------------------------------------------- /releng/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.releng 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.m2e.core.maven2Builder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.m2e.core.maven2Nature 16 | 17 | 18 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/postprocessors/DiagramTextInjector.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.postprocessors; 2 | 3 | public abstract class DiagramTextInjector { 4 | 5 | private final String text; 6 | 7 | public String getText() { 8 | return text; 9 | } 10 | 11 | public DiagramTextInjector(final String text) { 12 | this.text = text; 13 | } 14 | 15 | public abstract String getDiagramText(final String diagramText); 16 | } 17 | -------------------------------------------------------------------------------- /features/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.features 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.m2e.core.maven2Builder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.m2e.core.maven2Nature 16 | 17 | 18 | -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.target/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.target 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.m2e.core.maven2Builder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.m2e.core.maven2Nature 16 | 17 | 18 | -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.composite/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.composite 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.m2e.core.maven2Builder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.m2e.core.maven2Nature 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/no.hal.osgi.emf.tests/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: OSGi EMF tests 4 | Bundle-SymbolicName: no.hal.osgi.emf.tests 5 | Bundle-Version: 1.1.33.qualifier 6 | Bundle-Vendor: PlantUML Team 7 | Require-Bundle: org.junit, 8 | org.eclipse.emf.ecore, 9 | org.eclipse.emf.ecore.xmi, 10 | org.eclipse.emf.common, 11 | no.hal.osgi.emf;bundle-version="1.1.33.qualifier" 12 | Bundle-ClassPath: . 13 | Bundle-RequiredExecutionEnvironment: JavaSE-17 14 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.lib.jlatexmath/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.svg/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.aggregator/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.aggregator 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.m2e.core.maven2Builder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.m2e.core.maven2Nature 16 | 17 | 18 | -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.repository/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.repository 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.m2e.core.maven2Builder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.m2e.core.maven2Nature 16 | 17 | 18 | -------------------------------------------------------------------------------- /bundles/no.hal.osgi.emf/src/no/hal/osgi/emf/util/Path.java: -------------------------------------------------------------------------------- 1 | package no.hal.osgi.emf.util; 2 | 3 | import java.util.regex.Pattern; 4 | 5 | public class Path extends Segments { 6 | 7 | public Path(String... segments) { 8 | super(segments); 9 | } 10 | 11 | private final static String SEPARATOR = "/"; 12 | 13 | @Override 14 | protected String getSeparator() { 15 | return SEPARATOR; 16 | } 17 | 18 | public static Path valueOf(String s) { 19 | return new Path(s.split(Pattern.quote(SEPARATOR))); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.lib.aggregator/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.lib.aggregator 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.m2e.core.maven2Builder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.m2e.core.maven2Nature 16 | 17 | 18 | -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.lib.repository/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.lib.repository 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.m2e.core.maven2Builder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.m2e.core.maven2Nature 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/src/net/sourceforge/plantuml/text/test/elk-sample.puml: -------------------------------------------------------------------------------- 1 | @startuml 2 | !pragma layout elk 3 | 4 | package image { 5 | package color { 6 | class red 7 | class green 8 | 9 | red->green : red to green 10 | } 11 | package size { 12 | class big 13 | class small 14 | } 15 | class image1 16 | class image2 17 | 18 | size -> color : link between packages 19 | } 20 | 21 | class foo 22 | class bar 23 | 24 | foo -> bar : foo to bar 25 | image1 "1" -> "*" bar 26 | 27 | @enduml -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.composite.latest/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.composite.latest 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.m2e.core.maven2Builder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.m2e.core.maven2Nature 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/src/net/sourceforge/plantuml/text/test/umlmmsaltumlgantt.plantuml: -------------------------------------------------------------------------------- 1 | @startuml 2 | class "Bar" 3 | @enduml 4 | 5 | @startmindmap 6 | * Debian 7 | ** Ubuntu 8 | *** Linux Mint 9 | *** Kubuntu 10 | @endmindmap 11 | 12 | @startsalt 13 | { 14 | Login | "MyName " 15 | Password | "**** " 16 | [Cancel] | [ OK ] 17 | } 18 | @endsalt 19 | 20 | @startgantt 21 | [Prototype design] lasts 15 days 22 | [Test prototype] lasts 10 days 23 | @endgantt 24 | 25 | @startuml 26 | class "Foo" 27 | @enduml 28 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.lib/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: Plantuml library plug-in 4 | Bundle-SymbolicName: net.sourceforge.plantuml.lib 5 | Bundle-Version: 1.2024.5.qualifier 6 | Bundle-Vendor: PlantUML Team 7 | Bundle-RequiredExecutionEnvironment: JavaSE-17 8 | Bundle-ActivationPolicy: lazy 9 | Export-Package: net.sourceforge.plantuml, 10 | net.sourceforge.plantuml.core, 11 | net.sourceforge.plantuml.security 12 | Bundle-ClassPath: lib/plantuml-epl-1.2024.5.jar 13 | -------------------------------------------------------------------------------- /tests/no.hal.osgi.emf.tests/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/eclipse/utils/DiagramIntentProperty.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.utils; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | @Target({ElementType.METHOD, ElementType.FIELD}) 9 | @Retention(RetentionPolicy.RUNTIME) 10 | public @interface DiagramIntentProperty { 11 | String name(); 12 | Class type() default String.class; 13 | } 14 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.jdt.tests/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.eclipse.tests/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.ecore.tests/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.ecore.tests/model/sample.xmi: -------------------------------------------------------------------------------- 1 | 2 | 8 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.xcore/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.uml2/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.ecore/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/testFiles/multi.plantuml.6.plantuml: -------------------------------------------------------------------------------- 1 | @startjson 2 | { 3 | "firstName": "John", 4 | "lastName": "Smith", 5 | "isAlive": true, 6 | "age": 27, 7 | "address": { 8 | "streetAddress": "21 2nd Street", 9 | "city": "New York", 10 | "state": "NY", 11 | "postalCode": "10021-3100" 12 | }, 13 | "phoneNumbers": [ 14 | { 15 | "type": "home", 16 | "number": "212 555-1234" 17 | }, 18 | { 19 | "type": "office", 20 | "number": "646 555-4567" 21 | } 22 | ], 23 | "children": [], 24 | "spouse": null 25 | } 26 | @endjson -------------------------------------------------------------------------------- /tests/no.hal.osgi.emf.tests/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.compliance=17 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 9 | org.eclipse.jdt.core.compiler.release=enabled 10 | org.eclipse.jdt.core.compiler.source=17 11 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.lib/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.lib/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.compliance=17 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 9 | org.eclipse.jdt.core.compiler.release=enabled 10 | org.eclipse.jdt.core.compiler.source=17 11 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.ecore.tests/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.compliance=17 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 9 | org.eclipse.jdt.core.compiler.release=enabled 10 | org.eclipse.jdt.core.compiler.source=17 11 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.ecore.tests/src/net/sourceforge/plantuml/ecore/test/EcoreProjectConfigurer.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.ecore.test; 2 | 3 | import java.lang.reflect.InvocationTargetException; 4 | 5 | import org.eclipse.core.resources.IProject; 6 | 7 | import net.sourceforge.plantuml.eclipse.test.util.ProjectConfigurer; 8 | 9 | public class EcoreProjectConfigurer implements ProjectConfigurer { 10 | 11 | // private final WorkspaceHelper workspaceHelper = new WorkspaceHelper(); 12 | 13 | @Override 14 | public void configureProject(final IProject project) throws InvocationTargetException, InterruptedException { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.jdt.tests/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.compliance=17 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 9 | org.eclipse.jdt.core.compiler.release=enabled 10 | org.eclipse.jdt.core.compiler.source=17 11 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.compliance=17 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 9 | org.eclipse.jdt.core.compiler.release=enabled 10 | org.eclipse.jdt.core.compiler.source=17 11 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.eclipse.tests/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.compliance=17 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 9 | org.eclipse.jdt.core.compiler.release=enabled 10 | org.eclipse.jdt.core.compiler.source=17 11 | -------------------------------------------------------------------------------- /tests/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | net.sourceforge.plantuml.tests 5 | pom 6 | 7 | 8 | net.sourceforge.plantuml 9 | net.sourceforge.plantuml.parent 10 | ${releaseVersion}${qualifier} 11 | ../releng/net.sourceforge.plantuml.parent 12 | 13 | 14 | -------------------------------------------------------------------------------- /releng/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | net.sourceforge.plantuml.releng 5 | pom 6 | 7 | 8 | net.sourceforge.plantuml 9 | net.sourceforge.plantuml.parent 10 | ${releaseVersion}${qualifier} 11 | ../releng/net.sourceforge.plantuml.parent 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /bundles/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | net.sourceforge.plantuml.bundles 5 | pom 6 | 7 | 8 | net.sourceforge.plantuml 9 | net.sourceforge.plantuml.parent 10 | ${releaseVersion}${qualifier} 11 | ../releng/net.sourceforge.plantuml.parent 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /features/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | net.sourceforge.plantuml.features 5 | pom 6 | 7 | 8 | net.sourceforge.plantuml 9 | net.sourceforge.plantuml.parent 10 | ${releaseVersion}${qualifier} 11 | ../releng/net.sourceforge.plantuml.parent 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse.imagecontrol/src/net/sourceforge/plantuml/eclipse/imagecontrol/jface/actions/ControlAction.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.imagecontrol.jface.actions; 2 | 3 | import java.util.function.Supplier; 4 | 5 | import org.eclipse.jface.action.Action; 6 | import org.eclipse.swt.widgets.Control; 7 | 8 | public abstract class ControlAction extends Action { 9 | 10 | private final Supplier controlSupplier; 11 | 12 | public ControlAction(final Supplier controlSupplier) { 13 | this.controlSupplier = controlSupplier; 14 | } 15 | 16 | public C getControl() { 17 | return controlSupplier.get(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /features/net.sourceforge.plantuml.feature/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.feature 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.pde.FeatureBuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.m2e.core.maven2Nature 21 | org.eclipse.pde.FeatureNature 22 | 23 | 24 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/util/DiagramIntent.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.util; 2 | 3 | public interface DiagramIntent { 4 | /** 5 | * Returns the label to show for this intent, 6 | * without necessarily having computed the diagram text. 7 | * @return the label to show for this intent 8 | */ 9 | public String getLabel(); 10 | 11 | /** 12 | * Computes and returns the diagram text. 13 | * @return the diagram text 14 | */ 15 | public String getDiagramText(); 16 | 17 | /** 18 | * Returns the priority, 19 | * to select the appropriate intent. 20 | * @return the intent's priority 21 | */ 22 | public int getPriority(); 23 | } 24 | -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.parent/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.parent 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.m2e.core.maven2Builder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.m2e.core.maven2Nature 16 | 17 | 18 | 19 | README.md 20 | 1 21 | PARENT-2-PARENT_LOC/README.md 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /features/net.sourceforge.plantuml.lib.feature/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.lib.feature 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.pde.FeatureBuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.m2e.core.maven2Nature 21 | org.eclipse.pde.FeatureNature 22 | 23 | 24 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/postprocessors/DiagramTextAfterFirstLineInjector.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.postprocessors; 2 | 3 | public class DiagramTextAfterFirstLineInjector extends DiagramTextInjector { 4 | 5 | public DiagramTextAfterFirstLineInjector(final String text) { 6 | super(text); 7 | } 8 | 9 | @Override 10 | public String getDiagramText(final String diagramText) { 11 | final int pos = diagramText.indexOf('\n'); 12 | if (pos < 0) { 13 | return null; 14 | } 15 | final String prefix = diagramText.substring(0, pos + 1); 16 | final String suffix = diagramText.substring(pos); 17 | return prefix + getText() + suffix; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /features/net.sourceforge.plantuml.ecore.feature/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.ecore.feature 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.pde.FeatureBuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.m2e.core.maven2Nature 21 | org.eclipse.pde.FeatureNature 22 | 23 | 24 | -------------------------------------------------------------------------------- /features/net.sourceforge.plantuml.lib.feature/feature.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | %description 10 | 11 | 12 | 13 | [Enter Copyright Description here.] 14 | 15 | 16 | 17 | %license 18 | 19 | 20 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /features/net.sourceforge.plantuml.lib.elk.feature/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.lib.elk.feature 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.pde.FeatureBuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.m2e.core.maven2Nature 21 | org.eclipse.pde.FeatureNature 22 | 23 | 24 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.uml2/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: UML2 PlantUML mapping 4 | Bundle-SymbolicName: net.sourceforge.plantuml.uml2; singleton:=true 5 | Bundle-Version: 1.1.28.qualifier 6 | Bundle-RequiredExecutionEnvironment: JavaSE-11 7 | Export-Package: net.sourceforge.plantuml.uml2 8 | Import-Package: net.sourceforge.plantuml.eclipse.utils, 9 | net.sourceforge.plantuml.ecore, 10 | net.sourceforge.plantuml.text, 11 | net.sourceforge.plantuml.uml2, 12 | org.eclipse.emf.common.util, 13 | org.eclipse.emf.ecore, 14 | org.eclipse.emf.ecore.util, 15 | org.eclipse.jface.viewers, 16 | org.eclipse.ui, 17 | org.eclipse.uml2.uml 18 | Bundle-ClassPath: . 19 | -------------------------------------------------------------------------------- /features/net.sourceforge.plantuml.lib.jlatexmath.feature/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.lib.jlatexmath.feature 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.pde.FeatureBuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.m2e.core.maven2Nature 21 | org.eclipse.pde.FeatureNature 22 | 23 | 24 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.svg/src/net/sourceforge/plantuml/eclipse/svg/AbstractSvg2HtmlConverter.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.svg; 2 | 3 | public abstract class AbstractSvg2HtmlConverter implements Svg2HtmlConverter { 4 | 5 | protected AbstractSvg2HtmlConverter() { 6 | } 7 | 8 | protected final String idAttrPrefix = "") + 2); 13 | } 14 | final int pos = svg.indexOf(idAttrPrefix); 15 | if (pos >= 0) { 16 | svg = svg.substring(0, pos) + idAttrPrefix + idAttr + svg.substring(pos + idAttrPrefix.length()); 17 | } 18 | return svg; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.osgi/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate 4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 6 | org.eclipse.jdt.core.compiler.compliance=1.8 7 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 8 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 9 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 10 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.source=1.8 13 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.ecore/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate 4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 6 | org.eclipse.jdt.core.compiler.compliance=1.8 7 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 8 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 9 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 10 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.source=1.8 13 | -------------------------------------------------------------------------------- /.github/workflows/plantuml.yml: -------------------------------------------------------------------------------- 1 | name: plantuml CI 2 | 3 | on: 4 | push: 5 | branches: 6 | - master 7 | 8 | jobs: 9 | build: 10 | runs-on: ubuntu-latest 11 | 12 | steps: 13 | - uses: actions/checkout@v2 14 | - name: Set up JDK 17 15 | uses: actions/setup-java@v2 16 | with: 17 | java-version: '17' 18 | distribution: 'adopt' 19 | - name: Cache maven packages 20 | uses: actions/cache@v2 21 | with: 22 | path: ~/.m2 23 | key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} 24 | restore-keys: ${{ runner.os }}-m2 25 | - name: Verify with maven 26 | run: mvn --batch-mode --update-snapshots verify -f releng/net.sourceforge.plantuml.aggregator/pom.xml 27 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse.imagecontrol/src/net/sourceforge/plantuml/eclipse/imagecontrol/jface/actions/ZoomFitAction.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.imagecontrol.jface.actions; 2 | 3 | import java.util.function.Supplier; 4 | 5 | import org.eclipse.jface.resource.ImageDescriptor; 6 | 7 | import net.sourceforge.plantuml.eclipse.imagecontrol.ImageControl; 8 | 9 | public class ZoomFitAction extends ControlAction { 10 | 11 | public ZoomFitAction(final Supplier imageControlSupplier) { 12 | super(imageControlSupplier); 13 | setImageDescriptor(ImageDescriptor.createFromFile(ControlAction.class, "/icons/ZoomFit16.gif")); 14 | } 15 | 16 | @Override 17 | public void run() { 18 | getControl().fitZoom(); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /bundles/no.hal.osgi.emf/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: %pluginName 4 | Bundle-SymbolicName: no.hal.osgi.emf;singleton:=true 5 | Automatic-Module-Name: no.hal.osgi.emf 6 | Bundle-Version: 1.1.33.qualifier 7 | Bundle-ClassPath: . 8 | Bundle-Vendor: %providerName 9 | Bundle-Localization: plugin 10 | Bundle-RequiredExecutionEnvironment: JavaSE-17 11 | Export-Package: no.hal.osgi, 12 | no.hal.osgi.emf.util, 13 | no.hal.osgi.impl, 14 | no.hal.osgi.util, 15 | org.osgi.scr, 16 | org.osgi.scr.impl, 17 | org.osgi.scr.util 18 | Require-Bundle: org.eclipse.core.runtime;resolution:=optional, 19 | org.eclipse.emf.ecore;visibility:=reexport, 20 | org.eclipse.emf.ecore.xmi;visibility:=reexport 21 | Bundle-ActivationPolicy: lazy 22 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.ecore.tests/plantumlSettings/template.mustache: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | {{{svgSource}}} 13 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.jdt.tests/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 11 | 12 | 13 | 14 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate 4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 6 | org.eclipse.jdt.core.compiler.compliance=1.8 7 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 8 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 9 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 10 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.source=1.8 13 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/eclipse/utils/DiagramTextIteratorProvider.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.utils; 2 | 3 | import java.util.Iterator; 4 | 5 | import org.eclipse.jface.viewers.ISelection; 6 | import org.eclipse.ui.IEditorPart; 7 | 8 | /** 9 | * Used for generating editor selections, from editor contents 10 | * @author hal 11 | * 12 | */ 13 | public interface DiagramTextIteratorProvider extends DiagramTextProvider { 14 | 15 | /** 16 | * Computes an iterator of editor selections suitable for 17 | * getDiagramText(IEditorPart, ISelection) 18 | * @param editorPart 19 | * @return an iterator of editor selections 20 | */ 21 | public Iterator getDiagramText(final IEditorPart editorPart); 22 | } 23 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.svg/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate 4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 6 | org.eclipse.jdt.core.compiler.compliance=1.8 7 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 8 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 9 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 10 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.source=1.8 13 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.svg/templates/interactive-svg-template.mustache: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | {{{svgSource}}} 13 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /bundles/no.hal.osgi.emf/src/org/osgi/scr/util/ScrResourceImpl.java: -------------------------------------------------------------------------------- 1 | /** 2 | */ 3 | package org.osgi.scr.util; 4 | 5 | import org.eclipse.emf.common.util.URI; 6 | 7 | import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; 8 | 9 | /** 10 | * 11 | * The Resource associated with the package. 12 | * 13 | * @see org.osgi.scr.util.ScrResourceFactoryImpl 14 | * @generated 15 | */ 16 | public class ScrResourceImpl extends XMLResourceImpl { 17 | /** 18 | * Creates an instance of the resource. 19 | * 20 | * 21 | * @param uri the URI of the new resource. 22 | * @generated 23 | */ 24 | public ScrResourceImpl(URI uri) { 25 | super(uri); 26 | } 27 | 28 | } //ScrResourceImpl 29 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse.imagecontrol/src/net/sourceforge/plantuml/eclipse/imagecontrol/jface/actions/ZoomResetAction.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.imagecontrol.jface.actions; 2 | 3 | import java.util.function.Supplier; 4 | 5 | import org.eclipse.jface.resource.ImageDescriptor; 6 | 7 | import net.sourceforge.plantuml.eclipse.imagecontrol.ImageControl; 8 | 9 | public class ZoomResetAction extends ControlAction { 10 | 11 | public ZoomResetAction(final Supplier imageControlSupplier) { 12 | super(imageControlSupplier); 13 | setImageDescriptor(ImageDescriptor.createFromFile(ControlAction.class, "/icons/ZoomReset16.gif")); 14 | } 15 | 16 | @Override 17 | public void run() { 18 | getControl().resetZoom(); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/eclipse/views/actions/DiagramAction.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.views.actions; 2 | 3 | import java.util.function.Supplier; 4 | 5 | import org.eclipse.jface.action.Action; 6 | 7 | public abstract class DiagramAction extends Action { 8 | 9 | protected final Supplier diagramDataSupplier; 10 | protected final C context; 11 | 12 | public DiagramAction(final Supplier diagramDataSupplier, final C context) { 13 | this.diagramDataSupplier = diagramDataSupplier; 14 | this.context = context; 15 | } 16 | 17 | public C getContext() { 18 | return context; 19 | } 20 | 21 | protected D getDiagramData() { 22 | return diagramDataSupplier.get(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /bundles/no.hal.osgi.emf/manifest-grammar.txt: -------------------------------------------------------------------------------- 1 | http://docs.oracle.com/javase/6/docs/technotes/guides/jar/jar.html#JAR%20Manifest 2 | 3 | Manifest Specification: 4 | manifest-file: main-section newline *individual-section 5 | main-section: version-info newline *main-attribute 6 | version-info: Manifest-Version : version-number 7 | version-number : digit+{.digit+}* 8 | main-attribute: (any legitimate main attribute) newline 9 | individual-section: Name : value newline *perentry-attribute 10 | perentry-attribute: (any legitimate perentry attribute) newline 11 | newline : CR LF | LF | CR (not followed by LF) 12 | digit: {0-9} -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.osgi/manifest-grammar.txt: -------------------------------------------------------------------------------- 1 | http://docs.oracle.com/javase/6/docs/technotes/guides/jar/jar.html#JAR%20Manifest 2 | 3 | Manifest Specification: 4 | manifest-file: main-section newline *individual-section 5 | main-section: version-info newline *main-attribute 6 | version-info: Manifest-Version : version-number 7 | version-number : digit+{.digit+}* 8 | main-attribute: (any legitimate main attribute) newline 9 | individual-section: Name : value newline *perentry-attribute 10 | perentry-attribute: (any legitimate perentry attribute) newline 11 | newline : CR LF | LF | CR (not followed by LF) 12 | digit: {0-9} -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.osgi/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: OSGi Manifest support 4 | Bundle-SymbolicName: net.sourceforge.plantuml.osgi;singleton:=true 5 | Bundle-Version: 1.1.33.qualifier 6 | Bundle-ClassPath: . 7 | Bundle-RequiredExecutionEnvironment: JavaSE-17 8 | Require-Bundle: net.sourceforge.plantuml.eclipse;bundle-version="1.1.33.qualifier", 9 | no.hal.osgi.emf, 10 | org.eclipse.core.runtime, 11 | org.eclipse.emf.ecore;visibility:=reexport, 12 | org.eclipse.emf.ecore.xmi;visibility:=reexport, 13 | net.sourceforge.plantuml.text;bundle-version="1.1.33.qualifier", 14 | org.eclipse.ui;bundle-version="3.106.1", 15 | org.eclipse.jface;bundle-version="3.10.2", 16 | org.eclipse.pde.ui;bundle-version="3.8.100" 17 | Bundle-ActivationPolicy: lazy 18 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.ecore.tests/model/sample.xmi.plantuml: -------------------------------------------------------------------------------- 1 | @startuml 2 | object "~#1: Library" as o1 { 3 | } 4 | url of o1 is [[marker:/org.eclipse.emf.ecore.diagnostic/ecoreeditortest/model/sample.xmi?uri=platform:/resource/ecoreeditortest/model/sample.xmi%23/]] 5 | object "~#2: Book" as o2 { 6 | name = "Sult" 7 | kind = Novel 8 | } 9 | url of o2 is [[marker:/org.eclipse.emf.ecore.diagnostic/ecoreeditortest/model/sample.xmi?uri=platform:/resource/ecoreeditortest/model/sample.xmi%23//@books.0]] 10 | object "~#3: Author" as o3 { 11 | name = "Knut Hamsun" 12 | } 13 | url of o3 is [[marker:/org.eclipse.emf.ecore.diagnostic/ecoreeditortest/model/sample.xmi?uri=platform:/resource/ecoreeditortest/model/sample.xmi%23//@authors.0]] 14 | o1 *-- "books" o2 15 | o1 *-- "authors" o3 16 | o2 --> "author" o3 17 | @enduml 18 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.ecore/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: Ecore PlantUML mapping 4 | Bundle-SymbolicName: net.sourceforge.plantuml.ecore; singleton:=true 5 | Bundle-Version: 1.1.33.qualifier 6 | Bundle-RequiredExecutionEnvironment: JavaSE-17 7 | Export-Package: net.sourceforge.plantuml.ecore 8 | Import-Package: net.sourceforge.plantuml.eclipse.utils, 9 | net.sourceforge.plantuml.text, 10 | net.sourceforge.plantuml.util, 11 | org.eclipse.core.runtime;version="3.4.0", 12 | org.eclipse.emf.common.util, 13 | org.eclipse.emf.ecore, 14 | org.eclipse.emf.ecore.resource, 15 | org.eclipse.emf.ecore.resource.impl, 16 | org.eclipse.emf.ecore.util, 17 | org.eclipse.emf.edit.domain, 18 | org.eclipse.jface.viewers, 19 | org.eclipse.ui 20 | Bundle-ClassPath: . 21 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.ecore.tests/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 10 | 11 | 12 | 13 | 17 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /features/net.sourceforge.plantuml.lib.elk.feature/feature.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | %description 10 | 11 | 12 | 13 | [Enter Copyright Description here.] 14 | 15 | 16 | 17 | %license 18 | 19 | 20 | 21 | 22 | 23 | 24 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /features/net.sourceforge.plantuml.lib.jlatexmath.feature/feature.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | %description 10 | 11 | 12 | 13 | [Enter Copyright Description here.] 14 | 15 | 16 | 17 | %license 18 | 19 | 20 | 21 | 22 | 23 | 24 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse.imagecontrol/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: Image Control Plug-in 4 | Bundle-SymbolicName: net.sourceforge.plantuml.eclipse.imagecontrol 5 | Bundle-Version: 1.1.33.qualifier 6 | Bundle-Vendor: PlantUML Team 7 | Require-Bundle: org.eclipse.jface;bundle-version="3.10.2" 8 | Bundle-ActivationPolicy: lazy 9 | Bundle-ClassPath: . 10 | Bundle-RequiredExecutionEnvironment: JavaSE-17 11 | Import-Package: org.eclipse.jface.action, 12 | org.eclipse.jface.resource, 13 | org.eclipse.swt, 14 | org.eclipse.swt.events, 15 | org.eclipse.swt.graphics, 16 | org.eclipse.swt.widgets 17 | Export-Package: net.sourceforge.plantuml.eclipse.imagecontrol, 18 | net.sourceforge.plantuml.eclipse.imagecontrol.jface, 19 | net.sourceforge.plantuml.eclipse.imagecontrol.jface.actions 20 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.xcore/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: Xcore PlantUML mapping 4 | Bundle-SymbolicName: net.sourceforge.plantuml.xcore; singleton:=true 5 | Bundle-Version: 1.1.33.qualifier 6 | Bundle-RequiredExecutionEnvironment: JavaSE-17 7 | Import-Package: net.sourceforge.plantuml.eclipse.utils, 8 | net.sourceforge.plantuml.ecore, 9 | net.sourceforge.plantuml.text, 10 | net.sourceforge.plantuml.util, 11 | org.eclipse.emf.ecore, 12 | org.eclipse.emf.ecore.resource, 13 | org.eclipse.emf.ecore.util, 14 | org.eclipse.jface.text, 15 | org.eclipse.jface.viewers, 16 | org.eclipse.ui, 17 | org.eclipse.ui.editors.text, 18 | org.eclipse.xtext.resource, 19 | org.eclipse.xtext.ui.editor, 20 | org.eclipse.xtext.util.concurrent 21 | Bundle-ClassPath: . 22 | Require-Bundle: org.eclipse.core.runtime;bundle-version="3.10.0" 23 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.svg/src/net/sourceforge/plantuml/eclipse/svg/SimpleSvg2HtmlConverter.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.svg; 2 | 3 | public class SimpleSvg2HtmlConverter extends AbstractSvg2HtmlConverter { 4 | 5 | private final String prefix; 6 | private final String suffix; 7 | 8 | protected SimpleSvg2HtmlConverter(final String prefix, final String suffix) { 9 | this.prefix = prefix; 10 | this.suffix = suffix; 11 | } 12 | 13 | public SimpleSvg2HtmlConverter() { 14 | this("\n \n", "\n \n"); 15 | } 16 | 17 | @Override 18 | public String convert2Html(String svg) { 19 | svg = cleanSvg(svg); 20 | final StringBuilder builder = new StringBuilder(prefix.length() + svg.length() + suffix.length()); 21 | builder.append(prefix); 22 | builder.append(svg); 23 | builder.append(suffix); 24 | return builder.toString(); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.text/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: PlantUML Text Editor Support 4 | Bundle-SymbolicName: net.sourceforge.plantuml.text;singleton:=true 5 | Bundle-Version: 1.1.33.qualifier 6 | Bundle-RequiredExecutionEnvironment: JavaSE-17 7 | Export-Package: net.sourceforge.plantuml.text 8 | Import-Package: net.sourceforge.plantuml.eclipse, 9 | net.sourceforge.plantuml.eclipse.utils, 10 | net.sourceforge.plantuml.util, 11 | org.eclipse.core.resources, 12 | org.eclipse.core.runtime;version="3.4.0", 13 | org.eclipse.jface.text, 14 | org.eclipse.jface.viewers, 15 | org.eclipse.ui 16 | Require-Bundle: org.eclipse.core.runtime;bundle-version="3.10.0", 17 | org.eclipse.ui.editors;bundle-version="3.8.200" 18 | Bundle-ActivationPolicy: lazy 19 | Bundle-Activator: net.sourceforge.plantuml.text.Activator 20 | Bundle-ClassPath: . 21 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.lib/README.md: -------------------------------------------------------------------------------- 1 | # net.sourceforge.plantuml.lib 2 | 3 | This plugin wraps the EPL-ed version of the plantuml.jar file. The plugin's version is the same as the jar's, to make it easy to track versions. 4 | 5 | Once in a while it should be updated with a new version. This isn't currently fully automated, so the following manual steps are needed: 6 | 7 | - Update the PlantUML lib version in `releng/net.sourceforge.plantuml.parent/pom.xml`, property `plantuml-lib-version` 8 | - Maven automatically downloads the specified library version and corresponding sources jars to the lib folder 9 | - Search and replace the previous version with the new one throughout the workspace _except_ `compositeArtifacts.xml` and `compositeContent.xml` in the `releng/composite` module, to update meta-data in plug-in and feature projects (`MANIFEST.MF`, `build.properties`, `pom.xml`, `feature.xml`, `category.xml`) 10 | -------------------------------------------------------------------------------- /tests/no.hal.osgi.emf.tests/src/no/hal/osgi/emf/test/MANIFEST1.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: %pluginName 4 | Bundle-SymbolicName: no.hal.pg.runtime.web 5 | Bundle-Version: 0.1.0.qualifier 6 | Bundle-ClassPath: . 7 | Bundle-Vendor: %providerName 8 | Bundle-Localization: plugin 9 | Bundle-RequiredExecutionEnvironment: JavaSE-1.8 10 | Require-Bundle: org.eclipse.emf.ecore;visibility:=reexport, 11 | no.hal.pg.runtime;bundle-version="0.0.1", 12 | no.hal.pg.http;bundle-version="0.0.1" 13 | Import-Package: javax.servlet;version="3.1.0", 14 | javax.servlet.http;version="3.1.0", 15 | org.emfjson.jackson.resource;version="0.12.0", 16 | org.osgi.service.component.annotations;version="1.2.0", 17 | org.osgi.service.http;version="1.2.1" 18 | Service-Component: no.hal.pg.runtime.engine.web.GameApp.xml, 19 | no.hal.pg.runtime.engine.web.PlayerApp.xml 20 | Bundle-ActivationPolicy: lazy 21 | -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.lib.repository/category.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.target/eclipse-2023-12.target: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.eclipse.tests/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: Plantuml Plug-in test 4 | Bundle-SymbolicName: net.sourceforge.plantuml.eclipse.tests;singleton:=true 5 | Bundle-Version: 1.1.33.qualifier 6 | Bundle-Vendor: PlantUML Team 7 | Require-Bundle: org.eclipse.core.runtime;bundle-version="3.3.1", 8 | org.eclipse.core.resources;bundle-version="3.3.1", 9 | net.sourceforge.plantuml.eclipse.imagecontrol;bundle-version="1.1.33.qualifier", 10 | net.sourceforge.plantuml.eclipse;bundle-version="1.1.33.qualifier", 11 | org.eclipse.ui;bundle-version="3.106.1", 12 | org.eclipse.ui.editors;bundle-version="3.8.200", 13 | org.eclipse.ui.ide;bundle-version="3.10.2", 14 | org.junit;bundle-version="4.11.0" 15 | Bundle-ClassPath: . 16 | Bundle-RequiredExecutionEnvironment: JavaSE-17 17 | Export-Package: net.sourceforge.plantuml.eclipse.test.util 18 | -------------------------------------------------------------------------------- /bundles/no.hal.osgi.emf/src/no/hal/osgi/emf/util/Segments.java: -------------------------------------------------------------------------------- 1 | package no.hal.osgi.emf.util; 2 | 3 | public abstract class Segments { 4 | 5 | public final String[] segments; 6 | 7 | public Segments(String... segments) { 8 | for (int i = 0; i < segments.length; i++) { 9 | checkSegment(segments[i]); 10 | } 11 | this.segments = segments; 12 | } 13 | 14 | protected RuntimeException createIllegalSyntaxException(String s) { 15 | return new IllegalArgumentException("Illegal syntax: " + s); 16 | } 17 | 18 | protected void checkSegment(String segment) { 19 | } 20 | 21 | protected abstract String getSeparator(); 22 | 23 | @Override 24 | public String toString() { 25 | StringBuilder builder = new StringBuilder(); 26 | for (int i = 0; i < segments.length; i++) { 27 | if (i > 0) { 28 | builder.append(getSeparator()); 29 | } 30 | builder.append(segments[i]); 31 | } 32 | return builder.toString(); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.ecore.tests/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: Plantuml Java Support Test 4 | Bundle-SymbolicName: net.sourceforge.plantuml.ecore.tests;singleton:=true 5 | Bundle-Version: 1.1.33.qualifier 6 | Bundle-Vendor: PlantUML Team 7 | Require-Bundle: org.eclipse.core.runtime;bundle-version="3.3.1", 8 | org.eclipse.core.resources;bundle-version="3.3.1", 9 | net.sourceforge.plantuml.eclipse;bundle-version="1.1.33.qualifier", 10 | org.junit, 11 | org.eclipse.ui;bundle-version="3.106.1", 12 | org.eclipse.ui.editors;bundle-version="3.8.200", 13 | org.eclipse.ui.ide;bundle-version="3.10.2", 14 | net.sourceforge.plantuml.eclipse.tests;bundle-version="1.1.33.qualifier" 15 | Bundle-ClassPath: . 16 | Bundle-RequiredExecutionEnvironment: JavaSE-17 17 | Import-Package: net.sourceforge.plantuml.eclipse.test.util 18 | Export-Package: net.sourceforge.plantuml.ecore.test 19 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.osgi/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | 13 | 14 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 15 | 19 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /.github/workflows/plantuml-snapshot.yml: -------------------------------------------------------------------------------- 1 | name: plantuml-snapshot CI 2 | 3 | on: 4 | push: 5 | branches: 6 | - snapshot 7 | 8 | jobs: 9 | build: 10 | runs-on: ubuntu-latest 11 | 12 | steps: 13 | - uses: actions/checkout@v2 14 | - name: Set up JDK 17 15 | uses: actions/setup-java@v2 16 | with: 17 | java-version: '17' 18 | distribution: 'adopt' 19 | - name: Cache maven packages 20 | uses: actions/cache@v2 21 | with: 22 | path: ~/.m2 23 | key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} 24 | restore-keys: ${{ runner.os }}-m2 25 | - name: Install with maven 26 | run: mvn --batch-mode --update-snapshots install -f releng/net.sourceforge.plantuml.composite/pom.xml 27 | - uses: actions/upload-artifact@v2 28 | with: 29 | name: Repository 30 | path: releng/net.sourceforge.plantuml.composite/target/gh-pages 31 | -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.lib.repository/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | net.sourceforge.plantuml.lib.repository 4 | eclipse-repository 5 | 6 | 7 | net.sourceforge.plantuml 8 | net.sourceforge.plantuml.parent 9 | ${releaseVersion}${qualifier} 10 | ../net.sourceforge.plantuml.parent 11 | 12 | 13 | 14 | 15 | 16 | org.eclipse.tycho 17 | tycho-p2-repository-plugin 18 | ${tycho-version} 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.target/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4.0.0 4 | 5 | net.sourceforge.plantuml 6 | net.sourceforge.plantuml.parent 7 | ${releaseVersion}${qualifier} 8 | ../net.sourceforge.plantuml.parent/pom.xml 9 | 10 | 11 | 12 | 13 | eclipse-2023-12 14 | eclipse-target-definition 15 | 16 | 17 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.svg/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: Plantuml Plug-in 4 | Bundle-SymbolicName: net.sourceforge.plantuml.svg; singleton:=true 5 | Bundle-Version: 1.1.33.qualifier 6 | Bundle-Vendor: PlantUML Team 7 | Require-Bundle: org.eclipse.core.runtime;bundle-version="3.10.0", 8 | org.eclipse.core.resources;bundle-version="3.9.1", 9 | org.eclipse.ui;bundle-version="3.106.1", 10 | org.eclipse.ui.workbench, 11 | org.eclipse.ui.ide;bundle-version="3.10.2", 12 | org.eclipse.ui.browser;bundle-version="3.4.200" 13 | Bundle-ActivationPolicy: lazy 14 | Bundle-RequiredExecutionEnvironment: JavaSE-17 15 | Bundle-ClassPath: ., 16 | libs/jmustache-1.15.jar 17 | Import-Package: net.sourceforge.plantuml.eclipse, 18 | net.sourceforge.plantuml.eclipse.imagecontrol, 19 | net.sourceforge.plantuml.eclipse.views, 20 | net.sourceforge.plantuml.util, 21 | org.eclipse.swt.layout, 22 | org.eclipse.swt.widgets 23 | -------------------------------------------------------------------------------- /bundles/no.hal.osgi.emf/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | no.hal.osgi.emf 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.m2e.core.maven2Nature 31 | org.eclipse.pde.PluginNature 32 | org.eclipse.jdt.core.javanature 33 | 34 | 35 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.jdt/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.jdt 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.m2e.core.maven2Nature 31 | org.eclipse.pde.PluginNature 32 | org.eclipse.jdt.core.javanature 33 | 34 | 35 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.lib/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.lib 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.m2e.core.maven2Nature 31 | org.eclipse.pde.PluginNature 32 | org.eclipse.jdt.core.javanature 33 | 34 | 35 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.svg/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.svg 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.m2e.core.maven2Nature 31 | org.eclipse.pde.PluginNature 32 | org.eclipse.jdt.core.javanature 33 | 34 | 35 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.ecore/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.ecore 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.m2e.core.maven2Nature 31 | org.eclipse.pde.PluginNature 32 | org.eclipse.jdt.core.javanature 33 | 34 | 35 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.osgi/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.osgi 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.m2e.core.maven2Nature 31 | org.eclipse.pde.PluginNature 32 | org.eclipse.jdt.core.javanature 33 | 34 | 35 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.text/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.text 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.m2e.core.maven2Nature 31 | org.eclipse.pde.PluginNature 32 | org.eclipse.jdt.core.javanature 33 | 34 | 35 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.uml2/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.uml2 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.m2e.core.maven2Nature 31 | org.eclipse.pde.PluginNature 32 | org.eclipse.jdt.core.javanature 33 | 34 | 35 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.xcore/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.xcore 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.m2e.core.maven2Nature 31 | org.eclipse.pde.PluginNature 32 | org.eclipse.jdt.core.javanature 33 | 34 | 35 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.lib.elk/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.lib.elk 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.m2e.core.maven2Nature 31 | org.eclipse.pde.PluginNature 32 | org.eclipse.jdt.core.javanature 33 | 34 | 35 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.jdt.tests/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.jdt.tests 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.m2e.core.maven2Nature 31 | org.eclipse.pde.PluginNature 32 | org.eclipse.jdt.core.javanature 33 | 34 | 35 | -------------------------------------------------------------------------------- /tests/no.hal.osgi.emf.tests/src/no/hal/osgi/emf/test/no.hal.pg.runtime.engine.web.GameApp.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.ecore.tests/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.ecore.tests 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.m2e.core.maven2Nature 31 | org.eclipse.pde.PluginNature 32 | org.eclipse.jdt.core.javanature 33 | 34 | 35 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.text.tests 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.m2e.core.maven2Nature 31 | org.eclipse.pde.PluginNature 32 | org.eclipse.jdt.core.javanature 33 | 34 | 35 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.eclipse.tests/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.eclipse.tests 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.m2e.core.maven2Nature 31 | org.eclipse.pde.PluginNature 32 | org.eclipse.jdt.core.javanature 33 | 34 | 35 | -------------------------------------------------------------------------------- /tests/no.hal.osgi.emf.tests/src/no/hal/osgi/emf/test/no.hal.pg.runtime.engine.web.PlayerApp.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.lib.jlatexmath/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.lib.jlatexmath 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.m2e.core.maven2Nature 31 | org.eclipse.pde.PluginNature 32 | org.eclipse.jdt.core.javanature 33 | 34 | 35 | -------------------------------------------------------------------------------- /bundles/no.hal.osgi.emf/src/no/hal/osgi/emf/util/QualifiedName.java: -------------------------------------------------------------------------------- 1 | package no.hal.osgi.emf.util; 2 | 3 | import java.util.regex.Pattern; 4 | 5 | public class QualifiedName extends Segments { 6 | 7 | public QualifiedName(String... segments) { 8 | super(segments); 9 | } 10 | 11 | protected void checkSegment(String segment) { 12 | if (segment.length() < 1) { 13 | throw createIllegalSyntaxException(segment); 14 | } 15 | if (! Character.isJavaIdentifierStart(segment.charAt(0))) { 16 | throw createIllegalSyntaxException(segment); 17 | } 18 | for (int i = 1; i < segment.length(); i++) { 19 | if (! Character.isJavaIdentifierPart(segment.charAt(i))) { 20 | throw createIllegalSyntaxException(segment); 21 | } 22 | } 23 | } 24 | 25 | private final static String SEPARATOR = "."; 26 | 27 | @Override 28 | protected String getSeparator() { 29 | return SEPARATOR; 30 | } 31 | 32 | public static QualifiedName valueOf(String s) { 33 | return new QualifiedName(s.split(Pattern.quote(SEPARATOR))); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse.imagecontrol/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.eclipse.imagecontrol 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.m2e.core.maven2Nature 31 | org.eclipse.pde.PluginNature 32 | org.eclipse.jdt.core.javanature 33 | 34 | 35 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse.imagecontrol/src/net/sourceforge/plantuml/eclipse/imagecontrol/jface/actions/ZoomAction.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.imagecontrol.jface.actions; 2 | 3 | import java.util.function.Supplier; 4 | 5 | import org.eclipse.jface.resource.ImageDescriptor; 6 | 7 | import net.sourceforge.plantuml.eclipse.imagecontrol.ImageControl; 8 | 9 | public class ZoomAction extends ControlAction { 10 | 11 | private final float zoomRate; 12 | 13 | public ZoomAction(final Supplier imageControlSupplier, final float zoomRate) { 14 | super(imageControlSupplier); 15 | if (zoomRate == 1.0 || zoomRate <= 0.0) { 16 | throw new IllegalArgumentException("Illegal zoom rate value: " + zoomRate); 17 | } 18 | setImageDescriptor(ImageDescriptor.createFromFile(ControlAction.class, (zoomRate > 1.0 ? "/icons/ZoomIn16.gif" : "/icons/ZoomOut16.gif"))); 19 | this.zoomRate = zoomRate; 20 | } 21 | 22 | @Override 23 | public void run() { 24 | getControl().zoomCentered(zoomRate); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | net.sourceforge.plantuml.eclipse 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.m2e.core.maven2Nature 31 | org.eclipse.pde.PluginNature 32 | org.eclipse.jdt.core.javanature 33 | 34 | 35 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.svg/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 11 | 12 | 13 | 14 | 16 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/eclipse/views/actions/DiagramImageAction.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.views.actions; 2 | 3 | import java.util.function.Supplier; 4 | 5 | import org.eclipse.core.runtime.IPath; 6 | import org.eclipse.swt.graphics.ImageData; 7 | 8 | import net.sourceforge.plantuml.util.DiagramImageData; 9 | 10 | public abstract class DiagramImageAction extends DiagramAction { 11 | 12 | public DiagramImageAction(final Supplier diagramImageDataSupplier, final C context) { 13 | super(diagramImageDataSupplier, context); 14 | } 15 | 16 | protected DiagramImageData getDiagramImageData() { 17 | return getDiagramData(); 18 | } 19 | 20 | protected IPath getSourcePath() { 21 | return getDiagramImageData().getSourcePath(); 22 | } 23 | 24 | protected ImageData getImage() { 25 | return getDiagramImageData().getImage(); 26 | } 27 | 28 | protected int getImageNum() { 29 | return getDiagramImageData().getImageNum(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/util/ResourceInfo.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.util; 2 | 3 | import java.util.HashMap; 4 | import java.util.Map; 5 | 6 | public class ResourceInfo { 7 | 8 | public ResourceInfo() { 9 | } 10 | 11 | public ResourceInfo(final ResourceInfo resourceInfo) { 12 | this.originalPath = resourceInfo.originalPath; 13 | if (resourceInfo.markerAttributes != null) { 14 | this.markerAttributes = new HashMap(resourceInfo.markerAttributes); 15 | } 16 | } 17 | 18 | private String originalPath; 19 | 20 | public String getOriginalPath() { 21 | return originalPath; 22 | } 23 | 24 | public void setOriginalPath(final String originalPath) { 25 | this.originalPath = originalPath; 26 | } 27 | 28 | private Map markerAttributes; 29 | 30 | public Map getMarkerAttributes() { 31 | return markerAttributes; 32 | } 33 | 34 | public void setMarkerAttributes(final Map markerAttributes) { 35 | this.markerAttributes = markerAttributes; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.jdt.tests/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: Plantuml Java Support Test 4 | Bundle-SymbolicName: net.sourceforge.plantuml.jdt.tests;singleton:=true 5 | Bundle-Version: 1.1.33.qualifier 6 | Bundle-Vendor: PlantUML Team 7 | Require-Bundle: org.eclipse.core.runtime;bundle-version="3.3.1", 8 | org.eclipse.core.resources;bundle-version="3.3.1", 9 | net.sourceforge.plantuml.eclipse;bundle-version="1.1.33.qualifier", 10 | org.junit, 11 | org.eclipse.ui;bundle-version="3.106.1", 12 | org.eclipse.ui.editors;bundle-version="3.8.200", 13 | org.eclipse.ui.ide;bundle-version="3.10.2", 14 | net.sourceforge.plantuml.jdt;bundle-version="1.1.33.qualifier", 15 | org.eclipse.jdt.core;bundle-version="3.10.2", 16 | net.sourceforge.plantuml.eclipse.tests;bundle-version="1.1.33.qualifier", 17 | org.eclipse.jdt.ui;bundle-version="3.10.2", 18 | org.eclipse.jdt.launching;bundle-version="3.7.102" 19 | Bundle-ClassPath: . 20 | Bundle-RequiredExecutionEnvironment: JavaSE-17 21 | Import-Package: net.sourceforge.plantuml.eclipse.test.util 22 | -------------------------------------------------------------------------------- /bundles/no.hal.osgi.emf/src/no/hal/osgi/util/OsgiResourceFactoryImpl.java: -------------------------------------------------------------------------------- 1 | /** 2 | */ 3 | package no.hal.osgi.util; 4 | 5 | import org.eclipse.emf.common.util.URI; 6 | 7 | import org.eclipse.emf.ecore.resource.Resource; 8 | 9 | import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; 10 | 11 | /** 12 | * 13 | * The Resource Factory associated with the package. 14 | * 15 | * @see no.hal.osgi.util.OsgiResourceImpl 16 | * @generated 17 | */ 18 | public class OsgiResourceFactoryImpl extends ResourceFactoryImpl { 19 | /** 20 | * Creates an instance of the resource factory. 21 | * 22 | * 23 | * @generated 24 | */ 25 | public OsgiResourceFactoryImpl() { 26 | super(); 27 | } 28 | 29 | /** 30 | * Creates an instance of the resource. 31 | * 32 | * 33 | * @generated 34 | */ 35 | @Override 36 | public Resource createResource(URI uri) { 37 | Resource result = new OsgiResourceImpl(uri); 38 | return result; 39 | } 40 | 41 | } //OsgiResourceFactoryImpl 42 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: Plantuml Text Editor Support Test 4 | Bundle-SymbolicName: net.sourceforge.plantuml.text.tests;singleton:=true 5 | Bundle-Version: 1.1.33.qualifier 6 | Bundle-Vendor: PlantUML Team 7 | Require-Bundle: org.eclipse.core.runtime;bundle-version="3.3.1", 8 | org.eclipse.core.resources;bundle-version="3.3.1", 9 | net.sourceforge.plantuml.eclipse.imagecontrol;bundle-version="1.1.33.qualifier", 10 | net.sourceforge.plantuml.eclipse;bundle-version="1.1.33.qualifier", 11 | org.junit, 12 | org.eclipse.ui;bundle-version="3.106.1", 13 | org.eclipse.ui.editors;bundle-version="3.8.200", 14 | org.eclipse.ui.ide;bundle-version="3.10.2", 15 | org.eclipse.ui.workbench.texteditor;bundle-version="3.9.0", 16 | net.sourceforge.plantuml.text;bundle-version="1.1.33.qualifier" 17 | Bundle-ClassPath: . 18 | Bundle-RequiredExecutionEnvironment: JavaSE-17 19 | Export-Package: net.sourceforge.plantuml.text.test 20 | Import-Package: net.sourceforge.plantuml.eclipse.test.util, 21 | org.eclipse.jface.text 22 | -------------------------------------------------------------------------------- /tests/no.hal.osgi.emf.tests/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | no.hal.osgi.emf.tests 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.pde.ds.core.builder 25 | 26 | 27 | 28 | 29 | org.eclipse.m2e.core.maven2Builder 30 | 31 | 32 | 33 | 34 | 35 | org.eclipse.m2e.core.maven2Nature 36 | org.eclipse.pde.PluginNature 37 | org.eclipse.jdt.core.javanature 38 | 39 | 40 | -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.lib.aggregator/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | net.sourceforge.plantuml.lib.aggregator 5 | pom 6 | 7 | 8 | net.sourceforge.plantuml 9 | net.sourceforge.plantuml.parent 10 | ${releaseVersion}${qualifier} 11 | ../net.sourceforge.plantuml.parent 12 | 13 | 14 | 15 | ../net.sourceforge.plantuml.target 16 | ../../bundles/net.sourceforge.plantuml.lib 17 | ../../features/net.sourceforge.plantuml.lib.feature 18 | ../../bundles/net.sourceforge.plantuml.lib.jlatexmath 19 | ../../features/net.sourceforge.plantuml.lib.jlatexmath.feature 20 | ../net.sourceforge.plantuml.lib.repository 21 | 22 | 23 | -------------------------------------------------------------------------------- /releng/net.sourceforge.plantuml.repository/category.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.ecore.tests/model/sample.ecore.plantuml: -------------------------------------------------------------------------------- 1 | @startuml 2 | class Library [[marker:/org.eclipse.emf.ecore.diagnostic/ecoreeditortest/model/sample.ecore?uri=platform:/resource/ecoreeditortest/model/sample.ecore%23//Library]] { 3 | } 4 | class Book [[marker:/org.eclipse.emf.ecore.diagnostic/ecoreeditortest/model/sample.ecore?uri=platform:/resource/ecoreeditortest/model/sample.ecore%23//Book]] { 5 | kind: BookKind 6 | } 7 | class Author [[marker:/org.eclipse.emf.ecore.diagnostic/ecoreeditortest/model/sample.ecore?uri=platform:/resource/ecoreeditortest/model/sample.ecore%23//Author]] { 8 | } 9 | class Named [[marker:/org.eclipse.emf.ecore.diagnostic/ecoreeditortest/model/sample.ecore?uri=platform:/resource/ecoreeditortest/model/sample.ecore%23//Named]] { 10 | name: EString 11 | } 12 | enum BookKind [[marker:/org.eclipse.emf.ecore.diagnostic/ecoreeditortest/model/sample.ecore?uri=platform:/resource/ecoreeditortest/model/sample.ecore%23//BookKind]] { 13 | Novel: Novel 14 | Non-fiction: Non-fiction 15 | } 16 | Named <|-- Book 17 | Named <|-- Author 18 | Library *--> "books *" Book 19 | Library *--> "authors *" Author 20 | Book --> "author" Author 21 | @enduml 22 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.jdt/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: PlantUML Java Support 4 | Bundle-SymbolicName: net.sourceforge.plantuml.jdt;singleton:=true 5 | Bundle-Version: 1.1.33.qualifier 6 | Bundle-RequiredExecutionEnvironment: JavaSE-17 7 | Require-Bundle: net.sourceforge.plantuml.eclipse;bundle-version="1.1.19", 8 | net.sourceforge.plantuml.eclipse.imagecontrol;bundle-version="1.1.19", 9 | org.eclipse.ui;bundle-version="3.106.1" 10 | Import-Package: net.sourceforge.plantuml.eclipse.utils, 11 | net.sourceforge.plantuml.text, 12 | org.eclipse.core.resources, 13 | org.eclipse.core.runtime, 14 | org.eclipse.jdt.core, 15 | org.eclipse.jdt.internal.core, 16 | org.eclipse.jdt.internal.debug.ui.actions, 17 | org.eclipse.jdt.internal.ui.javaeditor, 18 | org.eclipse.jdt.internal.ui.packageview, 19 | org.eclipse.jdt.ui, 20 | org.eclipse.jface.viewers, 21 | org.eclipse.ui, 22 | org.eclipse.ui.texteditor, 23 | org.osgi.framework;version="1.8.0" 24 | Export-Package: net.sourceforge.plantuml.jdt 25 | Bundle-ActivationPolicy: lazy 26 | Bundle-Activator: net.sourceforge.plantuml.jdt.Activator 27 | Bundle-ClassPath: . 28 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.text/src/net/sourceforge/plantuml/text/TextDiagramIntent.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.text; 2 | 3 | import java.util.HashMap; 4 | 5 | import org.eclipse.jface.text.IDocument; 6 | 7 | import net.sourceforge.plantuml.util.AbstractDiagramIntent; 8 | 9 | public class TextDiagramIntent extends AbstractDiagramIntent { 10 | 11 | private final int start; 12 | 13 | private final TextDiagramIntentHelper helper; 14 | 15 | public TextDiagramIntent(final IDocument document, final int start, final TextDiagramIntentHelper helper) { 16 | super(document); 17 | this.start = start; 18 | this.helper = helper; 19 | // should have lower priority than those generated 20 | setPriority(DEFAULT_PRIORITY); 21 | } 22 | 23 | @Override 24 | public String getDiagramText() { 25 | final HashMap markerAttributes = (getResourceInfo() != null ? new HashMap() : null); 26 | final StringBuilder lines = helper.getDiagramTextLines(getSource(), start, markerAttributes); 27 | if (getResourceInfo() != null) { 28 | getResourceInfo().setMarkerAttributes(markerAttributes); 29 | } 30 | return helper.getDiagramText(lines); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.svg/src/net/sourceforge/plantuml/eclipse/svg/Svg2InteractiveHtmlConverter.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.svg; 2 | 3 | public class Svg2InteractiveHtmlConverter extends SimpleSvg2HtmlConverter { 4 | 5 | public Svg2InteractiveHtmlConverter() { 6 | super("\n" + 7 | " \n" + 8 | " \n" + 9 | " \n" + 15 | " \n" + 16 | " \n", 17 | "\n \n" + 27 | " \n" + 28 | ""); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/eclipse/views/DiagramImageControl.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.views; 2 | 3 | import org.eclipse.swt.graphics.ImageData; 4 | import org.eclipse.swt.widgets.Composite; 5 | 6 | import net.sourceforge.plantuml.eclipse.imagecontrol.ImageControl; 7 | import net.sourceforge.plantuml.util.DiagramImageData; 8 | 9 | public class DiagramImageControl extends ImageControl { 10 | 11 | public DiagramImageControl(final Composite parent) { 12 | super(parent); 13 | } 14 | 15 | public DiagramImageControl(final Composite parent, final int style) { 16 | super(parent, style); 17 | } 18 | 19 | private DiagramImageData diagramImageData; 20 | 21 | public DiagramImageData getDiagramImageData() { 22 | return diagramImageData; 23 | } 24 | 25 | public void updateDiagramImage(final DiagramImageData diagramImageData) { 26 | this.diagramImageData = diagramImageData; 27 | try { 28 | final ImageData imageData = diagramImageData.getImage(); 29 | if (imageData != null && (! isDisposed())) { 30 | loadImage(imageData); 31 | } 32 | } catch (final Throwable e) { 33 | if (! isDisposed()) { 34 | showErrorMessage(e); 35 | } 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/eclipse/views/actions/CopyAction.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.views.actions; 2 | 3 | import java.util.function.Supplier; 4 | 5 | import org.eclipse.swt.dnd.Clipboard; 6 | import org.eclipse.swt.dnd.ImageTransfer; 7 | import org.eclipse.swt.dnd.Transfer; 8 | import org.eclipse.swt.widgets.Display; 9 | 10 | import net.sourceforge.plantuml.eclipse.utils.PlantumlConstants; 11 | import net.sourceforge.plantuml.util.DiagramImageData; 12 | 13 | /**Manage the copy action. 14 | * 15 | * @author durif_c 16 | * 17 | */ 18 | public class CopyAction extends DiagramImageAction { 19 | 20 | /** 21 | * 22 | * @param diagram Diagram 23 | */ 24 | public CopyAction(final Supplier diagramImageDataSupplier, final Display display) { 25 | super(diagramImageDataSupplier, display); 26 | setText(PlantumlConstants.COPY_MENU); 27 | } 28 | 29 | /** 30 | * 31 | */ 32 | @Override 33 | public void run() { 34 | final Clipboard clipboard = new Clipboard(getContext()); 35 | clipboard.setContents(new Object[]{getImage()}, new Transfer[]{ImageTransfer.getInstance()}); 36 | clipboard.dispose(); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/eclipse/views/actions/CopySourceAction.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.views.actions; 2 | 3 | import java.util.function.Supplier; 4 | 5 | import org.eclipse.swt.dnd.Clipboard; 6 | import org.eclipse.swt.dnd.TextTransfer; 7 | import org.eclipse.swt.dnd.Transfer; 8 | import org.eclipse.swt.widgets.Display; 9 | 10 | import net.sourceforge.plantuml.eclipse.utils.PlantumlConstants; 11 | import net.sourceforge.plantuml.util.DiagramData; 12 | 13 | /**Manage the copy action. 14 | * 15 | * @author durif_c 16 | * 17 | */ 18 | public class CopySourceAction extends DiagramAction { 19 | 20 | /** 21 | * 22 | * @param diagram Diagram 23 | */ 24 | public CopySourceAction(final Supplier diagramDataSupplier, final Display display) { 25 | super(diagramDataSupplier, display); 26 | setText(PlantumlConstants.COPY_SOURCE_MENU); 27 | } 28 | 29 | @Override 30 | public void run() { 31 | final Clipboard clipboard = new Clipboard(getContext()); 32 | clipboard.setContents(new Object[]{getDiagramData().getTextDiagram()}, new Transfer[]{TextTransfer.getInstance()}); 33 | clipboard.dispose(); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /bundles/no.hal.osgi.emf/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 | 22 | 26 | 27 | 28 | 29 | 30 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/eclipse/utils/DefaultLinkOpener.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.utils; 2 | 3 | import java.net.URI; 4 | import java.net.URISyntaxException; 5 | import java.net.URL; 6 | 7 | import org.eclipse.ui.PlatformUI; 8 | import org.eclipse.ui.browser.IWebBrowser; 9 | import org.eclipse.ui.browser.IWorkbenchBrowserSupport; 10 | 11 | public class DefaultLinkOpener implements ILinkOpener { 12 | 13 | @Override 14 | public int supportsLink(LinkData link) { 15 | try { 16 | URI uri = new URI(link.href); 17 | if (uri.getScheme() != null) { 18 | return DEFAULT_SUPPORT; 19 | } 20 | } catch (URISyntaxException e) { 21 | } 22 | return NO_SUPPORT; 23 | } 24 | 25 | private boolean preferInternal = false; 26 | 27 | @Override 28 | public void openLink(LinkData link) { 29 | try { 30 | URL url = new URL(link.href); 31 | IWorkbenchBrowserSupport browserSupport = PlatformUI.getWorkbench().getBrowserSupport(); 32 | IWebBrowser browser = (preferInternal ? browserSupport.createBrowser(IWorkbenchBrowserSupport.AS_VIEW, "plantuml", "PlantUML Browser", null) : browserSupport.getExternalBrowser()); 33 | browser.openURL(url); 34 | } catch (Exception e) { 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/eclipse/utils/LocationDiagramIntentProviderContext.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.utils; 2 | 3 | import java.net.URI; 4 | import java.net.URISyntaxException; 5 | 6 | import org.eclipse.core.runtime.IPath; 7 | import org.eclipse.core.runtime.Path; 8 | 9 | import net.sourceforge.plantuml.util.DiagramIntentContext; 10 | 11 | public abstract class LocationDiagramIntentProviderContext extends DiagramIntentContext { 12 | 13 | private URI location; 14 | 15 | public URI getLocation() { 16 | return location; 17 | } 18 | 19 | public void setLocation(final URI location) { 20 | this.location = location; 21 | } 22 | 23 | public void setWorkspaceLocation(final IPath path) { 24 | setLocation(path, "ws"); 25 | } 26 | 27 | public void setFileLocation(final IPath path) { 28 | setLocation(path, "file"); 29 | } 30 | 31 | private void setLocation(final IPath path, final String scheme) { 32 | try { 33 | setLocation(new URI("ws", null, path.toString(), null)); 34 | } catch (final URISyntaxException e) { 35 | throw new RuntimeException(e); 36 | } 37 | } 38 | 39 | public IPath getPath() { 40 | return (location != null ? new Path(location.getPath()) : null); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/eclipse/utils/PlatformLinkOpener.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.utils; 2 | 3 | import java.net.URI; 4 | import java.net.URISyntaxException; 5 | 6 | import org.eclipse.core.runtime.IPath; 7 | import org.eclipse.core.runtime.Path; 8 | 9 | public class PlatformLinkOpener extends EditorLinkOpener { 10 | 11 | @Override 12 | public int supportsLink(LinkData link) { 13 | try { 14 | URI uri = new URI(link.href); 15 | if ("platform".equals(uri.getScheme()) && uri.getPath().startsWith("/resource")) { 16 | return CUSTOM_SUPPORT; 17 | } 18 | IPath path = getPath(link); 19 | // should perhaps check if the file exists and has a default editor 20 | if (path != null && path.getFileExtension() != null) { 21 | return DEFAULT_SUPPORT; 22 | } 23 | } catch (URISyntaxException e) { 24 | } 25 | return NO_SUPPORT; 26 | } 27 | 28 | @Override 29 | protected IPath getPath(LinkData link) { 30 | try { 31 | URI uri = new URI(link.href); 32 | if (uri.getPath() != null) { 33 | IPath path = new Path(uri.getPath()); 34 | return path.removeFirstSegments(1); 35 | } 36 | } catch (URISyntaxException e) { 37 | return new Path(link.href); 38 | } 39 | return null; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.xcore/src/net/sourceforge/plantuml/xcore/XcoreDiagramIntentProvider.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.xcore; 2 | 3 | import java.util.Collection; 4 | 5 | import org.eclipse.emf.ecore.resource.Resource; 6 | import org.eclipse.xtext.resource.XtextResource; 7 | import org.eclipse.xtext.ui.editor.XtextEditor; 8 | import org.eclipse.xtext.util.concurrent.IUnitOfWork; 9 | 10 | import net.sourceforge.plantuml.eclipse.utils.WorkbenchPartDiagramIntentProviderContext; 11 | import net.sourceforge.plantuml.ecore.EcoreDiagramIntentProvider; 12 | import net.sourceforge.plantuml.util.DiagramIntent; 13 | 14 | public class XcoreDiagramIntentProvider extends EcoreDiagramIntentProvider { 15 | 16 | public XcoreDiagramIntentProvider() { 17 | super(XtextEditor.class); 18 | } 19 | 20 | @Override 21 | protected Collection getDiagramInfos(final WorkbenchPartDiagramIntentProviderContext context) { 22 | return ((XtextEditor) context.getWorkbenchPart()).getDocument().readOnly(new IUnitOfWork, XtextResource>() { 23 | @Override 24 | public Collection exec(final XtextResource state) throws Exception { 25 | return getDiagramInfos(((Resource) state).getResourceSet()); 26 | } 27 | }); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/util/BasicProperties.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.util; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Collection; 5 | import java.util.Collections; 6 | import java.util.Properties; 7 | 8 | public class BasicProperties extends AbstractProperties { 9 | 10 | private final Properties properties; 11 | 12 | public BasicProperties(final Properties defaults) { 13 | this.properties = new Properties(defaults); 14 | } 15 | 16 | @Override 17 | public String toString() { 18 | return properties.toString(); 19 | } 20 | 21 | // 22 | 23 | @Override 24 | protected boolean hasProperty(final String key) { 25 | return properties.getProperty(key) != null; 26 | } 27 | 28 | @Override 29 | protected Object getProperty(final String key) { 30 | return properties.getProperty(key); 31 | } 32 | 33 | @Override 34 | protected void putProperty(final String key, final Object value) { 35 | properties.put(key, value); 36 | } 37 | 38 | @Override 39 | public Iterable propertyNames() { 40 | final Collection keys = new ArrayList(); 41 | for (final Object key : Collections.list(properties.propertyNames())) { 42 | if (key instanceof String) { 43 | keys.add((String) key); 44 | } 45 | } 46 | return keys; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /features/net.sourceforge.plantuml.ecore.feature/feature.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | %description 10 | 11 | 12 | 13 | [Enter Copyright Description here.] 14 | 15 | 16 | 17 | %license 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/eclipse/views/actions/SaveAction.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.views.actions; 2 | 3 | import java.util.function.Supplier; 4 | 5 | import org.eclipse.core.runtime.IPath; 6 | import org.eclipse.jface.dialogs.Dialog; 7 | import org.eclipse.swt.widgets.Shell; 8 | import org.eclipse.ui.dialogs.SaveAsDialog; 9 | 10 | import net.sourceforge.plantuml.eclipse.utils.PlantumlConstants; 11 | import net.sourceforge.plantuml.eclipse.utils.PlantumlUtil; 12 | import net.sourceforge.plantuml.eclipse.utils.WorkbenchUtil; 13 | import net.sourceforge.plantuml.util.DiagramImageData; 14 | 15 | public class SaveAction extends DiagramImageAction { 16 | 17 | public SaveAction(final Supplier diagramImageDataSupplier, final Shell shell) { 18 | super(diagramImageDataSupplier, shell); 19 | setText(PlantumlConstants.SAVE_MENU); 20 | } 21 | 22 | @Override 23 | public void run() { 24 | final SaveAsDialog fileDialog = new SaveAsDialog(getContext()); 25 | if (fileDialog.open() == Dialog.OK) { 26 | final IPath path = fileDialog.getResult(); 27 | if (path != null) { 28 | try { 29 | PlantumlUtil.saveDiagramImage(getDiagramImageData(), path, true); 30 | } catch (final Exception e) { 31 | WorkbenchUtil.errorBox("Error during file generation: " + e); 32 | } 33 | } 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /bundles/no.hal.osgi.emf/src/org/osgi/scr/util/ScrXMLProcessor.java: -------------------------------------------------------------------------------- 1 | /** 2 | */ 3 | package org.osgi.scr.util; 4 | 5 | import java.util.Map; 6 | 7 | import org.eclipse.emf.ecore.EPackage; 8 | 9 | import org.eclipse.emf.ecore.resource.Resource; 10 | 11 | import org.eclipse.emf.ecore.xmi.util.XMLProcessor; 12 | 13 | import org.osgi.scr.ScrPackage; 14 | 15 | /** 16 | * This class contains helper methods to serialize and deserialize XML documents 17 | * 18 | * 19 | * @generated 20 | */ 21 | public class ScrXMLProcessor extends XMLProcessor { 22 | 23 | /** 24 | * Public constructor to instantiate the helper. 25 | * 26 | * 27 | * @generated 28 | */ 29 | public ScrXMLProcessor() { 30 | super((EPackage.Registry.INSTANCE)); 31 | ScrPackage.eINSTANCE.eClass(); 32 | } 33 | 34 | /** 35 | * Register for "*" and "xml" file extensions the ScrResourceFactoryImpl factory. 36 | * 37 | * 38 | * @generated 39 | */ 40 | @Override 41 | protected Map getRegistrations() { 42 | if (registrations == null) { 43 | super.getRegistrations(); 44 | registrations.put(XML_EXTENSION, new ScrResourceFactoryImpl()); 45 | registrations.put(STAR_EXTENSION, new ScrResourceFactoryImpl()); 46 | } 47 | return registrations; 48 | } 49 | 50 | } //ScrXMLProcessor 51 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/testFiles/multi.plantuml: -------------------------------------------------------------------------------- 1 | @startuml 2 | class "Bar" 3 | @enduml 4 | 5 | @startmindmap 6 | * Debian 7 | ** Ubuntu 8 | *** Linux Mint 9 | *** Kubuntu 10 | @endmindmap 11 | 12 | @startsalt 13 | { 14 | Login | "MyName " 15 | Password | "**** " 16 | [Cancel] | [ OK ] 17 | } 18 | @endsalt 19 | 20 | @startgantt 21 | [Prototype design] lasts 15 days 22 | [Test prototype] lasts 10 days 23 | @endgantt 24 | 25 | @startuml 26 | class "Foo" 27 | @enduml 28 | 29 | @startjson 30 | { 31 | "firstName": "John", 32 | "lastName": "Smith", 33 | "isAlive": true, 34 | "age": 27, 35 | "address": { 36 | "streetAddress": "21 2nd Street", 37 | "city": "New York", 38 | "state": "NY", 39 | "postalCode": "10021-3100" 40 | }, 41 | "phoneNumbers": [ 42 | { 43 | "type": "home", 44 | "number": "212 555-1234" 45 | }, 46 | { 47 | "type": "office", 48 | "number": "646 555-4567" 49 | } 50 | ], 51 | "children": [], 52 | "spouse": null 53 | } 54 | @endjson 55 | 56 | @startyaml 57 | doe: "a deer, a female deer" 58 | ray: "a drop of golden sun" 59 | pi: 3.14159 60 | xmas: true 61 | french-hens: 3 62 | calling-birds: 63 | - huey 64 | - dewey 65 | - louie 66 | - fred 67 | xmas-fifth-day: 68 | calling-birds: four 69 | french-hens: 3 70 | golden-rings: 5 71 | partridges: 72 | count: 1 73 | location: "a pear tree" 74 | turtle-doves: two 75 | @endyaml 76 | -------------------------------------------------------------------------------- /tests/no.hal.osgi.emf.tests/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | no.hal.osgi.emf.tests 5 | eclipse-test-plugin 6 | 7 | 8 | net.sourceforge.plantuml 9 | net.sourceforge.plantuml.parent 10 | ${releaseVersion}${qualifier} 11 | ../../releng/net.sourceforge.plantuml.parent 12 | 13 | 14 | 15 | 16 | 17 | org.eclipse.tycho 18 | tycho-surefire-plugin 19 | ${tycho-version} 20 | 21 | ${skip-ui-tests} 22 | junit4 23 | true 24 | -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts 25 | 26 | 27 | org.eclipse.e4.rcp 28 | eclipse-feature 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /bundles/no.hal.osgi.emf/src/no/hal/osgi/GenericAttributesContainer.java: -------------------------------------------------------------------------------- 1 | /** 2 | */ 3 | package no.hal.osgi; 4 | 5 | import org.eclipse.emf.common.util.EList; 6 | 7 | import org.eclipse.emf.ecore.EObject; 8 | 9 | /** 10 | * 11 | * A representation of the model object 'Generic Attributes Container'. 12 | * 13 | * 14 | *

15 | * The following features are supported: 16 | *

17 | *
    18 | *
  • {@link no.hal.osgi.GenericAttributesContainer#getGenericAttributes Generic Attributes}
  • 19 | *
20 | * 21 | * @see no.hal.osgi.OsgiPackage#getGenericAttributesContainer() 22 | * @model 23 | * @generated 24 | */ 25 | public interface GenericAttributesContainer extends EObject { 26 | /** 27 | * Returns the value of the 'Generic Attributes' reference list. 28 | * The list contents are of type {@link no.hal.osgi.GenericAttribute}. 29 | * 30 | *

31 | * If the meaning of the 'Generic Attributes' reference list isn't clear, 32 | * there really should be more of a description here... 33 | *

34 | * 35 | * @return the value of the 'Generic Attributes' reference list. 36 | * @see no.hal.osgi.OsgiPackage#getGenericAttributesContainer_GenericAttributes() 37 | * @model 38 | * @generated 39 | */ 40 | EList getGenericAttributes(); 41 | 42 | } // GenericAttributesContainer 43 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.jdt.tests/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | net.sourceforge.plantuml.jdt.tests 5 | eclipse-test-plugin 6 | 7 | 8 | net.sourceforge.plantuml 9 | net.sourceforge.plantuml.parent 10 | ${releaseVersion}${qualifier} 11 | ../../releng/net.sourceforge.plantuml.parent 12 | 13 | 14 | 15 | 16 | 17 | org.eclipse.tycho 18 | tycho-surefire-plugin 19 | ${tycho-version} 20 | 21 | ${skip-ui-tests} 22 | junit4 23 | true 24 | -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts 25 | 26 | 27 | org.eclipse.e4.rcp 28 | eclipse-feature 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | net.sourceforge.plantuml.text.tests 5 | eclipse-test-plugin 6 | 7 | 8 | net.sourceforge.plantuml 9 | net.sourceforge.plantuml.parent 10 | ${releaseVersion}${qualifier} 11 | ../../releng/net.sourceforge.plantuml.parent 12 | 13 | 14 | 15 | 16 | 17 | org.eclipse.tycho 18 | tycho-surefire-plugin 19 | ${tycho-version} 20 | 21 | ${skip-ui-tests} 22 | junit4 23 | true 24 | -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts 25 | 26 | 27 | org.eclipse.e4.rcp 28 | eclipse-feature 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/src/net/sourceforge/plantuml/text/test/multi.puml: -------------------------------------------------------------------------------- 1 | @startuml 2 | class "Bar" 3 | @enduml 4 | 5 | @startmindmap 6 | * Debian 7 | ** Ubuntu 8 | *** Linux Mint 9 | *** Kubuntu 10 | @endmindmap 11 | 12 | @startsalt 13 | { 14 | Login | "MyName " 15 | Password | "**** " 16 | [Cancel] | [ OK ] 17 | } 18 | @endsalt 19 | 20 | @startgantt 21 | [Prototype design] lasts 15 days 22 | [Test prototype] lasts 10 days 23 | @endgantt 24 | 25 | @startuml 26 | class "Foo" 27 | @enduml 28 | 29 | @startjson 30 | { 31 | "firstName": "John", 32 | "lastName": "Smith", 33 | "isAlive": true, 34 | "age": 27, 35 | "address": { 36 | "streetAddress": "21 2nd Street", 37 | "city": "New York", 38 | "state": "NY", 39 | "postalCode": "10021-3100" 40 | }, 41 | "phoneNumbers": [ 42 | { 43 | "type": "home", 44 | "number": "212 555-1234" 45 | }, 46 | { 47 | "type": "office", 48 | "number": "646 555-4567" 49 | } 50 | ], 51 | "children": [], 52 | "spouse": null 53 | } 54 | @endjson 55 | 56 | @startyaml 57 | doe: "a deer, a female deer" 58 | ray: "a drop of golden sun" 59 | pi: 3.14159 60 | xmas: true 61 | french-hens: 3 62 | calling-birds: 63 | - huey 64 | - dewey 65 | - louie 66 | - fred 67 | xmas-fifth-day: 68 | calling-birds: four 69 | french-hens: 3 70 | golden-rings: 5 71 | partridges: 72 | count: 1 73 | location: "a pear tree" 74 | turtle-doves: two 75 | @endyaml 76 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.ecore.tests/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | net.sourceforge.plantuml.ecore.tests 5 | eclipse-test-plugin 6 | 7 | 8 | net.sourceforge.plantuml 9 | net.sourceforge.plantuml.parent 10 | ${releaseVersion}${qualifier} 11 | ../../releng/net.sourceforge.plantuml.parent 12 | 13 | 14 | 15 | 16 | 17 | org.eclipse.tycho 18 | tycho-surefire-plugin 19 | ${tycho-version} 20 | 21 | ${skip-ui-tests} 22 | junit4 23 | true 24 | -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts 25 | 26 | 27 | org.eclipse.e4.rcp 28 | eclipse-feature 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.ecore.tests/model/sample.ecore: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/eclipse/utils/EditorLinkOpener.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.utils; 2 | 3 | import java.net.URI; 4 | import java.net.URISyntaxException; 5 | 6 | import org.eclipse.core.resources.IFile; 7 | import org.eclipse.core.resources.ResourcesPlugin; 8 | import org.eclipse.core.runtime.IPath; 9 | import org.eclipse.core.runtime.Path; 10 | import org.eclipse.ui.IWorkbenchPage; 11 | import org.eclipse.ui.PartInitException; 12 | import org.eclipse.ui.PlatformUI; 13 | import org.eclipse.ui.ide.IDE; 14 | 15 | public abstract class EditorLinkOpener implements ILinkOpener { 16 | 17 | @Override 18 | public int supportsLink(LinkData link) { 19 | if (getPath(link) != null) { 20 | return CUSTOM_SUPPORT; 21 | } 22 | return NO_SUPPORT; 23 | } 24 | 25 | protected IPath getPath(LinkData link) { 26 | try { 27 | URI uri = new URI(link.href); 28 | if (uri.getPath() != null) { 29 | IPath path = new Path(uri.getPath()); 30 | return path; 31 | } 32 | } catch (URISyntaxException e) { 33 | return new Path(link.href); 34 | } 35 | return null; 36 | } 37 | 38 | @Override 39 | public void openLink(LinkData link) { 40 | try { 41 | IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); 42 | IPath path = getPath(link); 43 | IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path); 44 | IDE.openEditor(page, file); 45 | } catch (PartInitException e) { 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/eclipse/utils/DiagramTextProvider2.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.utils; 2 | 3 | import java.util.Map; 4 | 5 | import org.eclipse.core.runtime.IPath; 6 | import org.eclipse.jface.viewers.ISelection; 7 | import org.eclipse.ui.IEditorPart; 8 | 9 | /** 10 | * Extends DiagramTextProvider with support for generating diagrams from file contents. 11 | * Used for (re)generating diagram directly from a file, instead of an open editor. 12 | * @author hal 13 | * 14 | */ 15 | public interface DiagramTextProvider2 extends DiagramTextProvider { 16 | 17 | /** 18 | * Tells if the specified path is supported, likely based on the file extension 19 | * @param path 20 | * @return true if the specified path is supported, likely based on the file extension, false otherwise 21 | */ 22 | public boolean supportsPath(IPath path); 23 | 24 | /** 25 | * Generates the diagram from an editor and its selection, 26 | * also considering marker attributes which store info about the previously generated diagram. 27 | * @param editorPart 28 | * @param selection 29 | * @param markerAttributes 30 | * @return the corresponding diagram text 31 | */ 32 | public String getDiagramText(IEditorPart editorPart, ISelection selection, Map markerAttributes); 33 | 34 | /** 35 | * Generates the diagram from the file contents 36 | * @param path 37 | * @return the corresponding diagram text 38 | */ 39 | public String getDiagramText(IPath path); 40 | } 41 | -------------------------------------------------------------------------------- /bundles/no.hal.osgi.emf/src/no/hal/osgi/Manifest.java: -------------------------------------------------------------------------------- 1 | /** 2 | */ 3 | package no.hal.osgi; 4 | 5 | import no.hal.osgi.emf.util.Version; 6 | 7 | /** 8 | * 9 | * A representation of the model object 'Manifest'. 10 | * 11 | * 12 | *

13 | * The following features are supported: 14 | *

15 | *
    16 | *
  • {@link no.hal.osgi.Manifest#getVersion Version}
  • 17 | *
18 | * 19 | * @see no.hal.osgi.OsgiPackage#getManifest() 20 | * @model 21 | * @generated 22 | */ 23 | public interface Manifest extends GenericAttributesContainer { 24 | /** 25 | * Returns the value of the 'Version' attribute. 26 | * 27 | *

28 | * If the meaning of the 'Version' containment reference isn't clear, 29 | * there really should be more of a description here... 30 | *

31 | * 32 | * @return the value of the 'Version' attribute. 33 | * @see #setVersion(Version) 34 | * @see no.hal.osgi.OsgiPackage#getManifest_Version() 35 | * @model dataType="no.hal.osgi.Version" 36 | * @generated 37 | */ 38 | Version getVersion(); 39 | 40 | /** 41 | * Sets the value of the '{@link no.hal.osgi.Manifest#getVersion Version}' attribute. 42 | * 43 | * 44 | * @param value the new value of the 'Version' attribute. 45 | * @see #getVersion() 46 | * @generated 47 | */ 48 | void setVersion(Version value); 49 | 50 | } // Manifest 51 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.osgi/src/net/sourceforge/plantuml/osgi/OsgiComponentDiagramIntentProvider.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.osgi; 2 | 3 | import java.util.Collection; 4 | import java.util.Collections; 5 | 6 | import org.eclipse.core.runtime.IPath; 7 | import org.eclipse.emf.common.util.URI; 8 | import org.eclipse.ui.IEditorPart; 9 | import org.eclipse.ui.IPathEditorInput; 10 | 11 | import net.sourceforge.plantuml.eclipse.utils.WorkbenchPartDiagramIntentProviderContext; 12 | import net.sourceforge.plantuml.text.AbstractDiagramIntentProvider; 13 | import net.sourceforge.plantuml.util.DiagramIntent; 14 | 15 | public class OsgiComponentDiagramIntentProvider extends AbstractDiagramIntentProvider { 16 | 17 | public OsgiComponentDiagramIntentProvider() { 18 | super(null); 19 | } 20 | 21 | @Override 22 | public boolean supportsEditor(final IEditorPart editorPart) { 23 | if (editorPart.getEditorInput() instanceof IPathEditorInput) { 24 | final IPathEditorInput editorInput = (IPathEditorInput) editorPart.getEditorInput(); 25 | if ("xml".equals(editorInput.getPath().getFileExtension())) { 26 | return true; 27 | } 28 | } 29 | return false; 30 | } 31 | 32 | @Override 33 | protected Collection getDiagramInfos(final WorkbenchPartDiagramIntentProviderContext context) { 34 | final IPath path = context.getPath(); 35 | if (path != null) { 36 | final URI uri = URI.createFileURI(path.toString()); 37 | return Collections.singletonList(new OsgiComponentDiagramIntent(uri)); 38 | } 39 | return null; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.jdt/src/net/sourceforge/plantuml/jdt/Activator.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.jdt; 2 | 3 | import org.eclipse.ui.plugin.AbstractUIPlugin; 4 | import org.osgi.framework.BundleContext; 5 | 6 | /** 7 | * The activator class controls the plug-in life cycle 8 | * 9 | * @author durif_c 10 | */ 11 | public class Activator extends AbstractUIPlugin { 12 | 13 | // The plug-in ID 14 | public static final String PLUGIN_ID = "net.sourceforge.plantuml.jdt"; 15 | 16 | // The shared instance 17 | private static Activator plugin; 18 | 19 | /** 20 | * The constructor 21 | */ 22 | public Activator() { 23 | // Empty constructor 24 | } 25 | 26 | /* 27 | * (non-Javadoc) 28 | * 29 | * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) 30 | */ 31 | public void start(BundleContext context) throws Exception { 32 | super.start(context); 33 | plugin = this; 34 | } 35 | 36 | /* 37 | * (non-Javadoc) 38 | * 39 | * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) 40 | */ 41 | public void stop(BundleContext context) throws Exception { 42 | plugin = null; 43 | super.stop(context); 44 | } 45 | 46 | /** 47 | * Returns the shared instance 48 | * 49 | * @return the shared instance 50 | */ 51 | public static Activator getDefault() { 52 | return plugin; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.jdt/src/net/sourceforge/plantuml/jdt/ClassFileEditorDiagramTextProvider.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.jdt; 2 | 3 | import java.util.Arrays; 4 | import java.util.Collection; 5 | import java.util.Collections; 6 | 7 | import org.eclipse.core.runtime.NullProgressMonitor; 8 | import org.eclipse.jdt.core.IClassFile; 9 | import org.eclipse.jdt.core.JavaModelException; 10 | import org.eclipse.ui.IEditorInput; 11 | import org.eclipse.ui.IEditorPart; 12 | import org.eclipse.ui.texteditor.ITextEditor; 13 | 14 | import net.sourceforge.plantuml.eclipse.utils.WorkbenchPartDiagramIntentProviderContext; 15 | import net.sourceforge.plantuml.text.AbstractDiagramIntentProvider; 16 | import net.sourceforge.plantuml.util.DiagramIntent; 17 | 18 | public class ClassFileEditorDiagramTextProvider extends AbstractDiagramIntentProvider { 19 | 20 | public ClassFileEditorDiagramTextProvider() { 21 | setEditorType(ITextEditor.class); 22 | } 23 | 24 | @Override 25 | protected Collection getDiagramInfos(final WorkbenchPartDiagramIntentProviderContext context) { 26 | if (context.getWorkbenchPart() instanceof IEditorPart) { 27 | final IEditorInput editorInput = ((IEditorPart) context.getWorkbenchPart()).getEditorInput(); 28 | IClassFile classFile = (IClassFile) editorInput.getAdapter(IClassFile.class); 29 | try { 30 | classFile.open(new NullProgressMonitor()); 31 | return Collections.singletonList(new JdtDiagramIntent(Arrays.asList(classFile.getType()))); 32 | } catch (final JavaModelException e) { 33 | } 34 | } 35 | return null; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /bundles/no.hal.osgi.emf/src/no/hal/osgi/ExportedPackage.java: -------------------------------------------------------------------------------- 1 | /** 2 | */ 3 | package no.hal.osgi; 4 | 5 | import no.hal.osgi.emf.util.Version; 6 | 7 | 8 | /** 9 | * 10 | * A representation of the model object 'Exported Package'. 11 | * 12 | * 13 | *

14 | * The following features are supported: 15 | *

16 | *
    17 | *
  • {@link no.hal.osgi.ExportedPackage#getVersion Version}
  • 18 | *
19 | * 20 | * @see no.hal.osgi.OsgiPackage#getExportedPackage() 21 | * @model 22 | * @generated 23 | */ 24 | public interface ExportedPackage extends BundlePackage { 25 | /** 26 | * Returns the value of the 'Version' attribute. 27 | * 28 | *

29 | * If the meaning of the 'Version' containment reference isn't clear, 30 | * there really should be more of a description here... 31 | *

32 | * 33 | * @return the value of the 'Version' attribute. 34 | * @see #setVersion(Version) 35 | * @see no.hal.osgi.OsgiPackage#getExportedPackage_Version() 36 | * @model dataType="no.hal.osgi.Version" 37 | * @generated 38 | */ 39 | Version getVersion(); 40 | 41 | /** 42 | * Sets the value of the '{@link no.hal.osgi.ExportedPackage#getVersion Version}' attribute. 43 | * 44 | * 45 | * @param value the new value of the 'Version' attribute. 46 | * @see #getVersion() 47 | * @generated 48 | */ 49 | void setVersion(Version value); 50 | 51 | } // ExportedPackage 52 | -------------------------------------------------------------------------------- /bundles/no.hal.osgi.emf/src/no/hal/osgi/BundlePackage.java: -------------------------------------------------------------------------------- 1 | /** 2 | */ 3 | package no.hal.osgi; 4 | 5 | import no.hal.osgi.emf.util.QualifiedName; 6 | import org.eclipse.emf.ecore.EObject; 7 | 8 | /** 9 | * 10 | * A representation of the model object 'Bundle Package'. 11 | * 12 | * 13 | *

14 | * The following features are supported: 15 | *

16 | *
    17 | *
  • {@link no.hal.osgi.BundlePackage#getName Name}
  • 18 | *
19 | * 20 | * @see no.hal.osgi.OsgiPackage#getBundlePackage() 21 | * @model abstract="true" 22 | * @generated 23 | */ 24 | public interface BundlePackage extends EObject { 25 | /** 26 | * Returns the value of the 'Name' attribute. 27 | * 28 | *

29 | * If the meaning of the 'Name' attribute isn't clear, 30 | * there really should be more of a description here... 31 | *

32 | * 33 | * @return the value of the 'Name' attribute. 34 | * @see #setName(QualifiedName) 35 | * @see no.hal.osgi.OsgiPackage#getBundlePackage_Name() 36 | * @model dataType="no.hal.osgi.QualifiedName" 37 | * @generated 38 | */ 39 | QualifiedName getName(); 40 | 41 | /** 42 | * Sets the value of the '{@link no.hal.osgi.BundlePackage#getName Name}' attribute. 43 | * 44 | * 45 | * @param value the new value of the 'Name' attribute. 46 | * @see #getName() 47 | * @generated 48 | */ 49 | void setName(QualifiedName value); 50 | 51 | } // BundlePackage 52 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/eclipse/views/DiagramSourceView.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.eclipse.views; 2 | 3 | import org.eclipse.core.runtime.IProgressMonitor; 4 | import org.eclipse.swt.SWT; 5 | import org.eclipse.swt.widgets.Composite; 6 | import org.eclipse.swt.widgets.Text; 7 | 8 | import net.sourceforge.plantuml.util.DiagramIntent; 9 | 10 | public class DiagramSourceView extends AbstractDiagramSourceView { 11 | 12 | private String diagramText; 13 | private Text diagramTextView; 14 | 15 | @Override 16 | public void createPartControl(final Composite parent) { 17 | diagramTextView = new Text(parent, SWT.MULTI | SWT.V_SCROLL); 18 | diagramTextView.setEditable(false); 19 | super.createPartControl(parent); 20 | } 21 | 22 | @Override 23 | protected void updateDiagramText(final String textDiagram, final DiagramIntent diagramIntent, final IProgressMonitor progressMonitor) { 24 | if (isValidControl(diagramTextView)) { 25 | setDiagramViewStatus(ViewStatus.DIAGRAM_VIEW_TEXT, textDiagram); 26 | this.diagramText = textDiagram; 27 | setDiagramViewStatus(ViewStatus.DIAGRAM_VIEW_DATA, textDiagram); 28 | asyncExec(() -> { 29 | if (isValidControl(diagramTextView)) { 30 | final String text = (textDiagram == null ? "" : textDiagram); 31 | diagramTextView.setText(text); 32 | setDiagramViewStatus(ViewStatus.DIAGRAM_VIEW, text); 33 | } 34 | }); 35 | } 36 | } 37 | 38 | @Override 39 | public String getDiagramText() { 40 | return diagramText; 41 | } 42 | 43 | @Override 44 | public void setFocus() { 45 | diagramTextView.setFocus(); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: Plantuml Plug-in 4 | Bundle-SymbolicName: net.sourceforge.plantuml.eclipse; singleton:=true 5 | Bundle-Version: 1.1.33.qualifier 6 | Bundle-Activator: net.sourceforge.plantuml.eclipse.Activator 7 | Bundle-Vendor: PlantUML Team 8 | Require-Bundle: org.eclipse.ui.ide;bundle-version="3.10.2", 9 | org.eclipse.ui;bundle-version="3.106.1", 10 | org.eclipse.core.resources;bundle-version="3.9.1", 11 | net.sourceforge.plantuml.lib;bundle-version="1.2024.5" 12 | Bundle-ActivationPolicy: lazy 13 | Bundle-RequiredExecutionEnvironment: JavaSE-17 14 | Import-Package: net.sourceforge.plantuml.eclipse.imagecontrol, 15 | net.sourceforge.plantuml.eclipse.imagecontrol.jface, 16 | net.sourceforge.plantuml.eclipse.imagecontrol.jface.actions, 17 | org.eclipse.core.runtime, 18 | org.eclipse.core.runtime.jobs, 19 | org.eclipse.jface.action, 20 | org.eclipse.jface.dialogs, 21 | org.eclipse.jface.preference, 22 | org.eclipse.jface.resource, 23 | org.eclipse.jface.util, 24 | org.eclipse.jface.viewers, 25 | org.eclipse.swt, 26 | org.eclipse.swt.dnd, 27 | org.eclipse.swt.events, 28 | org.eclipse.swt.graphics, 29 | org.eclipse.swt.layout, 30 | org.eclipse.swt.printing, 31 | org.eclipse.swt.program, 32 | org.eclipse.swt.widgets, 33 | org.eclipse.ui, 34 | org.eclipse.ui.part, 35 | org.eclipse.ui.plugin, 36 | org.osgi.framework;version="1.8.0" 37 | Export-Package: net.sourceforge.plantuml.eclipse, 38 | net.sourceforge.plantuml.eclipse.utils, 39 | net.sourceforge.plantuml.eclipse.views, 40 | net.sourceforge.plantuml.util 41 | Bundle-ClassPath: . 42 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.jdt.tests/src/net/sourceforge/plantuml/jdt/test/JavaProjectConfigurer.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.jdt.test; 2 | 3 | import java.lang.reflect.InvocationTargetException; 4 | import java.util.ArrayList; 5 | import java.util.List; 6 | 7 | import org.eclipse.core.resources.IProject; 8 | import org.eclipse.jdt.core.IClasspathEntry; 9 | import org.eclipse.jdt.core.IJavaProject; 10 | import org.eclipse.jdt.core.IPackageFragmentRoot; 11 | import org.eclipse.jdt.core.JavaCore; 12 | import org.eclipse.jdt.core.JavaModelException; 13 | import org.eclipse.jdt.launching.JavaRuntime; 14 | 15 | import net.sourceforge.plantuml.eclipse.test.util.ProjectConfigurer; 16 | import net.sourceforge.plantuml.eclipse.test.util.WorkspaceHelper; 17 | 18 | public class JavaProjectConfigurer implements ProjectConfigurer { 19 | 20 | private final WorkspaceHelper workspaceHelper = new WorkspaceHelper(); 21 | 22 | @Override 23 | public void configureProject(final IProject project) throws InvocationTargetException, InterruptedException, JavaModelException { 24 | final IJavaProject javaProject = JavaCore.create(project); 25 | 26 | final List entries = new ArrayList(); 27 | entries.add(JavaCore.newContainerEntry(JavaRuntime.newDefaultJREContainerPath().append("org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType").append("JavaSE-1.8"))); 28 | 29 | final IPackageFragmentRoot srcRoot = javaProject.getPackageFragmentRoot(workspaceHelper.createFolder(project, "src")); 30 | entries.add(JavaCore.newSourceEntry(srcRoot.getPath())); 31 | //add libs to project class path 32 | javaProject.setRawClasspath(entries.toArray(new IClasspathEntry[entries.size()]), null); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/src/net/sourceforge/plantuml/text/test/TextEditorDiagramTextProviderTest.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.text.test; 2 | 3 | import org.junit.Test; 4 | 5 | import net.sourceforge.plantuml.eclipse.test.util.AbstractDiagramTextTest; 6 | import net.sourceforge.plantuml.eclipse.utils.PlantumlConstants; 7 | import net.sourceforge.plantuml.text.TextEditorDiagramIntentProvider; 8 | 9 | public class TextEditorDiagramTextProviderTest { 10 | 11 | private final TextEditorDiagramIntentProvider diagramTextProvider = new TextEditorDiagramIntentProvider(PlantumlConstants.START_UML, PlantumlConstants.END_UML); 12 | 13 | private final String toto = PlantumlConstants.START_UML + "\ntoto\n" + PlantumlConstants.END_UML; 14 | 15 | private String getDiagramText(final String s) { 16 | return diagramTextProvider.getDiagramText(s); 17 | } 18 | 19 | @Test 20 | public void testWithoutPrefix() { 21 | AbstractDiagramTextTest.assertDiagramText(toto, getDiagramText(toto)); 22 | } 23 | 24 | @Test 25 | public void testWithWrongPrefix() { 26 | AbstractDiagramTextTest.assertDiagramText(PlantumlConstants.START_UML + "\n\n" + PlantumlConstants.END_UML, getDiagramText("toto" + toto)); 27 | } 28 | 29 | @Test 30 | public void testWithSimplePrefix() { 31 | AbstractDiagramTextTest.assertDiagramText(toto, getDiagramText(" * " + PlantumlConstants.START_UML + "\n * toto\n * " + PlantumlConstants.END_UML + "\n")); 32 | } 33 | 34 | @Test 35 | public void testWithMixedWhitespacePrefix() { 36 | AbstractDiagramTextTest.assertDiagramText(toto, getDiagramText(" *\t" + PlantumlConstants.START_UML + "\n\t*\ttoto\n * " + PlantumlConstants.END_UML + "\n")); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /bundles/no.hal.osgi.emf/src/org/osgi/scr/util/ScrResourceFactoryImpl.java: -------------------------------------------------------------------------------- 1 | /** 2 | */ 3 | package org.osgi.scr.util; 4 | 5 | import org.eclipse.emf.common.util.URI; 6 | 7 | import org.eclipse.emf.ecore.resource.Resource; 8 | 9 | import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; 10 | 11 | import org.eclipse.emf.ecore.xmi.XMLResource; 12 | 13 | /** 14 | * 15 | * The Resource Factory associated with the package. 16 | * 17 | * @see org.osgi.scr.util.ScrResourceImpl 18 | * @generated 19 | */ 20 | public class ScrResourceFactoryImpl extends ResourceFactoryImpl { 21 | /** 22 | * Creates an instance of the resource factory. 23 | * 24 | * 25 | * @generated 26 | */ 27 | public ScrResourceFactoryImpl() { 28 | super(); 29 | } 30 | 31 | /** 32 | * Creates an instance of the resource. 33 | * 34 | * 35 | * @generated 36 | */ 37 | @Override 38 | public Resource createResource(URI uri) { 39 | XMLResource result = new ScrResourceImpl(uri); 40 | result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); 41 | result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); 42 | 43 | result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); 44 | 45 | result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); 46 | result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); 47 | 48 | result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); 49 | return result; 50 | } 51 | 52 | } //ScrResourceFactoryImpl 53 | -------------------------------------------------------------------------------- /tests/net.sourceforge.plantuml.text.tests/src/net/sourceforge/plantuml/text/test/TextEditorDiagramTextProviderTest2.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.text.test; 2 | 3 | import org.eclipse.core.resources.IFile; 4 | import org.eclipse.core.runtime.Path; 5 | import org.junit.Before; 6 | import org.junit.Test; 7 | 8 | import net.sourceforge.plantuml.eclipse.test.util.AbstractDiagramTextTest; 9 | import net.sourceforge.plantuml.eclipse.utils.PlantumlConstants; 10 | import net.sourceforge.plantuml.eclipse.views.PlantUmlView; 11 | 12 | public class TextEditorDiagramTextProviderTest2 extends AbstractDiagramTextTest { 13 | 14 | @Before 15 | public void setUpJavaProject() throws Exception { 16 | createProject("texteditortest"); 17 | } 18 | 19 | private void testJavaEditorDiagramText(String path, String expected) throws Exception { 20 | String pluginProject = "net.sourceforge.plantuml.text.tests"; 21 | IFile file = createFile(new Path("/texteditortest/" + path), getPluginTestFileContents(pluginProject, path)); 22 | waitForBuild(); 23 | openEditor(file, "org.eclipse.ui.DefaultTextEditor"); 24 | PlantUmlView view = openView("net.sourceforge.plantuml.eclipse.views.PlantUmlView", PlantUmlView.class); 25 | 26 | // wait some time, otherwise the view has not been initialized and filled 27 | sleep(1500); 28 | 29 | AbstractDiagramTextTest.assertDiagramText(expected, view.getDiagramText()); 30 | } 31 | 32 | @Test 33 | public void testJavaEditorDiagramFromComment() throws Exception { 34 | // TODO Improve this test, sometimes it fails, maybe because of timing issues 35 | testJavaEditorDiagramText("src/net/sourceforge/plantuml/text/test/ClassWithDiagramInComment.java", 36 | PlantumlConstants.START_UML + "\nclass ClassWithDiagramInComment {\n\tint field\n}\n" + PlantumlConstants.END_UML); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /bundles/net.sourceforge.plantuml.eclipse/src/net/sourceforge/plantuml/util/DiagramImageData.java: -------------------------------------------------------------------------------- 1 | package net.sourceforge.plantuml.util; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Collection; 5 | 6 | import org.eclipse.core.runtime.IPath; 7 | import org.eclipse.swt.graphics.ImageData; 8 | 9 | import net.sourceforge.plantuml.eclipse.utils.LinkData; 10 | 11 | public class DiagramImageData { 12 | 13 | private final DiagramData diagramData; 14 | private final int imageNum; 15 | 16 | private ImageData imageData; 17 | 18 | private final Collection links = new ArrayList(); 19 | 20 | public DiagramImageData(final DiagramData diagram, final int imageNum, final ImageData imageData) { 21 | super(); 22 | this.diagramData = diagram; 23 | this.imageNum = imageNum; 24 | this.imageData = imageData; 25 | } 26 | 27 | public DiagramImageData(final DiagramData diagram, final ImageData imageData) { 28 | this(diagram, 0, imageData); 29 | } 30 | 31 | public DiagramImageData(final DiagramData diagram, final int imageNum) { 32 | this(diagram, imageNum, null); 33 | } 34 | 35 | public DiagramImageData(final DiagramData diagram) { 36 | this(diagram, 0); 37 | } 38 | 39 | public DiagramImageData withImageNum(final int imageNum) { 40 | return new DiagramImageData(diagramData, imageNum); 41 | } 42 | 43 | public DiagramData getDiagramData() { 44 | return diagramData; 45 | } 46 | 47 | public IPath getSourcePath() { 48 | return diagramData.getOriginal(); 49 | } 50 | 51 | public int getImageNum() { 52 | return imageNum; 53 | } 54 | 55 | public ImageData getImage() { 56 | if (imageData == null) { 57 | imageData = diagramData.getImage(imageNum, links); 58 | } 59 | return imageData; 60 | } 61 | 62 | public Iterable getLinks() { 63 | return links; 64 | } 65 | } 66 | --------------------------------------------------------------------------------