Re: DeleteOperationImplementation error
Enrico Scantamburlo <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAJdy_m-NEHFvQ39xA-UKAmfZ=RVZ1tjiORKL6JStki5jDtp8CQ@mail.gmail.com> |
Hi Probably the file is read by your code somewhere. You should check that you have closed all the streams properly. On 4 Mar 2016 10:14, "Paco Barrera" <[email protected]> wrote: > Hi team, > > I have a problem deleting projects from my application. > This issue only happens on Windows systems, not in Linux. > > I've implemented for my custom project type in > DeleteOperationImplementation the getDataFiles() method to get the > FileObjects to delete. > > I try two ways to do it: > 1) only put the project folder FileObject in the ArrayList returned: all > files are deleted except one file, that is the file that ProjectFactory > uses to identify a folder as a project in the application > 2) put all the FileObjects childrens for the project folder: an error > NotifyDescriptor popups pointing that cannot delete the file mentioned > before > > I don't know how to resolves this, because I can't delete the files, this > operations are performed by netbeans. > > Thanks in advance for any help. > > > ------------------------------------------------------------------------------------------------ > > *Product Version:* NetBeans IDE 8.0.2 (Build 201411181905) > > *Updates:* NetBeans IDE is updated to version NetBeans 8.0.2 Patch 2 > <http://wiki.netbeans.org/NetBeans8.0.2PatchesInfo> > > *Java:* 1.8.0_25; Java HotSpot(TM) 64-Bit Server VM 25.25-b02 > > *Runtime:* Java(TM) SE Runtime Environment 1.8.0_25-b18 > > *System:* Windows 8 version 6.2 running on amd64; Cp1252; es_ES (nb) > > ------------------------------------------------------------------------------------------------ > >