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 45279 - [select document in] Implement Error Message if node can't be found according to UI specification
Summary: [select document in] Implement Error Message if node can't be found according...
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords:
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-06-21 13:32 UTC by Marian Mirilovic
Modified: 2006-03-24 10:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2004-06-21 13:32:39 UTC
[nb_dev](200406201800), [jdk1.5.0](b51)

If node can't be found, there is no info about it
and nothing happend. 
UI specification contains spec for handling this
status with Error Message :
http://ui.netbeans.org/nonav/docs/ui/select_node_in_explorer/select_node_in_explorer.html#3.3
----------------
If for some reason the document node can not be
found after invoking the the action, the closest
parent that could be found on a path to the node
is selected and a message "The document node
couldn't be located." is shown in the status line.
----------------
Comment 1 Marian Mirilovic 2004-06-23 14:09:19 UTC
I've reported the same against Favorites (issue 45466)
Comment 2 jrojcek 2004-06-23 14:16:32 UTC
First of all, the action should be disabled if selected document can't be located in Projects/
Files window. The error message should only be used if it is not possible to decide 
whether the document has a node in Projects/Files window or not.
Comment 3 Petr Hrebejk 2004-06-23 14:24:59 UTC
No sure what you exactly mean. But notice that finding out whether the
node can be found in the tabs may be a bit time consuming to do it in
each call of isEnabled or when the global Lookup changes. So rather do
not plan to have it disabled.
Comment 4 jrojcek 2004-06-23 14:55:39 UTC
Sure, I don't count on it ;-), but...

* could it be disbled if the user starts up the IDE for the first time and there is no project 
open and only Welcome screen in the document area?
* or if a file doesn't belong to any project?
Comment 5 Petr Hrebejk 2004-08-16 14:46:28 UTC
Shows inormatioal message in the status line.

Checking in
projectui/src/org/netbeans/modules/project/ui/Bundle.properties;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.42; previous revision: 1.41
done
Checking in projectui/src/org/netbeans/modules/project/ui/ProjectTab.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/ProjectTab.java,v
 <--  ProjectTab.java
new revision: 1.13; previous revision: 1.12
done
Processing log script arguments...
More commits to come...
Checking in
projectui/src/org/netbeans/modules/project/ui/actions/SelectNodeAction.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/actions/SelectNodeAction.java,v
 <--  SelectNodeAction.java
new revision: 1.3; previous revision: 1.2
done
Comment 6 Marian Mirilovic 2004-08-24 19:42:03 UTC
verified in [nb_dev](200408231800)
it works fine in Projects and Files view, 
BUT it doesn't work in Favorites (issue 47832) and Versioning (issue
47831)