3.4 B3 and recognized file extenstions to open as text - bug?

1. outside NB make a new file [file].sql

2. inside NB make a new file [file] and specify extension "sql"

new/other/text file

#2 is recognized as text to edit

#1 is not

How can the extension ".sql" be added to the list of recognized text fiels?

Thanks.

[313 byte] By [hanasaki] at [2007-11-25 16:46:42]
# 1

Hanasaki JiJi wrote:

> 1. outside NB make a new file [file].sql

> 2. inside NB make a new file [file] and specify extension "sql"

>new/other/text file

>

> #2 is recognized as text to edit

> #1 is not

It's as designed. The .sql is not recognized by default as text extension.

But you can force it easily (two ways):

1) Doing the step #2 and when entering new (not yet supported) extension

of the

file (in your case sql) in the second step of wizard. There is a check

box "Add to supported extensions" (just check it).

(Just read the help on that panel).

If you don't check it, just the new file could be recognized as textual.

2) Another way is to go to Tools | Options | IDE Configuration | System

| Object Types | Textual Objects and add to the "Extensions and MIME types"

new extension (in you case sql).

Peter

>

>

> How can the extension ".sql" be added to the list of recognized text

> fiels?

>

> Thanks.

>

Zavadsky,Peter at 2007-7-2 23:25:38 > top of Java-index,Archived Forums,Sun ONE Studio 4...
# 2

Hi,

the problem probably is that the file #2 is in fact "[file].sql.txt",

and therefore is recognized as a text file.

For recognizing unrecognized file as text you may:

1. For just one file, after double click on it, you will be asked whether

it should be converted to text. This means the file will be treated as a

text file.

2. For an extension (like "sql" in your case) go to:

Tools/Options/IDE Configuration/System/Textual Objects and add the

extension to "Extensions and MIME Types" property.

Jan

On Mon, 15 Jul 2002, Hanasaki JiJi wrote:

> 1. outside NB make a new file [file].sql

> 2. inside NB make a new file [file] and specify extension "sql"

> new/other/text file

>

> #2 is recognized as text to edit

> #1 is not

>

> How can the extension ".sql" be added to the list of recognized text fiels?

>

> Thanks.

>

Lahoda,Jan at 2007-7-2 23:25:39 > top of Java-index,Archived Forums,Sun ONE Studio 4...
# 3

Jan Lahoda wrote:

>the problem probably is that the file #2 is in fact "[file].sql.txt",

> and therefore is recognized as a text file.

Not if you choose "file" in the second wizard panel and "sql" in the

third, which is what I assume Hanasaki meant - then "file.sql" is really

created. Then yes you need to explicitly convert it to text (see context

menu e.g.) or add .sql to the list of known text extensions.

-Jesse

> On Mon, 15 Jul 2002, Hanasaki JiJi wrote:

>>2. inside NB make a new file [file] and specify extension "sql"

>> new/other/text file

--

Jesse Glick <mailto:jesse.glick@sun.com> x22801

NetBeans, Open APIs <http://www.netbeans.org/>

Glick,Jesse at 2007-7-2 23:25:39 > top of Java-index,Archived Forums,Sun ONE Studio 4...
# 4

This is what I was looking for <lots of menus ;)>:

Tools/Options/IDE Configuration/System/Textual Objects

- Works great Thanks

What I still do not understand is, why, when I explicitly made file.sql,

it was recognized as text but the existing .sql files were not. This is

what would seem to be a bug <although it was convenient to a degree>

I remember the past ability to "explicitly convert to text" but cant

seem to find it in 3.4B3 Where is it?

=======================

Not if you choose "file" in the second wizard panel and "sql" in the

third, which is what I assume Hanasaki meant - then "file.sql" is really

created. Then yes you need to explicitly convert it to text (see context

menu e.g.) or add .sql to the list of known text extensions.

-Jesse

========================

Thanks, again.

Jan Lahoda wrote:

> Hi,

>the problem probably is that the file #2 is in fact "[file].sql.txt",

> and therefore is recognized as a text file.

>

> For recognizing unrecognized file as text you may:

> 1. For just one file, after double click on it, you will be asked whether

> it should be converted to text. This means the file will be treated as a

> text file.

>

> 2. For an extension (like "sql" in your case) go to:

> Tools/Options/IDE Configuration/System/Textual Objects and add the

> extension to "Extensions and MIME Types" property.

>

> Jan

>

> On Mon, 15 Jul 2002, Hanasaki JiJi wrote:

>

>

>>1. outside NB make a new file [file].sql

>>2. inside NB make a new file [file] and specify extension "sql"

>> new/other/text file

>>

>>#2 is recognized as text to edit

>>#1 is not

>>

>>How can the extension ".sql" be added to the list of recognized text fiels?

>>

>>Thanks.

>>

>

>

>

hanasaki at 2007-7-2 23:25:39 > top of Java-index,Archived Forums,Sun ONE Studio 4...