Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [Dltk-dev] Delete class/interface should not delete the file itself

Hi Jae,

delete java main class == delete file
delete ruby class != delete file

Regards,
Alex

----- Original Message -----
From: "Jae Gangemi" <jgangemi@xxxxxxxxx>
To: "DLTK Developer Discussions" <dltk-dev@xxxxxxxxxxx>
Sent: Friday, November 28, 2008 12:44:01 AM GMT +06:00 Almaty, Novosibirsk
Subject: Re: [Dltk-dev] Delete class/interface should not delete the file itself



could someone better explain this issue, b/c i don't understand it. if i choose to delete a file via the script explorer, the file should be deleted. i don't see how this relates to an empty file w/o any kind of class/interface definition inside of it. 


On Thu, Nov 27, 2008 at 1:04 PM, Alex Panchenko < alex@xxxxxxxxx > wrote: 


Hi Eden, 

I think this behavior should be customizable per nature (since we already have the necessary checks) and by default the file should not be deleted, as you suggested. 
I can take care of it on Friday or Saturday. 

Thanks, 
Alex 




----- Original Message ----- 
From: "Eden Klein" < eden@xxxxxxxx > 
To: dltk-dev@xxxxxxxxxxx 
Sent: Thursday, November 27, 2008 9:17:51 PM GMT +06:00 Almaty, Novosibirsk 
Subject: [Dltk-dev] Delete class/interface should not delete the file itself 



In the current implementation, if a file contains only a class or an interface and if the user right clicks on it in the scriptexplorer view and choose the the delete action, the file is deleted altogether. This behavior matches the Java notion of a class/interface and a file, which are highly connected. In dynamic languages this is not the case. A file can exists by itself without necessarily containing a class or an interface. 



I opened a bug about it and attached the patch that solves the problem. ( #256788 ) 





Please let me know what you think about it 



Thanks, 

Eden 

Eden Klein 
Software Engineer 
Zend Technologies, Ltd. 
t. +972.3.753.9615 
www.zend.com 
_______________________________________________ 
dltk-dev mailing list 
dltk-dev@xxxxxxxxxxx 
https://dev.eclipse.org/mailman/listinfo/dltk-dev 
_______________________________________________ 
dltk-dev mailing list 
dltk-dev@xxxxxxxxxxx 
https://dev.eclipse.org/mailman/listinfo/dltk-dev 



-- 
-jae 

_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev


Back to the top