Skip to content

Commit

Permalink
Create new ant module called svg and moved everything to it
Browse files Browse the repository at this point in the history
  • Loading branch information
clenz committed Nov 20, 2024
1 parent 2ed9cf3 commit b6558c3
Show file tree
Hide file tree
Showing 17 changed files with 610 additions and 433 deletions.
5 changes: 5 additions & 0 deletions ide/svg/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="netbeans" name="ide/svg">
<description>Builds, tests, and runs the project org.netbeans.modules.svg</description>
<import file="../../nbbuild/templates/projectized.xml"/>
</project>
28 changes: 28 additions & 0 deletions ide/svg/licenseinfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<licenseinfo>
<fileset>
<file>src/org/netbeans/modules/svg/resources/svgLogo.png</file>
<license ref="Apache-2.0-ASF" />
<comment type="TEMPLATE_MINIMAL_IP"/>
</fileset>
</licenseinfo>
7 changes: 7 additions & 0 deletions ide/svg/manifest.mf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Manifest-Version: 1.0
AutoUpdate-Show-In-Client: true
OpenIDE-Module: org.netbeans.modules.svg
OpenIDE-Module-Layer: org/netbeans/modules/svg/resources/layer.xml
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/svg/Bundle.properties
OpenIDE-Module-Specification-Version: 1.0

2 changes: 2 additions & 0 deletions ide/svg/nbproject/project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
javac.source=1.8
javac.compilerargs=-Xlint -Xlint:-serial
128 changes: 128 additions & 0 deletions ide/svg/nbproject/project.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.apisupport.project</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
<code-name-base>org.netbeans.modules.svg</code-name-base>
<module-dependencies>
<dependency>
<code-name-base>org.netbeans.api.xml.ui</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>1</release-version>
<specification-version>1.70</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.core.multiview</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>1</release-version>
<specification-version>1.70</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.libs.batik.read</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>1.22</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.modules.xml</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>1.60</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.modules.xml.core</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>2</release-version>
<specification-version>1.69</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.spi.navigator</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>1</release-version>
<specification-version>1.64</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.awt</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>7.94</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.filesystems</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>9.39</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.loaders</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>7.96</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.nodes</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>7.71</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.util</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>9.34</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.util.lookup</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>8.60</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.util.ui</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>9.35</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.windows</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>6.103</specification-version>
</run-dependency>
</dependency>
</module-dependencies>
<public-packages/>
</data>
</configuration>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# under the License.


OpenIDE-Module-Name=SVG Support

## SVGDataObject.java
CTL_SourceTabCaption=&Source
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.netbeans.modules.xml.svg;
package org.netbeans.modules.svg;

import java.util.logging.Level;
import java.util.logging.Logger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.netbeans.modules.xml.svg;
package org.netbeans.modules.svg;

import org.netbeans.core.spi.multiview.MultiViewElement;
import org.netbeans.core.spi.multiview.text.MultiViewEditorElement;
Expand Down Expand Up @@ -53,7 +53,7 @@
)
@DataObject.Registration(
mimeType = SVGDataObject.MIME_TYPE,
iconBase = "org/netbeans/modules/xml/resources/svgLogo.png",
iconBase = "org/netbeans/modules/svg/resources/svgLogo.png",
displayName = "#LBL_Svg_LOADER",
position = 300
)
Expand Down Expand Up @@ -99,8 +99,8 @@ public synchronized Synchronizator getSyncInterface() {
}

@MultiViewElement.Registration(
displayName = "org.netbeans.modules.xml.Bundle#CTL_SourceTabCaption",
iconBase = "org/netbeans/modules/xml/resources/svgLogo.png",
displayName = "org.netbeans.modules.svg.Bundle#CTL_SourceTabCaption",
iconBase = "org/netbeans/modules/svg/resources/svgLogo.png",
persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED,
preferredID = "SVG",
mimeType = MIME_TYPE,
Expand All @@ -121,7 +121,7 @@ private class ViewCookieFactory implements CookieSet.Factory {
@Override
public Node.Cookie createCookie(Class klass) {
if (klass == ViewCookie.class) {
return new ViewSupport(org.netbeans.modules.xml.svg.SVGDataObject.this.getPrimaryEntry());
return new ViewSupport(org.netbeans.modules.svg.SVGDataObject.this.getPrimaryEntry());
} else {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.netbeans.modules.xml.svg;
package org.netbeans.modules.svg;

import java.io.IOException;
import java.util.logging.Level;
Expand Down Expand Up @@ -48,7 +48,7 @@
*/
@MultiViewElement.Registration(
displayName = "#LBL_SVGViewer",
iconBase = "org/netbeans/modules/xml/resources/svgLogo.png",
iconBase = "org/netbeans/modules/svg/resources/svgLogo.png",
mimeType = "image/svg+xml",
persistenceType = TopComponent.PERSISTENCE_NEVER,
preferredID = "SVGViewer",
Expand Down
89 changes: 89 additions & 0 deletions ide/svg/src/org/netbeans/modules/svg/resources/layer.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd">
<filesystem>
<folder name="Loaders">
<folder name="image">
<folder name="svg+xml">
<folder name="Actions">
<file name="org-openide-actions-ViewAction.shadow">
<attr name="originalFile" stringvalue="Actions/System/org-openide-actions-ViewAction.instance"/>
<attr name="position" intvalue="200"/>
</file>
<file name="org-netbeans-modules-xml-actions-XMLUpdateDocumentAction.instance">
<attr name="originalFile" stringvalue= "Actions/XML/org-netbeans-modules-xml-actions-XMLUpdateDocumentAction.instance"/>
<attr name="position" intvalue="500"/>
<attr name="misplaced.action.allowed" boolvalue="true"/>
</file>
<file name="org-netbeans-modules-xml-tools-actions-CheckAction.shadow">
<attr name="originalFile" stringvalue="Actions/XML/org-netbeans-modules-xml-tools-actions-CheckAction.instance"/>
<attr name="position" intvalue="600"/>
</file>
<file name="org-netbeans-modules-xml-tools-actions-ValidateAction.shadow">
<attr name="originalFile" stringvalue="Actions/XML/org-netbeans-modules-xml-tools-actions-ValidateAction.instance"/>
<attr name="position" intvalue="700"/>
</file>
<file name="org-openide-actions-CopyAction.shadow">
<attr name="originalFile" stringvalue="Actions/Edit/org-openide-actions-CopyAction.instance"/>
<attr name="position" intvalue="900"/>
</file>
<file name="org-openide-actions-CutAction.shadow">
<attr name="originalFile" stringvalue="Actions/Edit/org-openide-actions-CutAction.instance"/>
<attr name="position" intvalue="800"/>
</file>
<file name="org-openide-actions-DeleteAction.shadow">
<attr name="originalFile" stringvalue="Actions/Edit/org-openide-actions-DeleteAction.instance"/>
<attr name="position" intvalue="1200"/>
</file>
<file name="org-openide-actions-OpenAction.shadow">
<attr name="originalFile" stringvalue="Actions/System/org-openide-actions-OpenAction.instance"/>
<attr name="position" intvalue="100"/>
</file>
<file name="org-openide-actions-FileSystemAction.shadow">
<attr name="originalFile" stringvalue="Actions/System/org-openide-actions-FileSystemAction.instance"/>
<attr name="position" intvalue="1550"/>
</file>
<file name="org-openide-actions-PasteAction.shadow">
<attr name="originalFile" stringvalue="Actions/Edit/org-openide-actions-PasteAction.instance"/>
<attr name="position" intvalue="1000"/>
</file>
<file name="org-openide-actions-RenameAction.shadow">
<attr name="originalFile" stringvalue="Actions/System/org-openide-actions-RenameAction.instance"/>
<attr name="position" intvalue="1300"/>
</file>
<file name="org-openide-actions-SaveAsTemplateAction.shadow">
<attr name="originalFile" stringvalue="Actions/System/org-openide-actions-SaveAsTemplateAction.instance"/>
<attr name="position" intvalue="1500"/>
</file>
<file name="org-openide-actions-ToolsAction.shadow">
<attr name="originalFile" stringvalue="Actions/System/org-openide-actions-ToolsAction.instance"/>
<attr name="position" intvalue="1700"/>
</file>
<file name="org-openide-actions-PropertiesAction.shadow">
<attr name="originalFile" stringvalue="Actions/System/org-openide-actions-PropertiesAction.instance"/>
<attr name="position" intvalue="1800"/>
</file>
<file name="sep-0.instance">
<attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
<attr name="position" intvalue="400"/>
</file>
<file name="sep-1.instance">
<attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
<attr name="position" intvalue="700"/>
</file>
<file name="sep-2.instance">
<attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
<attr name="position" intvalue="1100"/>
</file>
<file name="sep-3.instance">
<attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
<attr name="position" intvalue="1400"/>
</file>
<file name="sep-4.instance">
<attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
<attr name="position" intvalue="1600"/>
</file>
</folder>
</folder>
</folder>
</folder>
</filesystem>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion ide/xml/licenseinfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
<file>src/org/netbeans/modules/xml/resources/dtdObject.gif</file>
<file>src/org/netbeans/modules/xml/resources/blank.gif</file>
<file>src/org/netbeans/modules/xml/resources/xmlObject32.gif</file>
<file>src/org/netbeans/modules/xml/resources/svgLogo.png</file>
<file>src/org/netbeans/modules/xml/wizard/impl/folder_opened.png</file>
<file>src/org/netbeans/modules/xml/wizard/impl/folder_closed.png</file>
<license ref="Apache-2.0-ASF" />
Expand Down
Loading

0 comments on commit b6558c3

Please sign in to comment.