forked from apache/netbeans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapichanges.xml
2769 lines (2763 loc) · 147 KB
/
apichanges.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?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.
-->
<!DOCTYPE apichanges PUBLIC "-//NetBeans//DTD API changes list 1.0//EN" "../../nbbuild/javadoctools/apichanges.dtd">
<apichanges>
<apidefs>
<apidef name="filesystems">Filesystems API</apidef>
</apidefs>
<changes>
<change id="LayerProcessorSupportedSource">
<api name="filesystems"/>
<summary>Declare support for all source levels.</summary>
<version major="9" minor="17"/>
<date year="2019" month="10" day="18"/>
<author login="sdedic"/>
<compatibility addition="yes" source="compatible" semantic="incompatible" binary="compatible"/>
<description>
<p>
<a href="@TOP@/org/openide/filesystems/annotations/LayerGeneratingProcessor.html"><code>LayerGeneratingProcessor</code></a> subclasses declare some
<a href="@JDK@/javax/lang/model/SourceVersion.html"><code>SourceVersion</code></a> support,
but as new JDKs are released, the declaration becomes obsolete and produces spurious warnings. The processors
are typically not affected by newer Java language features.
</p>
<p>
This change changes the default behaviour if NO
<a href="@JDK@/javax/annotation/processing/SupportedSourceVersion.html"><code>@SupportedSourceVersion</code></a>
annotation is present on subclass. From 8.40, the Processor will report
<a href="@JDK@/javax/lang/model/SourceVersion.html#latest--"><code>@SourceVersion.latest()</code></a>.
</p>
</description>
<class name="LayerGeneratingProcessor" package="org.openide.filesystems.annotations"/>
<issue number="NETBEANS-3250"/>
</change>
<change id="ArchiveRootProvider">
<api name="filesystems"/>
<summary>Pluggable archive files support for FileUtil</summary>
<version major="9" minor="10"/>
<date year="2015" month="5" day="28"/>
<author login="tzezula"/>
<compatibility addition="yes" semantic="compatible" binary="compatible"/>
<description>
To support JDK 9 image file as an archive the FileUtil's method
<code>getArchiveFile</code>,<code>getArchiveRoot</code> and <code>isArchiveFile</code>
are pluggable using a new SPI <code>ArchiveFileProvider</code>.
In addition to these methods a new method <code>isArchiveArtifact</code> was added.
This method can be used if given <code>URL</code> points into an archive.
</description>
<class name="FileUtil" package="org.openide.filesystems"/>
<class name="ArchiveRootProvider" package="org.openide.filesystems.spi"/>
</change>
<change id="repository.multiuser">
<api name="filesystems"/>
<summary>Support for multi-user environments</summary>
<version major="9" minor="5"/>
<date year="2015" month="2" day="25"/>
<author login="sdedic"/>
<compatibility addition="yes" modification="yes" semantic="compatible" binary="compatible"/>
<description>
To support multiple configurations (users, profiles, ...) executing in the same VM, multiple
Repositories can be created, one for each execution context. API has been added to acquire
and SPI to create a local Repository which holds config filesystem for the execution thraed.
</description>
<class name="Repository" package="org.openide.filesystems"/>
</change>
<change id="FileObject.symbolicLinks">
<api name="filesystems"/>
<summary>Support detection and reading of symbolic links.</summary>
<version major="9" minor="4"/>
<date year="2014" month="11" day="27"/>
<author login="jhavlin"/>
<compatibility addition="yes"/>
<description>
<p>
Add methods to <code>FileObject</code> for handling of
symbolic links:
</p>
<ul>
<li><code>isSymbolicLink()</code></li>
<li><code>readSymbolicLink()</code></li>
<li><code>readSymbolicLinkPath()</code></li>
<li><code>getCanonicalFileObject()</code></li>
</ul>
<p>
Add utility method to <code>FileUtil</code> for dealing with
recursive symbolic links.
</p>
<ul>
<li><code>isRecursiveSymbolicLink()</code></li>
</ul>
<p>
Introduce new interface <a href="@TOP@org/openide/filesystems/AbstractFileSystem.SymlinkInfo.html">AbstractFileSystem.SymlinkInfo</a>.
</p>
</description>
<class package="org.openide.filesystems" name="FileObject"/>
<class package="org.openide.filesystems" name="FileUtil"/>
<class package="org.openide.filesystems" name="AbstractFileSystem"/>
<issue number="237882"/>
</change>
<change id="FileLock.closeable">
<api name="filesystems"/>
<summary>FileLock implements AutoCloseable</summary>
<version major="9" minor="3"/>
<date year="2014" month="11" day="10"/>
<author login="sdedic"/>
<compatibility addition="yes" deletion="no" deprecation="no" source="compatible" binary="compatible"/>
<description>
<p>
<a href="@TOP@org/openide/filesystems/FileLock.html">FileLock</a>
implements AutoCloseable to work well in try-with-resources constructs.
</p>
</description>
<class package="org.openide.filesystems" name="FileLock"/>
<issue number="247915"/>
</change>
<change id="FileSystemStatus.icons2">
<api name="filesystems"/>
<summary>FileSystem.Status API removed</summary>
<version major="9" minor="1"/>
<date year="2014" month="10" day="3"/>
<author login="sdedic"/>
<compatibility modification="yes" deletion="yes" addition="yes" binary="compatible" source="compatible" semantic="incompatible"/>
<description>
<p>
The FileSystem.Status was entirely removed, as it references class java.awt.Image, which
is not available in compact jdk profiles and may trigger GUI system initialization. See
javadocs of <a href="@TOP@org/openide/filesystems/StatusDecorator.html">StatusDecorator</a>
for details.
</p>
</description>
<class package="org.openide.filesystems" name="StatusDecorator"/>
<issue number="247200"/>
</change>
<change id="FileSystemStatus.icons">
<api name="filesystems"/>
<summary>FileSystem.Status icon annotation moved</summary>
<version major="9" minor="0"/>
<date year="2014" month="4" day="11"/>
<author login="sdedic"/>
<compatibility modification="yes" addition="yes" binary="compatible" source="compatible" semantic="incompatible"/>
<description>
<p>
The default implementation of FileSystem.Status annotated file's icon using ImageUtilities
which uses AWT graphics etc. Such dependency is not desirable in a standalone FileSystem API
library.
</p>
<p>
The builtin implementation now does not work with the icon at all and returns null. A proper
implementation for FileSystem.Status is looked up in default Lookup and is implemented
properly (with Icon annotations) in <code>openide.filesystems.nb</code> module.
</p>
</description>
<issue number="243561"/>
</change>
<change id="getActionsDeprecated">
<api name="filesystems"/>
<summary>Deprecating FileSystem.getActions</summary>
<version major="8" minor="12"/>
<date year="2014" month="5" day="14"/>
<author login="jtulach"/>
<compatibility addition="yes"/>
<description>
<p>
Deprecating <code>getActions</code> method in preparation
of splitting filesystems API into UI (e.g. depending
on Swing) and non-UI part (that can run on JDK8 compact
profile). Introducing general replacement
<a href="@TOP@org/openide/filesystems/FileSystem.html#findExtrasFor-java.util.Set-">findExtrasFor</a>
instead...
</p>
</description>
<class package="org.openide.filesystems" name="FileSystem"/>
<class package="org.openide.filesystems" name="AbstractFileSystem"/>
<class package="org.openide.filesystems" name="MultiFileSystem"/>
<issue number="243265"/>
</change>
<change id="MultiFileObject.revealEntriesAttribute">
<api name="filesystems"/>
<summary>Allowed to reveal deleted files, or original files overriden by writable layer</summary>
<version major="8" minor="5"/>
<date year="2012" month="11" day="23"/>
<author login="sdedic"/>
<compatibility addition="yes"/>
<description>
<p>
Files which have been deleted can be obtained by <code>folder.getAttribute("revealEntries")</code>.
See <a href="@TOP@org/openide/filesystems/MultiFileSystem.html">MultiFileSystem
</a> javadoc for details
</p>
<p>
<b>Warning:</b> stability of this feature is <b>development</b>
</p>
</description>
<!--<class package="org.openide.filesystems" name="MultiFileObject"/>-->
</change>
<change id="FileChooserBuilder-setAcceptAllFileFilterUsed">
<api name="filesystems"/>
<summary>New method FileChooserBuilder.setAcceptAllFileFilterUsed.</summary>
<version major="8" minor="3"/>
<date year="2012" month="10" day="30"/>
<author login="tmysik"/>
<compatibility addition="yes" deprecation="no"/>
<description>
<p>
Added <a href="@org-openide-filesystems-nb@/org/openide/filesystems/FileChooserBuilder.html#setAcceptAllFileFilterUsed-boolean-">
new method</a> to <code>FileChooserBuilder</code> that determines whether the <code>AcceptAll FileFilter</code>
should be used in the created file chooser.
</p>
</description>
<class package="org.openide.filesystems" name="FileChooserBuilder" link="no"/>
<issue number="220401"/>
</change>
<change id="FileChooserBuilder-addDefaultFileFilters">
<api name="filesystems"/>
<summary>New method FileChooserBuilder.addDefaultFileFilters and accompanying annotations.</summary>
<version major="8" minor="1"/>
<date year="2012" month="8" day="29"/>
<author login="jhavlin"/>
<compatibility addition="yes" deprecation="no"/>
<description>
<p>
Added <a href="@org-openide-filesystems-nb@/org/openide/filesystems/FileChooserBuilder.html#addDefaultFileFilters--">
new method</a> to <code>FileChooserBuilder</code> that adds all default
<code>FileFilter</code>s to created file chooser.
</p>
<p>
Default filters are registered using new parameters in annotations
<a href="@TOP@org/openide/filesystems/MIMEResolver.Registration.html#showInFileChooser--">MimeResolver.Registration</a>
and <a href="@TOP@org/openide/filesystems/MIMEResolver.ExtensionRegistration.html#showInFileChooser--">MimeResolver.ExtensionRegistration</a>.
</p>
</description>
<class package="org.openide.filesystems" name="FileChooserBuilder" link="no"/>
<class package="org.openide.filesystems" name="MIMEResolver"/>
<issue number="209998"/>
</change>
<change id="fileobject-lookup">
<api name="filesystems"/>
<summary>FileObject has getLookup()</summary>
<version major="8" minor="0"/>
<date year="2012" month="8" day="22"/>
<author login="jtulach"/>
<compatibility addition="yes" deprecation="no"/>
<description>
<p>
<code>FileObject</code> now implements <code>Lookup.Provider</code>
and thus has new
<a href="@TOP@org/openide/filesystems/FileObject.html#getLookup--">
getLookup</a>() method.
</p>
</description>
<class package="org.openide.filesystems" name="FileObject"/>
<issue number="209231"/>
</change>
<change id="recursive-listener-with-filter">
<api name="filesystems"/>
<summary>addRecursiveListener with a filter</summary>
<version major="7" minor="61"/>
<date year="2012" month="4" day="11"/>
<author login="jtulach"/>
<compatibility addition="yes" deprecation="no"/>
<description>
<p>
Added <a href="@TOP@org/openide/filesystems/FileUtil.html#addRecursiveListener-org.openide.filesystems.FileChangeListener-java.io.File-java.io.FileFilter-java.util.concurrent.Callable-">
new method</a> variant to register recursive listener
and control whether to recurse into a subtree or not via
<code>FileFilter</code>.
</p>
</description>
<class package="org.openide.filesystems" name="FileUtil"/>
<issue number="207189"/>
</change>
<change id="FileSystem.createTemporaryFO">
<api name="filesystems"/>
<summary>File System can create temporary file</summary>
<version major="7" minor="60"/>
<date year="2012" month="2" day="20"/>
<author login="alexvsimon"/>
<compatibility addition="yes" deprecation="no"/>
<description>
<p>
Added methods to create temporary file objects:
<code>FileSystem.getTempFolder</code>, <code>FileSystem.createTempFile</code>.
</p>
</description>
<class package="org.openide.filesystems" name="FileSystem"/>
<issue number="207659"/>
</change>
<change id="LayersProvider">
<api name="filesystems"/>
<summary>SPI for Additions to System File System</summary>
<version major="7" minor="59"/>
<date year="2012" month="2" day="3"/>
<author login="jtulach"/>
<compatibility addition="yes" deprecation="yes"/>
<description>
<p>
Those who wish to influence content of
<a href="@TOP@/org/openide/filesystems/FileUtil.html#getConfigRoot--">
configuration file system</a> have an easier
<a href="@TOP@/org/openide/filesystems/Repository.LayerProvider.html">
way</a> now.
</p>
</description>
<class package="org.openide.filesystems" name="Repository"/>
<issue number="198508"/>
</change>
<change id="MIMEResolver.Registrations">
<api name="filesystems"/>
<summary>Annotations to declare MIME type</summary>
<version major="7" minor="58"/>
<date year="2012" month="2" day="2"/>
<author login="jtulach"/>
<compatibility addition="yes" deprecation="yes"/>
<description>
<p>
There are new annotations to register mime type. One
can either use simpler ones based on
<a href="@TOP@/org/openide/filesystems/MIMEResolver.ExtensionRegistration.html">
extension</a> or
<a href="@TOP@/org/openide/filesystems/MIMEResolver.NamespaceRegistration.html">
XML namespace</a>. In case these registration are not
powerful enough one can use the original and flexible
<a href="@TOP@/org/openide/filesystems/MIMEResolver.Registration.html">
XML file based registration</a> which is however processed
during compile time to avoid needless XML parsing on each
start.
</p>
</description>
<class package="org.openide.filesystems" name="MIMEResolver"/>
<issue number="191777"/>
</change>
<change id="FileObject.toURI">
<api name="filesystems"/>
<summary>Introduced <code>FileObject.toURI</code></summary>
<version major="7" minor="57"/>
<date year="2012" month="1" day="20"/>
<author login="jglick"/>
<compatibility addition="yes" deprecation="yes">
<p>
<code>FileObject.getURL</code> should be replaced with <code>toURL</code> (or <code>toURI</code>),
which also throw no checked exceptions.
</p>
</compatibility>
<description>
<p>
Added <code>FileObject.toURI</code> for convenience.
</p>
<p>
Also deprecated <code>FileObject.getURL</code> in favor of <code>toURL</code>
which is the same but does not throw <code>FileStateInvalidException</code>,
and clarified that <code>URLMapper.findURL(fo, INTERNAL)</code>
will never return null.
</p>
</description>
<class package="org.openide.filesystems" name="FileObject"/>
<issue number="207294"/>
</change>
<change id="default-line-separator">
<api name="filesystems"/>
<summary>Provides default line separator</summary>
<version major="7" minor="56"/>
<date day="13" month="1" year="2012"/>
<author login="alexvsimon"/>
<compatibility addition="yes" binary="compatible" source="compatible" semantic="compatible" deprecation="no" deletion="no" modification="no"/>
<description>
<p>
FileObject.DEFAULT_LINE_SEPARATOR_ATTR defines file object attribute name to get default line separator.
File object can provide default line separator if it differs from
<code>System.getProperty("line.separator")</code>. Call
<code>fo.getAttribute(FileObject.DEFAULT_LINE_SEPARATOR_ATTR)</code> returns string with
default line separator. Default line separator will be used by the text
editor if saving new content to an initially empty file. Any other code
which creates file content programmatically must manually read this
property if it cares.
</p>
</description>
<class package="org.openide.filesystems" name="FileObject"/>
<issue number="199534"/>
</change>
<change id="FileObject.revert">
<api name="filesystems"/>
<summary>Introduced <code>FileObject.revert</code></summary>
<version major="7" minor="55"/>
<date year="2011" month="11" day="29"/>
<author login="jglick"/>
<compatibility addition="yes">
<p>
The previous SPI has been kept. Only a more convenient API has been introduced,
so it is no longer necessary for callers to look for a <code>removeWritables</code> attribute.
</p>
</compatibility>
<description>
<p>
Added <code>revert</code> and <code>canRevert</code> to <code>FileObject</code>.
</p>
</description>
<class package="org.openide.filesystems" name="FileObject"/>
<issue number="162526"/>
</change>
<change id="FileEvent.4.constructor">
<api name="filesystems"/>
<summary>Detailed FileEvent constructor</summary>
<version major="7" minor="54"/>
<date day="22" month="11" year="2011"/>
<author login="jtulach"/>
<compatibility addition="yes"/>
<description>
<p>New <code>FileEvent</code> constructor allowing specification
of expected state as well as time.
</p>
</description>
<class package="org.openide.filesystems" name="FileEvent"/>
<issue number="203477"/>
</change>
<change id="FileObject.getMIMEType...">
<api name="filesystems"/>
<summary>FileObject.getMIMEType(String... withinMIMETypes)</summary>
<version major="7" minor="52"/>
<date day="5" month="8" year="2011"/>
<author login="jtulach"/>
<compatibility addition="yes"/>
<description>
<p>
Introducing <a href="@TOP@/org/openide/filesystems/FileObject.html#getMIMEType-java.lang.String...-">
FileObject.getMIMEType(String...)
</a> that can be overriden by different implementations
of file system API.
</p>
</description>
<class package="org.openide.filesystems" name="FileObject"/>
<issue number="199642"/>
</change>
<change id="validateResource_196452">
<api name="filesystems"/>
<summary><code>LayerBuilder</code> can validate resources</summary>
<version major="7" minor="51"/>
<date day="25" month="7" year="2011"/>
<author login="jglick"/>
<compatibility addition="yes"/>
<description>
<p>
<code>LayerBuilder</code> has a new <code>validateResource</code> method.
<code>absolutizeResource</code> was also added.
</p>
</description>
<class package="org.openide.filesystems.annotations" name="LayerBuilder"/>
<issue number="196452"/>
</change>
<change id="LayerGenerationException_194545">
<api name="filesystems"/>
<summary><code>LayerGenerationException</code> has new constructors</summary>
<version major="7" minor="50"/>
<date day="25" month="7" year="2011"/>
<author login="jglick"/>
<compatibility addition="yes">
<p>
Code using the constructors not specifying an annotation should now do so.
</p>
</compatibility>
<description>
<p>
<code>LayerGenerationException</code> has new constructors making it easier to specify
the particular annotation responsible for a problem.
Some methods in <code>LayerBuilder</code> have new overloads to take advantage of it.
</p>
</description>
<class package="org.openide.filesystems.annotations" name="LayerGenerationException"/>
<class package="org.openide.filesystems.annotations" name="LayerBuilder"/>
<issue number="194545"/>
</change>
<change id="getConfigObject">
<api name="filesystems"/>
<summary>FileUtil.getConfigObject</summary>
<version major="7" minor="49"/>
<date day="25" month="6" year="2011"/>
<author login="jtulach"/>
<compatibility addition="yes"/>
<description>
<p>
One can convert files in SystemFileSystem to Object with
a
<a href="@TOP@org/openide/filesystems/FileUtil.html#getConfigObject-java.lang.String-java.lang.Class-">
single utility method</a>.
</p>
</description>
<class package="org.openide.filesystems" name="FileUtil"/>
<issue number="169338"/>
</change>
<change id="to.parent">
<api name="filesystems"/>
<summary>FileObject.getFileObject accepts ".."</summary>
<version major="7" minor="45"/>
<date day="27" month="1" year="2011"/>
<author login="jtulach"/>
<compatibility addition="yes"/>
<description>
<p>
Semantic of
<a href="@TOP@/org/openide/filesystems/FileObject.html#getFileObject-java.lang.String-">
getFileObject
</a> method has been clarified to accept "..".
</p>
</description>
<class package="org.openide.filesystems" name="FileObject"/>
<issue number="194418"/>
</change>
<change id="attribute.methodvalue">
<api name="filesystems"/>
<summary>setAttribute("methodvalue:attrname", method) and "newvalue:"</summary>
<version major="7" minor="43"/>
<date day="24" month="11" year="2010"/>
<author login="jtulach"/>
<compatibility addition="yes"/>
<description>
<p>
You can use prefix <code>"methodvalue:"</code> to
<a href="@TOP@/org/openide/filesystems/FileObject.html#setAttribute-java.lang.String-java.lang.Object-">
setAttribute
</a>
with type of <a href="@JDK@/java/lang/reflect/Method.html">Method</a>.
When the attribute is queried (without the prefix), the
method is called as is common in
<a href="@TOP@/org/openide/filesystems/XMLFileSystem.html">XMLFileSystem</a>
attributes. You can also use <code>newvalue:</code> prefix
for attribute of type
<a href="@JDK@/java/lang/Class.html">Class</a>.
</p>
</description>
<class package="org.openide.filesystems" name="FileUtil"/>
<class package="org.openide.filesystems" name="FileObject"/>
<issue number="120724"/>
</change>
<change id="private-constructor">
<api name="filesystems"/>
<summary>XMLFileSystem's newvalue can create private instances</summary>
<version major="7" minor="43"/>
<date day="25" month="10" year="2010"/>
<author login="jtulach"/>
<compatibility addition="yes" binary="compatible" source="compatible" semantic="compatible" deprecation="no" deletion="no" modification="no"/>
<description>
<p>
If the class referenced from <code>newvalue</code>
<a href="@TOP@/org/openide/filesystems/XMLFileSystem.html">XMLFileSystem</a>
attribute is not public, it is made accessible for reflection.
</p>
</description>
<class package="org.openide.filesystems" name="XMLFileSystem"/>
<issue number="141698"/>
</change>
<change id="createAndOpen">
<api name="filesystems"/>
<summary>FileObject.createAndOpen</summary>
<version major="7" minor="41"/>
<date day="10" month="9" year="2010"/>
<author login="jtulach"/>
<compatibility addition="yes" binary="compatible" source="compatible" semantic="compatible" deprecation="no" deletion="no" modification="no"/>
<description>
<p>
Create a file and write its content (almost) atomically using the new
<a href="@TOP@/org/openide/filesystems/FileObject.html#createAndOpen-java.lang.String-">FileObject.createAndOpen</a>
method.
</p>
</description>
<class package="org.openide.filesystems" name="FileObject"/>
<issue number="40739"/>
</change>
<change id="addRecursiveListenerStop">
<api name="filesystems"/>
<summary>Interruptable addRecursiveListener</summary>
<version major="7" minor="37"/>
<date day="17" month="2" year="2010"/>
<author login="jtulach"/>
<compatibility addition="yes" binary="compatible" source="compatible" semantic="compatible" deprecation="no" deletion="no" modification="no"/>
<description>
<p>
New variant of <code>addRecursiveListener</code> method
that allows the caller to control the process enumerating
files in subtree and stop it.
</p>
</description>
<class package="org.openide.filesystems" name="FileUtil"/>
<issue number="180523"/>
</change>
<change id="MultiFileSystem.weight">
<api name="filesystems"/>
<summary>Ability to specify "weight" for <code>MultiFileSystem</code> overrides</summary>
<version major="7" minor="36"/>
<date day="1" month="3" year="2010"/>
<author login="jglick"/>
<compatibility semantic="compatible">
<p>
Modules need no longer declare runtime-only dependencies
on other modules merely to override their layer entries.
Instead, they should specify a higher weight.
(Normally the base module will declare no weight, so any
positive number will do.)
</p>
</compatibility>
<description>
<p>
<code>MultiFileSystem</code>s will now interpret a special
file attribute <code>weight</code> to determine how to
resolve otherwise ambiguous overrides. For example, in the
system filesystem, module XML layers can use this attribute.
Suppose a generic infrastructure module declares:
</p>
<pre>
<filesystem>
<folder name="my-snippets">
<file name="common.xml" url="generic-snippet.xml"/>
</folder>
</filesystem>
</pre>
<p>
If another module wishes to override this declaration, it
can do so by specifying:
</p>
<pre>
<filesystem>
<folder name="my-snippets">
<file name="common.xml" url="special-snippet.xml">
<attr name="weight" intvalue="100"/>
</file>
</folder>
</filesystem>
</pre>
<p>
This override will work even if the module system happens
to load the specializing module <em>before</em> the infrastructure
module (as could happen if there is no module dependency
between them). The weight attribute also makes it clear that
something is being overridden.
</p>
</description>
<class package="org.openide.filesystems" name="MultiFileSystem"/>
<issue number="141925"/>
</change>
<change id="JarFileSystem-constructor-file">
<api name="filesystems"/>
<summary>Effective constructor for JarFileSystem</summary>
<version major="7" minor="35"/>
<date day="26" month="1" year="2010"/>
<author login="jtulach"/>
<compatibility addition="yes" binary="compatible" source="compatible" semantic="compatible" deprecation="no" deletion="no" modification="no"/>
<description>
<p>
New constructor for <code>JarFileSystem</code>
that initializes everything without opening the underlaying
JAR file.
</p>
</description>
<class package="org.openide.filesystems" name="JarFileSystem"/>
<issue number="177461"/>
</change>
<change id="MIMEResolverImpl">
<api name="filesystems"/>
<summary>Access methods added to <code>MIMEResolver.UIHelpers</code></summary>
<version major="7" minor="34"/>
<date day="8" month="1" year="2010"/>
<author login="jglick"/>
<compatibility addition="yes"/>
<description>
<p>
Several internal methods were added to nested class
of <code>MIMEResolver</code> - <code>UIHelpers</code>
for use from other parts of the NetBeans Platform. Use from
other modules is not supported.
</p>
</description>
<class package="org.openide.filesystems" name="MIMEResolver"/>
<issue number="179289"/>
</change>
<change id="recursive-listener">
<api name="filesystems"/>
<summary>Support for recursive listeners</summary>
<version major="7" minor="28"/>
<date day="18" month="9" year="2009"/>
<author login="jtulach"/>
<compatibility addition="yes" binary="compatible" source="compatible" semantic="compatible" deprecation="no" deletion="no" modification="no"/>
<description>
<p>
One can register a recursive listener on a file object by
calling
<a href="@TOP@/org/openide/filesystems/FileObject.html#addRecursiveListener-org.openide.filesystems.FileChangeListener-">FileObject.addRecursiveListener(FileChangeListener)</a>.
</p>
</description>
<class package="org.openide.filesystems" name="FileObject"/>
<class package="org.openide.filesystems" name="FileUtil"/>
<issue number="170862"/>
</change>
<change id="LayerBuilder.instanceFile">
<api name="filesystems"/>
<summary>Non-initializing <code>LayerBuilder.instanceFile</code> added</summary>
<version major="7" minor="27"/>
<date day="14" month="9" year="2009"/>
<author login="jglick"/>
<compatibility addition="yes"/>
<description>
<p>
New overload of <code>instanceFile</code> makes it easier to create
instances for use with lazy factories.
</p>
</description>
<class package="org.openide.filesystems.annotations" name="LayerBuilder"/>
<issue number="171284"/>
</change>
<change id="LayerBuilder.folder">
<api name="filesystems"/>
<summary><code>LayerBuilder.folder</code> added</summary>
<version major="7" minor="26"/>
<date day="10" month="9" year="2009"/>
<author login="jglick"/>
<compatibility addition="yes"/>
<description>
<p>
Now possible to create empty folders from layer-generating processors.
</p>
</description>
<class package="org.openide.filesystems.annotations" name="LayerBuilder"/>
<issue number="171029"/>
</change>
<change id="Repository.defaultFileSystem.status">
<api name="filesystems"/>
<summary>System filesystem label/icon annotations work without full module system</summary>
<version major="7" minor="25"/>
<date day="31" month="8" year="2009"/>
<author login="jglick"/>
<compatibility modification="yes">
<p>
An application or unit test installing a custom system filesystem
and <em>not</em> overriding <code>getStatus</code> but <em>expecting</em>
the default implementation to do nothing could be broken.
</p>
</compatibility>
<description>
<p>
For convenience from unit tests, the system filesystem will now always
process annotations such as <code>displayName</code> in its <code>FileSystem.Status</code>.
</p>
</description>
<class package="org.openide.filesystems" name="FileSystem"/>
<issue number="171092"/>
</change>
<change id="runWhenDeliveryOver">
<api name="filesystems"/>
<summary>Support for processing batch events</summary>
<version major="7" minor="24"/>
<date day="25" month="8" year="2009"/>
<author login="jtulach"/>
<compatibility addition="yes" binary="compatible" source="compatible" semantic="compatible" deprecation="no" deletion="no" modification="no"/>
<description>
<p>
<a href="org/openide/filesystems/FileEvent.html#runWhenDeliveryOver-java.lang.Runnable-">
FileEvent.runWhenDeliveryOver(Runnable)</a> method added to support
easier processing of <em>batch</em> sets of events.
</p>
</description>
<class package="org.openide.filesystems" name="FileEvent"/>
<issue number="170544"/>
</change>
<change id="add-fallback-content-to-sfs">
<api name="filesystems"/>
<summary>Allow modules to provide fallback layer content</summary>
<version major="7" minor="23"/>
<date day="12" month="8" year="2009"/>
<author login="jtulach"/>
<compatibility addition="yes" binary="compatible" source="compatible" semantic="compatible" deprecation="no" deletion="no" modification="no"/>
<description>
<p>
One can provide <q>fallback</q>
<a href="@TOP@/architecture-summary.html#answer-arch-usecases">content of system filesystem</a> by
returning <code>Boolean.TRUE</code> from call
to <code>fs.getRoot().getAttribute("fallback")</code>.
</p>
</description>
<class package="org.openide.filesystems" name="Repository"/>
<issue number="169892"/>
</change>
<change id="FileObject.asText">
<api name="filesystems"/>
<summary>Read files with asText(), asBytes() and asLines()</summary>
<version major="7" minor="21"/>
<date day="3" month="2" year="2009"/>
<author login="jtulach"/>
<compatibility addition="yes"/>
<description>
<p>
Added <a href="@TOP@/org/openide/filesystems/FileObject.html#asBytes--">
asBytes()</a>,
<a href="@TOP@/org/openide/filesystems/FileObject.html#asText-java.lang.String-">
asText(encoding)</a>,
and <a href="@TOP@/org/openide/filesystems/FileObject.html#asLines-java.lang.String-">
asLines(encoding)</a> methods into
<a href="@TOP@/org/openide/filesystems/FileObject.html">FileObject</a>
to simplify reading of its content.
</p>
</description>
<class package="org.openide.filesystems" name="FileObject"/>
</change>
<change id="FileUtil.addFileChangeListener2">
<api name="filesystems"/>
<summary>Possibility to add FileChangeListeners on File (even not existing)</summary>
<version major="7" minor="20"/>
<date day="14" month="1" year="2009"/>
<author login="jskrivanek"/>
<compatibility addition="yes"/>
<description>
<p>
Added <a href="@TOP@/org/openide/filesystems/FileUtil.html#addFileChangeListener-org.openide.filesystems.FileChangeListener-java.io.File-">
FileUtil.addFileChangeListener(FileChangeListener listener, File path)</a>
and <a href="@TOP@/org/openide/filesystems/FileUtil.html#removeFileChangeListener-org.openide.filesystems.FileChangeListener-java.io.File-">
FileUtil.addFileChangeListener(FileChangeListener listener, File path)</a>.
It permits you to listen to a file which does not yet exist,
or continue listening to it after it is deleted and recreated, etc.
</p>
</description>
<class package="org.openide.filesystems" name="FileUtil"/>
<issue number="33162"/>
</change>
<change id="FileUtil.getConfigFile">
<api name="filesystems"/>
<summary>Added FileUtil.getConfigFile and getConfigRoot for simpler access to default filesystem</summary>
<version major="7" minor="19"/>
<date day="12" month="1" year="2009"/>
<author login="jskrivanek"/>
<compatibility addition="yes"/>
<description>
<p>
Rather than having to call
<code>Repository.getDefault().getDefaultFileSystem().getRoot().getFileObject("foo/bar")</code>,
you can simply call
<a href="@TOP@/org/openide/filesystems/FileUtil.html#getConfigFile-java.lang.String-">FileUtil.getConfigFile("foo/bar")</a>.
</p>
</description>
<class package="org.openide.filesystems" name="FileUtil"/>
<issue number="91534"/>
</change>
<change id="FileUtil.setMIMEType">
<api name="filesystems"/>
<summary>Persisted registration of file extension to MIME type</summary>
<version major="7" minor="18"/>
<date day="19" month="12" year="2008"/>
<author login="jskrivanek"/>
<compatibility addition="yes" modification="yes"/>
<description>
<p>
Method <a href="@TOP@/org/openide/filesystems/FileUtil.html#setMIMEType-java.lang.String-java.lang.String-">
FileUtil.setMIMEType(String extension, String mimeType)</a>
resurrected to register file extension for specified MIME type.
It is persisted in userdir contrary to previous implementation.
Added method <a href="@TOP@/org/openide/filesystems/FileUtil.html#getMIMETypeExtensions-java.lang.String-">
FileUtil.getMIMETypeExtensions(String mimeType)</a>
to get list of file extensions associated with specified MIME type.
</p>
</description>
<class package="org.openide.filesystems" name="FileUtil"/>
<issue number="153202"/>
</change>
<change id="FileChooserBuilder">
<api name="filesystems"/>
<summary>FileChooserBuilder added</summary>
<version major="7" minor="17"/>
<date day="1" month="12" year="2008"/>
<author login="tboudreau"/>
<compatibility addition="yes">
<p>
Added org.openide.filesystems.FileChooserBuilder to API.
</p>
</compatibility>
<description>
<p>
Added FileChooserBuilder, a utility class for working with
JFileChoosers. In particular, FileChooserBuilder makes it
easy to create file chooser dialogs which remember what
directory the user last invoked them on, across sessions.
</p>
</description>
<class package="org.openide.filesystems" name="FileChooserBuilder" link="no"/>
<issue number="47737"/>
</change>
<change id="DeclarativeMIMEResolvers">
<api name="filesystems"/>
<summary>Added new elements to MIME resolver DTD</summary>
<version major="7" minor="16"/>
<date day="18" month="11" year="2008"/>
<author login="jskrivanek"/>
<compatibility addition="yes"/>
<description>
<p>
It is now possible to write declarive MIME resolvers checking
file names (element name) and file content (element pattern).
</p>
</description>
<issue number="142760"/>
</change>
<change id="LayerGeneratingProcessor">
<api name="filesystems"/>
<summary>Support for annotation processors generating XML layer fragments</summary>
<version major="7" minor="15"/>
<date day="1" month="11" year="2008"/>
<author login="jglick"/>
<compatibility addition="yes">
<p>
Any code which scans modules for XML layers should now interpret not only
the <code>OpenIDE-Module-Layer</code> manifest attribute (if present),
but also use the resource <code>META-INF/generated-layer.xml</code> if present.
</p>
</compatibility>
<description>
<p>
It is now possible to write JSR 269-compliant annotation processors
which create XML layer (i.e. system filesystem) entries.
</p>
</description>
<class package="org.openide.filesystems.annotations" name="LayerGeneratingProcessor"/>
<class package="org.openide.filesystems.annotations" name="LayerBuilder"/>
<class package="org.openide.filesystems.annotations" name="LayerGenerationException"/>
<issue number="149136"/>
</change>
<change id="FileUtil.getMIMEType.withinMIMETypes">
<api name="filesystems"/>
<summary>FileUtil.getMIMEType() can be restricted by listed MIME types</summary>
<version major="7" minor="13"/>
<date day="3" month="9" year="2008"/>
<author login="jskrivanek"/>
<compatibility addition="yes">
<p>
If you have a <code>MIMEResolver</code> subclass, be sure to use the new super constructor.
</p>
</compatibility>
<description>
<p>
To speed up MIME type recognition it is added an extra parameter
to method <a href="@TOP@/org/openide/filesystems/FileUtil.html#getMIMEType-org.openide.filesystems.FileObject-java.lang.String...-">FileUtil.getMIMEType(FileObject, String...)</a>.
We can supply one or more MIME types which we are only interested in.
Module writers have to override
<a href="@TOP@/org/openide/filesystems/MIMEResolver.html">MIMEResolver</a>
default constructor and call <code>super(String...)</code>, e.g.:
</p>
<pre>
public MyResolver() {
super("text/plain", "text/sh");
}
</pre>
</description>
<class package="org.openide.filesystems" name="FileUtil"/>
<class package="org.openide.filesystems" name="MIMEResolver"/>
<issue number="137734"/>
</change>
<change id="getAttribute.class">
<api name="filesystems"/>
<summary>XMLFileSystem attributes can be queried for instance class</summary>
<version major="7" minor="12"/>
<date day="25" month="8" year="2008"/>
<author login="jskrivanek"/>
<compatibility addition="yes"/>
<description>
<p>
If you are interested just in the Class of an attribute, but
without creating its instance, use <code>fileObject.getAttribute("class:attrName")</code>.
This instructs the <a href="@TOP@/org/openide/filesystems/XMLFileSystem.html">XMLFileSystem</a>
to scan its XML files for definition of <code>attrName</code>
attribute and <i>guess</i> its class. The <i>guessing</i> is
usually easy, just for <code>methodvalue</code> types, the system
needs to use some kind of heuristic: it locates the
appropriate factory method and returns its return type. This may
not be the actual type of the returned object at the end, but
it seems as the best guess without instantiating it.
</p>
</description>
<class package="org.openide.filesystems" name="XMLFileSystem"/>
<issue number="131951"/>
</change>
<change id="testable-declarative-resolvers">
<api name="filesystems"/>
<summary>Declarative MIME resolvers now available in standalone mode</summary>
<version major="7" minor="11"/>
<date day="10" month="7" year="2008"/>
<author login="jglick"/>
<compatibility semantic="incompatible">
<ul>
<li>