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 108917 - Better control of what "Download" button does
Summary: Better control of what "Download" button does
Status: NEW
Alias: None
Product: updatecenters
Classification: Unclassified
Component: Pluginportal (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Botterill
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-05 03:37 UTC by err
Modified: 2009-10-03 12:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
specifying multiple files for download screenshot (9.03 KB, image/png)
2007-07-07 22:40 UTC, err
Details

Note You need to log in before you can comment on or make changes to this bug.
Description err 2007-07-05 03:37:59 UTC
I would like the download button to go to the plugin's sourceforge download page. There are optional files for the jVi
plugin that can be downloaded and there is no convenient way to set this up with plugin portal, sourceforge handles this
nicely, https://sourceforge.net/project/platformdownload.php?group_id=3653&sel_platform=943 . (if there's not an
enhancement request for multiple files, there probably should be)

One solution would be to simply specify the url for the button. Presumably, this would only come into effect if no
plugin file downloaded to the portal. Along those lines, there needs to be a way to tell the portal to forget about a
plugin file that was previously download, so the download button vectors to the link.

COULD YOU TELL ME HOW TO DELETE THE DOWNLOADED PLUGIN? SO THE DOWNLOAD BUTTON WILL GO TO THE WEB SITE, which if I
remember correctly takes you to the web site when there is no downloaded file.
Comment 1 David Botterill 2007-07-07 21:24:43 UTC
You can upload a Zip file containing all of the necessary files.  The zip file was meant for plugin suites but using it
for your plugin should work.  If you want your plugin to work with all the optional files, you should somehow package
the files in the NBM so your plugin can be added via an update center.

If this doesn't satisfy your needs completely, please add more details about how this would work from the web UI
perspective including page flows and change this issue to an enhancement.
Comment 2 err 2007-07-07 22:17:37 UTC
This issue is about 
1) assigning a specific URL to the download button (used if no file is available for download)
2) removing a file that was download at an earlier date, so the Download button returns to its "go somewhere" behavior.
If you feel 2) should be filed as a separate issue, please let me know. Note that even without 1), I still need to do 2).

Following is a discussion of why the current pluginportal functionality is not sufficient for my plugin's needs.

Firstly, I initially downloaded a zip for my plugin because I thought it would be more convenient for the plugin users,
but since the plugin doesn't show up in the update center, issue http://www.netbeans.org/issues/show_bug.cgi?id=106350 ,
there's no real advantage for the user. Additionally, the inability to specify multiple files is too restrictive.

The jVi plugin is a module-suite available as a zip (as you mention); the optional files I refer to are small patches I
have prepared for NetBeans itself; they patch the basic platform. If the patch is installed then the jVi plugin detects
that and additional functionality is available (FYI, it has to do with undo/redo granularity). There is one patch for
NB55/551 and another for NB6. (I'm still hoping that with release NB6 the patch will not be needed). If there's some way
to package them as NBM's, I'm not aware of it.

I'm attaching a partial screen shot from jVi's sourceforge download page, showing how the additional files are
presented. This is the page referenced in the original description for this issue.

I don't think it is appropriate to package these NB patches in the module-suite zip file.

Up to this point, I have a single plugin zip that runs on both NB5/NB6, that will not last. With the next major release
of the jVi plugin, I will need two separate zips. (I assumed there was already an enhancement request for having
multiple files for download, eg an NB5 version and an NB6 version)
Comment 3 err 2007-07-07 22:40:28 UTC
Created attachment 44795 [details]
specifying multiple files for download screenshot