Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Adding Resource Types

0 views
Skip to first unread message

Stephen Earl

unread,
Jan 19, 2006, 11:18:18 AM1/19/06
to
Hi,

I have a need to "register" and additional resource type with JBuild 2005
Enterprise. These "resources" will have an extension of ".jplate" and would
be registered with a plain text editor.

I'm kind of at a loss as to where to look in terms of writing an open tool
to register this resource's extension. I've written several simple open
tools to do other things, but never to interact with the resource types.

Anyone have any pointers?

Steve...


Paul Furbacher [TeamB]

unread,
Jan 19, 2006, 11:57:58 AM1/19/06
to
Stephen Earl wrote:

Do you need to write an Open Tool? Since you
say that the "jplate" extension should be opened
in a plain text editor, why not go to Tools >
Preferences > Browser > File types, and just add
"jplate" (without the double quotes) to the "Text
file" type. I've added "py", "pl", and "cgi"
as extensions to the "Generic" type and this seems
to work just fine for opening them in the plain
text editor.

Or, do you need to identify the "jplate" files
with a unique icon in the Project Pane?

If the latter is a requirement, you might take
a look at the Pascal example in the
samples/OpenToolsAPI/viewers/delphi folder of
the JBuilder installation. In essence, you would
be subclassing TextFileNode, and just changing the
icon. Where the example uses the constant "ICON",
substitute your icon which you load using the
"JPlateFileNode.class.getResource()" loader.
Put the icon in the same folder as the JPlateFileNode.java
file resides in the "src" folder of your project.


--


Paul Furbacher (TeamB)

Save time, search the archives:
http://info.borland.com/newsgroups/ngsearch.html

Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html

Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you.

0 new messages