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.
Summary: | Allow Convert to Text on read only files if no actual changes to the file are needed | ||
---|---|---|---|
Product: | editor | Reporter: | ats37 <ats37> |
Component: | -- Other -- | Assignee: | issues@editor <issues> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | jglick, rmatous |
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Windows 3.1/NT | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | 11334 | ||
Bug Blocks: |
Description
ats37
2001-10-30 14:29:06 UTC
Passing to Yarda to comment this - architect. issue. BTW now this isn't possible due to writting into nbattrs files and when the file is read we cannot do this change. Maybe that this can be somehow handled by the owner of this action - the text module. >BTW now this isn't possible due to writting into nbattrs
>files and when the file is read we cannot do this change.
I'm not sure I understand what you mean - there's no problem with it
writing to the .nbattrs file, since that's not under source control
and so is read-write all the time. It's the versioned (.idl & .j)
files that are the problem, as Clearcase makes them read-only unless
I have them checked out. They don't get altered at all by the
Convert to Text process (they're already text files, just not with a
recognised file extension), but because they're RO Netbeans won't let
me select the option.
You are right. One quick solution is to go to the Tools, Options, IDE Configuration, System, Object Types, Textual Objects node and change its Extensions property to contain the 'idl' and 'j' extensions. From this change will the ide recognize these files as text files. Jan is right the problem is with .nbattr and the way how the access to them is implemented. I think that the easiest solution would be to put another support action to text module that would allow to open editor window over a foreign data object. Thus no writing to .nbattrs would be necessary. *** Issue 17210 has been marked as a duplicate of this issue. *** taking beans from the BDK requires users to modify the read only text in the manifest...converting manifest from read only to read/write would be a great step forward Target milestone -> 3.3.1. Does issue #11334 help here? I have uncommented additional checks for read-onliness in the ConvertToTextAction and it appears that it works. I'll continue on Monday and close the bug. Fixed. Checking in src/org/netbeans/modules/text/ConvertToDefaultAction.java; /cvs/text/src/org/netbeans/modules/text/ConvertToDefaultAction.java,v <-- ConvertToDefaultAction.java new revision: 1.3; previous revision: 1.2 done Checking in src/org/netbeans/modules/text/ConvertToTextAction.java; /cvs/text/src/org/netbeans/modules/text/ConvertToTextAction.java,v <-- ConvertToTextAction.java new revision: 1.9; previous revision: 1.8 done |