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 37471 - Refresh command not displayed in popup menu
Summary: Refresh command not displayed in popup menu
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcscore (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker with 1 vote (vote)
Assignee: Martin Entlicher
URL:
Keywords: UI
: 38071 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-25 09:11 UTC by Antonin Nebuzelsky
Modified: 2004-01-26 12:46 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of the IDE where Refresh is missing in the popup (66.63 KB, image/gif)
2003-11-25 09:12 UTC, Antonin Nebuzelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonin Nebuzelsky 2003-11-25 09:11:38 UTC
Trunk build w/ jdk 1.4.2-b28.

The VCS filesystem (VCS generic w/ CVS profile)
was already mounted when the IDE started. I just
expanded the nodes in the explorer, ran Tools/Diff
on the "list" file (and a file from another FS).
Then a new file was created in this directory
where list resides. I wanted to refresh this
directory to see the new file, but Refresh is not
visible in the popup menu...

See the attached picture.
Comment 1 Antonin Nebuzelsky 2003-11-25 09:12:37 UTC
Created attachment 12280 [details]
Screenshot of the IDE where Refresh is missing in the popup
Comment 2 Antonin Nebuzelsky 2003-11-25 09:15:40 UTC
OK, you may say that the directory is "Local" but there MUST be a way
to refresh it...
Comment 3 Martin Entlicher 2003-11-25 09:38:06 UTC
Hmm, that's it. The directory is [Local].
Refresh on [Local] directories was intentionally disabled, because it
will fail.

On the other hand, I agree, that there should be some way to refresh
the [Local] directory. We should probably make another command for
that, which will be enabled just on [Local] folders and will call
fo.refresh().
Comment 4 Martin Entlicher 2003-11-27 11:01:12 UTC
Well, this should be probably fixed in vcscore module.
When the Refresh (LIST) command will not be enabled, it can provide
the simple fo.refresh() instead.

But, shouldn't it have a different display name? It's functionality is
different so it could be confusing.
Comment 5 Antonin Nebuzelsky 2003-11-27 11:31:24 UTC
IMHO listing the command "Refresh folder" directly in the popup, not
under CVS sub-popup, could be enough. But if you find a better display
name, it will be even better.
Comment 6 Martin Entlicher 2003-11-27 11:54:49 UTC
That's a good idea. It will be logical if there is either:

Find...
---------------
Refresh Folder
---------------
CVS           -> Commit
VCS Filesystems  ...
---------------

or:

Find...
---------------
CVS           -> Refresh
VCS Filesystems  -------
---------------  Commit
                 ...


I hope that this will not be confusing for users.
Comment 7 Martin Entlicher 2003-12-15 18:24:23 UTC
*** Issue 38071 has been marked as a duplicate of this issue. ***
Comment 8 Martin Entlicher 2003-12-15 18:25:51 UTC
Gabo, is this an acceptable solution? This is an annoying problem for
users.
Comment 9 Martin Entlicher 2004-01-26 11:16:00 UTC
Fixed as proposed in the main trunk:

/cvs/vcscore/src/org/netbeans/modules/vcscore/actions/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.34; previous revision: 1.33

RCS file:
/cvs/vcscore/src/org/netbeans/modules/vcscore/actions/RefreshLocalFolderAction.java,v
done
Checking in actions/RefreshLocalFolderAction.java;
/cvs/vcscore/src/org/netbeans/modules/vcscore/actions/RefreshLocalFolderAction.java,v
 <--  RefreshLocalFolderAction.java
initial revision: 1.1

Checking in DefaultVcsFactory.java;
/cvs/vcscore/src/org/netbeans/modules/vcscore/DefaultVcsFactory.java,v
 <--  DefaultVcsFactory.java
new revision: 1.17; previous revision: 1.16
Comment 10 Antonin Nebuzelsky 2004-01-26 12:46:16 UTC
Verified in build 20040126-1116.