ifedorenko / p2-browser

101 stars 46 forks source link

"Save As..." button opens a "Open" dialog #3

Open andham opened 12 years ago

andham commented 12 years ago

When browsing a P2 repo and clicking the Save As... button, a dialog pop-ups with the header "Open". And there is no way of specifying a name of what to save. When clicking Cancel in that dialog I get an error message saying a NPE occurred.

This is on Mac OS 10.7.4 with Apple Java 1.6.0_31. I started the P2 Browser through web start (the link in the GitHub readme).

ifedorenko commented 12 years ago

This is currently messed up. There are two save-as actions, one invoked from right-click menu and another with the button.

The right-click action lets you save save selected IUs and their corresponding artifacts to a local "simple" p2 repository. This action is likely broken when current selection includes repository nodes.

The button action writes selected repository metadata to a local directory. IIRC, the target directory has to be empty. Again, the action will likely misbehave if current selection is not a single repository node.