This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 203893 - Add Upload and Download actions to the editor popup menu
Summary: Add Upload and Download actions to the editor popup menu
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: FTP Support (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
: 215485 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-18 11:47 UTC by tameboy
Modified: 2013-02-15 09:00 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tameboy 2011-10-18 11:47:01 UTC
I have a number of issues with FTP Tomas suggested I post an enhancement request so here goes.

I work on both Linux (6.9 on Fedora 15) (preferred) and Windows 7 (7.1) with Netbeans these issues apply equally on both these platforms.

1) I cannot easily see what is on the remote server from within Netbeans. I have to open other FTP software to do this.  I know I can opt to 'download' a directory - but this involves the FTP software apparently indexing the whole directory - which can be very time consuming for the root directory - because all subdirectories are indexed too.

So it would be very help to be able to browse the remote FTP server and download singe files.

2) It would be very helpful if there was an upload button either in the tool bar or via right click to upload single files (like you can right click on a tab to save the document - why can't we have an option to upload?)  I know this can be done via a keyboard short cut, but this is an event that occurs so frequently I think it would be helpful to have the option more readily available. Trying to navigate through the project tree to find the file is cumbersome/time consuming.

3) I don't trust the automatic updating system. As I edit files from multiple platforms on multiple machines, I always stick to manual uploading. However, if instead of occurring mysteriously in the background, a report was produced indicating which files needed updating and in which direction (upload or download) with options to stop those you disagree with, Netbeans could be a very useful sync tool to ensure you had the most up to date versions where ever you were working.
Comment 1 Tomas Mysik 2011-10-18 12:34:38 UTC
First of all - thanks for reporting but next time, please, for each particular issue create a new report (in other words: do not put more than one issue to one report). The reason is simple - once one bug/enhancement is fixed, the issue is closed, can be verified, reopened etc. This is not possible with this issue right now.

(In reply to comment #0)
> 1) I cannot easily see what is on the remote server from within Netbeans. I
> have to open other FTP software to do this.  I know I can opt to 'download' a
> directory - but this involves the FTP software apparently indexing the whole
> directory - which can be very time consuming for the root directory - because
> all subdirectories are indexed too.

Partly true. The reason is simple - NetBeans cannot (and does not want to) replace any real (S)FTP client. However, there is one improvement for NB 7.1, lazy file download, more info on our blog [1].

> So it would be very help to be able to browse the remote FTP server and
> download singe files.

As I wrote above, with NB 7.1 the download should be much more user-friendly.

> 2) It would be very helpful if there was an upload button either in the tool
> bar or via right click to upload single files (like you can right click on a
> tab to save the document - why can't we have an option to upload?)  I know this
> can be done via a keyboard short cut, but this is an event that occurs so
> frequently I think it would be helpful to have the option more readily
> available. Trying to navigate through the project tree to find the file is
> cumbersome/time consuming.

The problem here is that the context menu actions are based on MIME types (on file extensions), so we simply can't put "Upload" to a CSS file since CSS file can be also in other project types (like Java web, Groovy etc.) where they make no sense. This does not apply for the Projects view since the file/folder actions there are provided by the PHP project support. However, I will try to investigate, maybe there is some way to do it.

> 3) I don't trust the automatic updating system. As I edit files from multiple
> platforms on multiple machines, I always stick to manual uploading. However, if
> instead of occurring mysteriously in the background, a report was produced
> indicating which files needed updating and in which direction (upload or
> download) with options to stop those you disagree with, Netbeans could be a
> very useful sync tool to ensure you had the most up to date versions where ever
> you were working.

It is not mysterious, one can easily review the Remote Log with all the operations in the Output window. Regarding the "sync tool" - sorry, this is definitely out-of-scope for PHP support, at least for now, since we focus on the editor features. If one needs more sophisticated "sync tool", any SCM (like git, hg, svn) should be used.

Keeping this issue opened since the option 2) could be done, I hope. Changing the title as well. Of course, if you have any comments, feel free to provide them but please, open a new report if they are not related to the option 2).

Thanks for reporting.
[1] http://blogs.oracle.com/netbeansphp/entry/lazy_file_download
Comment 2 Tomas Mysik 2013-02-15 09:00:10 UTC
*** Bug 215485 has been marked as a duplicate of this bug. ***