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 59540 - Use the object's default action (Open/Edit/View)
Summary: Use the object's default action (Open/Edit/View)
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Open File (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@utilities
URL:
Keywords: UI
Depends on:
Blocks: 59953
  Show dependency tree
 
Reported: 2005-06-02 10:35 UTC by Marian Petras
Modified: 2005-09-05 10:13 UTC (History)
0 users

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 Marian Petras 2005-06-02 10:35:31 UTC
Make the Open File implementation such that it takes an object's preferred
actions into account.

The current implementation prefers action "Open" over "Edit", unless a line
number is specified. But for example the properties node prefers action "Edit"
over "Open".
The result is that for properties files, different action is performed when a
file is open by double-clicking on the corresponding node (Edit) and when a file
is open using the Open File feature (Open).
Comment 1 Marian Petras 2005-06-02 10:35:52 UTC
Accepted.
Comment 2 Tomas Stupka 2005-08-19 17:00:43 UTC
Fixed in the trunk.

Modified files:
 /utilities/src/org/netbeans/modules/openfile/DefaultOpenFileImpl.java