Skip to content

Commit 19e104c

Browse files
committed
Add svg-preview support, backgrounds, zoom function and navigator thumbnail
1 parent cd3f729 commit 19e104c

28 files changed

+2501
-0
lines changed

ide/editor.kit/nbproject/project.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,12 @@
138138
<specification-version>1.21</specification-version>
139139
</run-dependency>
140140
</dependency>
141+
<dependency>
142+
<code-name-base>org.netbeans.modules.svg</code-name-base>
143+
<run-dependency>
144+
<specification-version>1.0</specification-version>
145+
</run-dependency>
146+
</dependency>
141147
<dependency>
142148
<code-name-base>org.netbeans.modules.xml.core</code-name-base>
143149
<run-dependency>

ide/svg/build.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Licensed to the Apache Software Foundation (ASF) under one
5+
or more contributor license agreements. See the NOTICE file
6+
distributed with this work for additional information
7+
regarding copyright ownership. The ASF licenses this file
8+
to you under the Apache License, Version 2.0 (the
9+
"License"); you may not use this file except in compliance
10+
with the License. You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
14+
Unless required by applicable law or agreed to in writing,
15+
software distributed under the License is distributed on an
16+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17+
KIND, either express or implied. See the License for the
18+
specific language governing permissions and limitations
19+
under the License.
20+
21+
-->
22+
<project basedir="." default="netbeans" name="ide/svg">
23+
<description>Builds, tests, and runs the project org.netbeans.modules.svg</description>
24+
<import file="../../nbbuild/templates/projectized.xml"/>
25+
</project>

ide/svg/licenseinfo.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Licensed to the Apache Software Foundation (ASF) under one
5+
or more contributor license agreements. See the NOTICE file
6+
distributed with this work for additional information
7+
regarding copyright ownership. The ASF licenses this file
8+
to you under the Apache License, Version 2.0 (the
9+
"License"); you may not use this file except in compliance
10+
with the License. You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
14+
Unless required by applicable law or agreed to in writing,
15+
software distributed under the License is distributed on an
16+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17+
KIND, either express or implied. See the License for the
18+
specific language governing permissions and limitations
19+
under the License.
20+
21+
-->
22+
<licenseinfo>
23+
<fileset>
24+
<file>src/org/netbeans/modules/svg/resources/svgLogo.png</file>
25+
<license ref="Apache-2.0-ASF" />
26+
<comment type="COMMENT_UNSUPPORTED" />
27+
</fileset>
28+
</licenseinfo>

ide/svg/manifest.mf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Manifest-Version: 1.0
2+
AutoUpdate-Show-In-Client: false
3+
OpenIDE-Module: org.netbeans.modules.svg
4+
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/svg/Bundle.properties
5+
OpenIDE-Module-Specification-Version: 1.0

ide/svg/nbproject/project.properties

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
javac.release=17
19+
javac.compilerargs=-Xlint -Xlint:-serial

ide/svg/nbproject/project.xml

Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Licensed to the Apache Software Foundation (ASF) under one
5+
or more contributor license agreements. See the NOTICE file
6+
distributed with this work for additional information
7+
regarding copyright ownership. The ASF licenses this file
8+
to you under the Apache License, Version 2.0 (the
9+
"License"); you may not use this file except in compliance
10+
with the License. You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
14+
Unless required by applicable law or agreed to in writing,
15+
software distributed under the License is distributed on an
16+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17+
KIND, either express or implied. See the License for the
18+
specific language governing permissions and limitations
19+
under the License.
20+
21+
-->
22+
<project xmlns="http://www.netbeans.org/ns/project/1">
23+
<type>org.netbeans.modules.apisupport.project</type>
24+
<configuration>
25+
<data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
26+
<code-name-base>org.netbeans.modules.svg</code-name-base>
27+
<module-dependencies>
28+
<dependency>
29+
<code-name-base>org.netbeans.api.xml.ui</code-name-base>
30+
<build-prerequisite/>
31+
<compile-dependency/>
32+
<run-dependency>
33+
<release-version>1</release-version>
34+
<specification-version>1.70</specification-version>
35+
</run-dependency>
36+
</dependency>
37+
<dependency>
38+
<code-name-base>org.netbeans.core.ide</code-name-base>
39+
<build-prerequisite/>
40+
<compile-dependency/>
41+
<run-dependency>
42+
<release-version>1</release-version>
43+
<specification-version>1.68</specification-version>
44+
</run-dependency>
45+
</dependency>
46+
<dependency>
47+
<code-name-base>org.netbeans.core.multiview</code-name-base>
48+
<build-prerequisite/>
49+
<compile-dependency/>
50+
<run-dependency>
51+
<release-version>1</release-version>
52+
<specification-version>1.71</specification-version>
53+
</run-dependency>
54+
</dependency>
55+
<dependency>
56+
<code-name-base>org.netbeans.libs.jsvg</code-name-base>
57+
<build-prerequisite/>
58+
<compile-dependency/>
59+
<run-dependency>
60+
<release-version>2</release-version>
61+
<specification-version>1.7.1</specification-version>
62+
</run-dependency>
63+
</dependency>
64+
<dependency>
65+
<code-name-base>org.netbeans.modules.xml</code-name-base>
66+
<build-prerequisite/>
67+
<compile-dependency/>
68+
<run-dependency>
69+
<specification-version>1.60</specification-version>
70+
</run-dependency>
71+
</dependency>
72+
<dependency>
73+
<code-name-base>org.netbeans.modules.xml.core</code-name-base>
74+
<build-prerequisite/>
75+
<compile-dependency/>
76+
<run-dependency>
77+
<release-version>2</release-version>
78+
<specification-version>1.69</specification-version>
79+
</run-dependency>
80+
</dependency>
81+
<dependency>
82+
<code-name-base>org.netbeans.spi.navigator</code-name-base>
83+
<build-prerequisite/>
84+
<compile-dependency/>
85+
<run-dependency>
86+
<release-version>1</release-version>
87+
<specification-version>1.64</specification-version>
88+
</run-dependency>
89+
</dependency>
90+
<dependency>
91+
<code-name-base>org.openide.awt</code-name-base>
92+
<build-prerequisite/>
93+
<compile-dependency/>
94+
<run-dependency>
95+
<specification-version>7.94</specification-version>
96+
</run-dependency>
97+
</dependency>
98+
<dependency>
99+
<code-name-base>org.openide.dialogs</code-name-base>
100+
<build-prerequisite/>
101+
<compile-dependency/>
102+
<run-dependency>
103+
<specification-version>7.74</specification-version>
104+
</run-dependency>
105+
</dependency>
106+
<dependency>
107+
<code-name-base>org.openide.filesystems</code-name-base>
108+
<build-prerequisite/>
109+
<compile-dependency/>
110+
<run-dependency>
111+
<specification-version>9.39</specification-version>
112+
</run-dependency>
113+
</dependency>
114+
<dependency>
115+
<code-name-base>org.openide.loaders</code-name-base>
116+
<build-prerequisite/>
117+
<compile-dependency/>
118+
<run-dependency>
119+
<specification-version>7.96</specification-version>
120+
</run-dependency>
121+
</dependency>
122+
<dependency>
123+
<code-name-base>org.openide.nodes</code-name-base>
124+
<build-prerequisite/>
125+
<compile-dependency/>
126+
<run-dependency>
127+
<specification-version>7.71</specification-version>
128+
</run-dependency>
129+
</dependency>
130+
<dependency>
131+
<code-name-base>org.openide.util</code-name-base>
132+
<build-prerequisite/>
133+
<compile-dependency/>
134+
<run-dependency>
135+
<specification-version>9.34</specification-version>
136+
</run-dependency>
137+
</dependency>
138+
<dependency>
139+
<code-name-base>org.openide.util.lookup</code-name-base>
140+
<build-prerequisite/>
141+
<compile-dependency/>
142+
<run-dependency>
143+
<specification-version>8.60</specification-version>
144+
</run-dependency>
145+
</dependency>
146+
<dependency>
147+
<code-name-base>org.openide.util.ui</code-name-base>
148+
<build-prerequisite/>
149+
<compile-dependency/>
150+
<run-dependency>
151+
<specification-version>9.35</specification-version>
152+
</run-dependency>
153+
</dependency>
154+
<dependency>
155+
<code-name-base>org.openide.windows</code-name-base>
156+
<build-prerequisite/>
157+
<compile-dependency/>
158+
<run-dependency>
159+
<specification-version>6.103</specification-version>
160+
</run-dependency>
161+
</dependency>
162+
</module-dependencies>
163+
<public-packages/>
164+
</data>
165+
</configuration>
166+
</project>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
package org.netbeans.modules.svg;
20+
21+
/**
22+
*
23+
* @author Christian Lenz
24+
*/
25+
public enum BackgroundMode {
26+
DEFAULT, BLACK, WHITE, TRANSPARENT, DARK_TRANSPARENT
27+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
19+
OpenIDE-Module-Name=SVG Support
20+
21+
## SVGDataObject.java
22+
CTL_SourceTabCaption=&Source
23+
ERR_SVGDocument=SVG-Document is not available

0 commit comments

Comments
 (0)