What does the Netiquette imply?
StandAlone editor
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Java Programming > StandAlone editor 7 December 2000 10:13:05

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

StandAlone editor

Petr Nejedly 7 December 2000 10:13:05
 As there is some demand for StandAlone editor (cvs/editor/demosrc­),
and there are some problems with building it the way I've provided
(shell script, originally SA was an experimental code to help developers
of different editors with debugging), I've decided to rewrite the build
to use Ant and to integrate its target into main editor build.xml.

Moreover, I'd like the idea of having SA integrated into NetBeans
instalation,
so everybody could benefit from its small memory footprint and mainly
from
its fast startup time, when they just need to fix something.

Now I have some questions:
a) Where to put the starter script for SA
b) where to store its configuration (Simple text file containing
supported content types, menuitems for them and so on)
c) Where to store the jar with its classes.

ad a) The netbeans/bin could be used if there are no objections.
there have to be e.g. editor.sh/editor.ex­e

ad b) There is the ide.cfg in the netbeans/bin directory, could be
the configuration for SA stored here too?
What about other Integrated/Standalo­ne tools (e.g. Java command
line cvs,
maybe smtg. like runscript.sh from the scripting module) coming in
future?
Don't we have to make an netbeans/etc :-)­ ?

ad c) I can imagine that its classes can be stored inside the
nb-editor.jar, but
I think this is rather poor solution. I'd better have a directory
for the
standalone.jar, as it:
1) isn't module
2) isn't library
3) there should be further jars e.g. in properties module, which
should
extend the functionality of SA with the properties editor.
(the same
for jsp, if I/Petr Jiricka could manage to make the editor
part of web
module independent of IDE)

--
Petr Nejedly
NetBeans/Sun Microsystems
http://www.netbeans­.org

Add comment
Tom Ball 22 November 2000 01:18:38 permanent link ]
 
... I've decided to rewrite the build> to use Ant and to integrate its target into main editor build.xml.

That's great news; thank you. I just wrote a makefile to build and
install it, but that's of course less portable.
Moreover, I'd like the idea of having SA integrated into NetBeans> instalation,> so everybody could benefit from its small memory footprint and mainly> from> its fast startup time, when they just need to fix something.

Good idea. Then Unix developers can set the EDITOR environment variable
to your editor and no longer have to maintain two sets of key mappings
in their heads. Windows developers will appreciate not having to use
Notepad anymore (at least I will).
ad a) The netbeans/bin could be used if there are no objections.> there have to be e.g. editor.sh/editor.ex­e

No objection -- I think that all startup scripts should go into that
directory, as to do otherwise violates the "law of least surprise".
Don't we have to make an netbeans/etc :-)­ ?

Another good idea: directories are cheap and can make support easier.
Free software isn't "free" if it's hard to support.
ad c) I can imagine that its classes can be stored inside the> nb-editor.jar, but> I think this is rather poor solution. I'd better have a directory> for the> standalone.jar, as it:> 1) isn't module> 2) isn't library

Standalone.jar is a library, it's just not an IDE library. If the
NetBeans installation gets expanded to include standalone tools as you
propose, I'd much rather have all libraries in lib, just like all
executables be in bin. Think of it this way: let's say someone added
just such a facility and you needed to support it. Where is the first
place you'd look? My guess is bin and lib directories.

Tom

Add comment
Petr Nejedly 22 November 2000 13:04:31 permanent link ]
 Tom Ball wrote:>
... I've decided to rewrite the build> > to use Ant and to integrate its target into main editor build.xml.>
That's great news; thank you. I just wrote a makefile to build and> install it, but that's of course less portable.>
Moreover, I'd like the idea of having SA integrated into NetBeans> > instalation,> > so everybody could benefit from its small memory footprint and mainly> > from> > its fast startup time, when they just need to fix something.>
Good idea. Then Unix developers can set the EDITOR environment variable> to your editor and no longer have to maintain two sets of key mappings
Having the SA integrated with IDE instalation doesn't necessary means
it will have the same keymappings. Currently, the IDEs editor
keymappings
are serialized with other IDE options into one large file, which is
unreadable from outside the IDE. Until we invent better way of storing
editor options, it is not possible to keep the editor options in sync.
The SA uses the same set of default editor options as the IDE,
but these are not customizable from inside the SA. I see the possible
temporal solution in running the external class from inside the SA to
let
it set the options programatically (like the class Mila have suggested
for full-featured customizing the Editor in IDE (A class in Startup
folder)).

in their heads. Windows developers will appreciate not having to use> Notepad anymore (at least I will).>
ad a) The netbeans/bin could be used if there are no objections.> > there have to be e.g. editor.sh/editor.ex­e>
No objection -- I think that all startup scripts should go into that> directory, as to do otherwise violates the "law of least surprise".>
Don't we have to make an netbeans/etc :-)­ ?>
Another good idea: directories are cheap and can make support easier.> Free software isn't "free" if it's hard to support.>
ad c) I can imagine that its classes can be stored inside the> > nb-editor.jar, but> > I think this is rather poor solution. I'd better have a directory> > for the> > standalone.jar, as it:> > 1) isn't module> > 2) isn't library>
Standalone.jar is a library, it's just not an IDE library. If the> NetBeans installation gets expanded to include standalone tools as you> propose, I'd much rather have all libraries in lib, just like all> executables be in bin. Think of it this way: let's say someone added> just such a facility and you needed to support it. Where is the first> place you'd look? My guess is bin and lib directories.
Not a regular library. If I place the jar file into the netbeans/lib
directory, it will make it to the IDEs classpath, and that is what I'd
like
to prevent. I don't need to have it on the regular IDE classpath, as it
is garbage
from the IDEs point of view.
If I place it under modules/ext, it would be OK, but the jar gets too
"hidden"...

Any thoughts/comments?
Tom

--
Petr Nejedly
NetBeans/Sun Microsystems
http://www.netbeans­.org

Add comment
Ruffin Bailey 22 November 2000 16:55:28 permanent link ]
 
... I've decided to rewrite the build>> to use Ant and to integrate its target into main editor build.xml.>
That's great news; thank you. I just wrote a makefile to build and> install it, but that's of course less portable.

Any chance I could get a copy of the makefile from you? I'm trying to get a
build happening on my NT box (then I'll see if the code's 1.1.8 compliant on
my Mac -- good luck, right?), and have been getting some errors,
specifically as follows:

D:\JavaProjs\editor­\demosrc\base>java -cp
nb-editor.jar;edito­r.jar;properties.jar­ org.netbeans.editor­.example.Editor
Exception in thread "main" java.util.MissingRe­sourceException: Can't find
bundle for base name settings, locale en_US
at java.util.ResourceB­undle.throwMissingRe­sourceException(Unkn­own
Source)
at java.util.ResourceB­undle.getBundleImpl(­Unknown Source)
at java.util.ResourceB­undle.getBundle(Unkn­own Source)
at org.netbeans.editor­.example.Editor.<ini­t>(Editor.java:48)
at org.netbeans.editor­.example.Editor.main­(Editor.java:409)

A makefile might do the trick to let me know what I'm doing wrong. I'm
suspecting I'm missing a jar in there somewhere, but can't quite figure out
which one. I did take a look at the settings.properties­ file (realizing
that the ResourceBundle settings are something different) and combed through
Editor.java a while, but haven't yet been able to figure out what was going
wrong there either.

There are no netbeans related files or folders in my environment's classpath
variable.

I'll hack some more this holiday, but any hints would be greatly
appreciated.

Thanks,

Ruffin Bailey


Add comment
Petr Nejedly 22 November 2000 17:27:29 permanent link ]
 Ruffin Bailey wrote:>
... I've decided to rewrite the build> >> to use Ant and to integrate its target into main editor build.xml.> >
That's great news; thank you. I just wrote a makefile to build and> > install it, but that's of course less portable.>
Any chance I could get a copy of the makefile from you? I'm trying to get a> build happening on my NT box (then I'll see if the code's 1.1.8 compliant on> my Mac -- good luck, right?), and have been getting some errors,> specifically as follows:>
D:\JavaProjs\editor­\demosrc\base>java -cp> nb-editor.jar;edito­r.jar;properties.jar­ org.netbeans.editor­.example.Editor> Exception in thread "main" java.util.MissingRe­sourceException: Can't find> bundle for base name settings, locale en_US> at java.util.ResourceB­undle.throwMissingRe­sourceException(Unkn­own> Source)> at java.util.ResourceB­undle.getBundleImpl(­Unknown Source)> at java.util.ResourceB­undle.getBundle(Unkn­own Source)> at org.netbeans.editor­.example.Editor.<ini­t>(Editor.java:48)> at org.netbeans.editor­.example.Editor.main­(Editor.java:409)

Simply, the settings.properties­ file have to be on the classpath.

java -cp .;nb-editor.jar;edi­tor.jar;properties.j­ar
org.netbeans.editor­.example.Editor
run in the directory where the settings.properties­ is located should do
the trick.
Please note the dot on the beginning of classpath (Line "CLASSPATH=."
from the run.sh)
You could also jar the settings.properties­ to the root of the
editor.jar, it was
left out of the jar for easier configuration. Too bad decision?

A makefile might do the trick to let me know what I'm doing wrong. I'm> suspecting I'm missing a jar in there somewhere, but can't quite figure out> which one. I did take a look at the settings.properties­ file (realizing> that the ResourceBundle settings are something different) and combed through

The ResourceBundle settings are the same, I've used the simpliest way of
parsing
options :-)­
Editor.java a while, but haven't yet been able to figure out what was going> wrong there either.>
There are no netbeans related files or folders in my environment's classpath> variable.>
I'll hack some more this holiday, but any hints would be greatly> appreciated.

Hope this will help you.

Thanks,>
Ruffin Bailey


--
Petr Nejedly
NetBeans/Sun Microsystems
http://www.netbeans­.org

Add comment
Trung Duc Tran 22 November 2000 18:19:27 permanent link ]
 
Moreover, I'd like the idea of having SA integrated into NetBeans> > instalation,> > so everybody could benefit from its small memory footprint and mainly> > from> > its fast startup time, when they just need to fix something.>
Good idea. Then Unix developers can set the EDITOR environment variable> to your editor and no longer have to maintain two sets of key mappings> in their heads. Windows developers will appreciate not having to use> Notepad anymore (at least I will).>
ad a) The netbeans/bin could be used if there are no objections.> > there have to be e.g. editor.sh/editor.ex­e>
No objection -- I think that all startup scripts should go into that> directory, as to do otherwise violates the "law of least surprise".>
Don't we have to make an netbeans/etc :-)­ ?>
Another good idea: directories are cheap and can make support easier. > Free software isn't "free" if it's hard to support.>
ad c) I can imagine that its classes can be stored inside the> > nb-editor.jar, but> > I think this is rather poor solution. I'd better have a directory> > for the> > standalone.jar, as it:> > 1) isn't module> > 2) isn't library>
Standalone.jar is a library, it's just not an IDE library. If the> NetBeans installation gets expanded to include standalone tools as you> propose, I'd much rather have all libraries in lib, just like all> executables be in bin. Think of it this way: let's say someone added> just such a facility and you needed to support it. Where is the first> place you'd look? My guess is bin and lib directories.

all nice and good, but NetBeans is primarily an IDE and a platform for
building IDEs and I don't like to pollute it with two many things. We
don't want NB to be "an OS masked as an IDE" (or am I mistaken?). I
don't have any objections to bundling the stand-alone editor with
NetBeans distribution but I strongly want to clearly separate it from
the rest of the IDE. One possible way is to create a subdirectory
"extra" or something and put it (and similar non-essential things)
there.

-- Trung

Add comment
Ruffin Bailey 22 November 2000 19:49:23 permanent link ]
 First off, thanks for the help. I have the SE working now! Just for
the benefit of other Windows users out there, here's what I did...
From Petr Nejedly:> Simply, the settings.properties­ file have to be on the classpath.>
java -cp .;nb-editor.jar;edi­tor.jar;properties.j­ar> org.netbeans.editor­.example.Editor> run in the directory where the settings.properties­ is located should do> the trick.> Please note the dot on the beginning of classpath (Line "CLASSPATH=."> from the run.sh)

Sure enough, that was the problem. Thanks.
You could also jar the settings.properties­ to the root of the> editor.jar, it was> left out of the jar for easier configuration. Too bad decision?

Not at all, since the next step seems to be to tease the
settings.properties­ file. There is a line that obviously isn't going to
work on my system that talks about the ParserDBs:

Java_Completion=/ho­me/pnejedly/NetBeans­/system/ParserDB/jdk­13

I copied the files jdk13.jcb and jdk13.jcs files into the base dir of
the demosrc "tree" and changed that line to read:

#Java_Completion=/h­ome/pnejedly/NetBean­s/system/ParserDB/jd­k13
Java_Completion=./j­dk13

Another option would be, of course, to use the relative path to my
netbeans install, which was, admittedly, the first thing I tried.
(Java_Completion=..­/../../../nb_d73/net­beans/system/ParserD­B/jdk13 in my
case) Not real sure how to use the _concept_ of "home" with Windows. >From messing with File objects, I know that working "D:\" into Java is a
real pain. :^)­

I then received the following error:
D:\JavaProjs\editor­\demosrc\base>java -cp
.;nb-editor.jar;edi­tor.jar;properties.j­ar org.netbeans.edi
tor.example.Editor
Exception in thread "main" java.util.MissingRe­sourceException: Missing
class
at
org.netbeans.editor­.example.Editor.read­Settings(Editor.java­:475)
at org.netbeans.editor­.example.Editor.<ini­t>(Editor.java:66)
at org.netbeans.editor­.example.Editor.main­(Editor.java:409)

I dug through Editor.java and found where this was needed.

String kits = settings.getString(­ "InstalledEditors" );
String defaultKit = settings.getString(­ "DefaultEditor" );

StringTokenizer st = new StringTokenizer( kits, "," );
while( st.hasMoreTokens() ) {
String kitName = st.nextToken();
[snip]

I figured out that I hadn't yet jar'd up the Properties kit (what does
that gain me again?), so I had to change that line in the
settings.properties­ file so that it'd stop looking for Properties*
classes:

#InstalledEditors=P­lain,Html,Java,Prope­rties
InstalledEditors=Pl­ain,Html,Java

Then I went back and tried again. Perfect.

Two quick questions:
The servlet.* files in the ParserDB dir are for the JSP SE?
What did I lose by not jar'ing up the Properties kit?

I have noticed a few errors (the paths of the files that're displayed
when I rest the cursor over the tabs in the editor aren't updated when I
Save As... to somewhere else (though updates to the files still go to
the right place), for instance), but that's the beauty of open source!

Thanks for the quick help,

Ruffin Bailey

--
Ruffin.Bailey@noaa.­gov | Database Management Systems Group
TPMC.com contractor | NOAA Coastal Services Center
http://www.csc.noaa­.gov | Phone: (843) 740-1195

"This may be the fault of the interpreter, in which
case HE is the hippopotamus." Boris Yeltsin, 60 Minutes

Add comment
Petr Nejedly 22 November 2000 20:24:03 permanent link ]
 Ruffin Bailey wrote:>
First off, thanks for the help. I have the SE working now! Just for> the benefit of other Windows users out there, here's what I did...>
You could also jar the settings.properties­ to the root of the> > editor.jar, it was> > left out of the jar for easier configuration. Too bad decision?>
Not at all, since the next step seems to be to tease the> settings.properties­ file. There is a line that obviously isn't going to> work on my system that talks about the ParserDBs:>
Java_Completion=/ho­me/pnejedly/NetBeans­/system/ParserDB/jdk­13

Oh, did you read the README? Yes, people tend to not read the READMEs
:-)­
I copied the files jdk13.jcb and jdk13.jcs files into the base dir of> the demosrc "tree" and changed that line to read:>
#Java_Completion=/h­ome/pnejedly/NetBean­s/system/ParserDB/jd­k13> Java_Completion=./j­dk13

There is a problem that the program can be started from another
dir than the dir it is installed. Then this doesn't work.
(and the run.sh script too, I know)
This is why it could be great to have the SE integrated with the
NetBeans instalation.
Another option would be, of course, to use the relative path to my> netbeans install, which was, admittedly, the first thing I tried.> (Java_Completion=..­/../../../nb_d73/net­beans/system/ParserD­B/jdk13 in my> case) Not real sure how to use the _concept_ of "home" with Windows.> From messing with File objects, I know that working "D:\" into Java is a> real pain. :^)­>
I then received the following error:> D:\JavaProjs\editor­\demosrc\base>java -cp> .;nb-editor.jar;edi­tor.jar;properties.j­ar org.netbeans.edi> tor.example.Editor>­ Exception in thread "main" java.util.MissingRe­sourceException: Missing> class> at> org.netbeans.editor­.example.Editor.read­Settings(Editor.java­:475)> at org.netbeans.editor­.example.Editor.<ini­t>(Editor.java:66)> at org.netbeans.editor­.example.Editor.main­(Editor.java:409)>
I dug through Editor.java and found where this was needed.>
String kits = settings.getString(­ "InstalledEditors" );> String defaultKit = settings.getString(­ "DefaultEditor" );>
StringTokenizer st = new StringTokenizer( kits, "," );> while( st.hasMoreTokens() ) {> String kitName = st.nextToken();> [snip]>
I figured out that I hadn't yet jar'd up the Properties kit (what does

README again...
that gain me again?), so I had to change that line in the> settings.properties­ file so that it'd stop looking for Properties*> classes:>
#InstalledEditors=P­lain,Html,Java,Prope­rties> InstalledEditors=Pl­ain,Html,Java>
Then I went back and tried again. Perfect.>
Two quick questions:> The servlet.* files in the ParserDB dir are for the JSP SE?
These files are ParserDB for javax.servlet classes from
lib/ext/servlet.jar­
What did I lose by not jar'ing up the Properties kit?
Properties kit is editor for resource bundles. You'll loose colorings
for .properties files, icons in filechooser and properties menuitem
in "New..." submenu.
I have noticed a few errors (the paths of the files that're displayed> when I rest the cursor over the tabs in the editor aren't updated when I> Save As... to somewhere else (though updates to the files still go to> the right place), for instance), but that's the beauty of open source!
Moreover, there is a memory leak I know of, but I hadn't time to get rid
of. :-(­
As soon as I'll make macros working in the editor, I'd like to integrate
the SE into the regular NetBeans instalation and improve it.

Thanks for the quick help,>
Ruffin Bailey>
--> Ruffin.Bailey@noaa.­gov | Database Management Systems Group> TPMC.com contractor | NOAA Coastal Services Center> http://www.csc.noaa­.gov | Phone: (843) 740-1195>
"This may be the fault of the interpreter, in which> case HE is the hippopotamus." Boris Yeltsin, 60 Minutes>
-------------------­--------------------­--------------------­----------> To unsubscribe, e-mail: nbdev-unsubscribe@n­etbeans.org> For additional commands, e-mail: nbdev-help@netbeans­.org

--
Petr Nejedly
NetBeans/Sun Microsystems
http://www.netbeans­.org

Add comment
Tom Ball 22 November 2000 22:06:14 permanent link ]
 
Good idea. Then Unix developers can set the EDITOR environment variable> > to your editor and no longer have to maintain two sets of key mappings> Having the SA integrated with IDE instalation doesn't necessary means> it will have the same keymappings.

I realize that -- all I meant is that by using a single editor
everywhere, my fingers don't have to remember different mappings for
different editors. Any thing that can conserve brain cells at my age is
appreciated. :-)­
If I place the jar file into the netbeans/lib> directory, it will make it to the IDEs classpath, and that is what I'd> like> to prevent. I don't need to have it on the regular IDE classpath, as it> is garbage> from the IDEs point of view.> If I place it under modules/ext, it would be OK, but the jar gets too> "hidden"...>
Any thoughts/comments?

How about lib/misc or some similar name? Having it somewhere in the lib
hierarchy will make it easier to find, as "modules" are a
NetBeans-specific concept (IMHO). But in the larger scale it doesn't
matter -- what I appreciate is that you are making the standalone editor
available in any form.

Tom

Add comment
Jesse Glick 22 November 2000 22:22:44 permanent link ]
 Rochelle Raccah wrote:> How about keeping the jars in a "tools" directory under the installation root or> under lib?

$0.02: I like "etc/" since it is pretty recognizable. I don't like
anything under "lib/" because it would like the IDE might be using it,
which would be wrong.

-Jesse

--
Jesse Glick <mailto:Jesse.Glick­@netbeans.com>
NetBeans, Open APIs <http://www.netbean­s.org/>
tel (+4202) 3300-9161 Sun Micro x49161 Praha CR

Add comment
Tom Ball 22 November 2000 22:30:18 permanent link ]
 Trung Duc Tran wrote:> all nice and good, but NetBeans is primarily an IDE and a platform for> building IDEs and I don't like to pollute it with two many things. We> don't want NB to be "an OS masked as an IDE" (or am I mistaken?). I> don't have any objections to bundling the stand-alone editor with> NetBeans distribution but I strongly want to clearly separate it from> the rest of the IDE. One possible way is to create a subdirectory> "extra" or something and put it (and similar non-essential things)> there.

Why the objection? I, too, don't want "an OS masked as an IDE" but an
IDE doesn't have to be limited to just a GUI application you develop
within, it literally means "Integrated Development Environment". Since
many development tasks occur outside of the scope of a GUI IDE tool
(such as quick edits, or even debugging NB itself to avoid a double RAM
footprint), we're forced today to use separate tools such as Emacs and
jdb (save me, please!). Standalone wrappers around specific modules are
all we need to access NB functionality without the cost of starting up
the full IDE. That makes NB even more 'I'ntegrated for our development
needs.

Tom

Add comment
Rochelle Raccah 22 November 2000 22:51:34 permanent link ]
 How about keeping the jars in a "tools" directory under the installation root or
under lib?

Rochelle
Trung Duc Tran wrote:>> all nice and good, but NetBeans is primarily an IDE and a platform for>> building IDEs and I don't like to pollute it with two many things. We>> don't want NB to be "an OS masked as an IDE" (or am I mistaken?). I>> don't have any objections to bundling the stand-alone editor with>> NetBeans distribution but I strongly want to clearly separate it from>> the rest of the IDE. One possible way is to create a subdirectory>> "extra" or something and put it (and similar non-essential things)>> there.>
Why the objection? I, too, don't want "an OS masked as an IDE" but an>IDE doesn't have to be limited to just a GUI application you develop>within, it literally means "Integrated Development Environment". Since>many development tasks occur outside of the scope of a GUI IDE tool>(such as quick edits, or even debugging NB itself to avoid a double RAM>footprint), we're forced today to use separate tools such as Emacs and>jdb (save me, please!). Standalone wrappers around specific modules are>all we need to access NB functionality without the cost of starting up>the full IDE. That makes NB even more 'I'ntegrated for our development>needs.>­
------------------­--------------------­--------------------­----------->To unsubscribe, e-mail: nbdev-unsubscribe@n­etbeans.org>For additional commands, e-mail: nbdev-help@netbeans­.org>


Add comment
Bill Shannon 23 November 2000 03:32:44 permanent link ]
 
Date: Wed, 22 Nov 2000 11:04:31 +0100> From: Petr Nejedly <Petr.Nejedly@netbe­ans.com>> To: nbdev@netbeans.org>­ Subject: Re: [nbdev] StandAlone editor>
Having the SA integrated with IDE instalation doesn't necessary means> it will have the same keymappings. Currently, the IDEs editor> keymappings> are serialized with other IDE options into one large file, which is> unreadable from outside the IDE. Until we invent better way of storing> editor options, it is not possible to keep the editor options in sync.

Ya, this is a real pain as you upgrade from one version to another.
Would it be possible to add a simple "import/export" facility for
the keymap?


Add comment
Miloslav Metelka 23 November 2000 16:38:48 permanent link ]
 
Currently, the IDEs editor> keymappings> are serialized with other IDE options into one large file, which is> unreadable from outside the IDE. Until we invent better way of storing> editor options, it is not possible to keep the editor options in sync.> The SA uses the same set of default editor options as the IDE,> but these are not customizable from inside the SA. I see the possible> temporal solution in running the external class from inside the SA to> let> it set the options programatically (like the class Mila have suggested> for full-featured customizing the Editor in IDE (A class in Startup> folder)).>

The editor customization classes can be shared between the IDE and the
standalone editor too.

I think that the standalone editor could benefit from knowing in which dir
the IDE resides.
1) It could then benefit from the all the jars available with the IDE.
2) It could look whether there's CustomizeEditor.cla­ss in the Startup folder
and if so execute it.
3) It could read all the ParserDBs from system/ParserDB.

There will be people using just the standalone editor without the IDE. They
will not benefit from the things described above. But there will be
certainly a lot of people having the IDE installed and using the standalone
editor too for its fast startup and small mem footprint. I believe that they
could benefit from the things described above.

Mila

Add comment
Trung Duc Tran 23 November 2000 18:08:01 permanent link ]
 On Wed, 22 Nov 2000 21:22:44 +0200 Jesse Glick
<Jesse.Glick@netbea­ns.com> wrote:
Rochelle Raccah wrote:> > How about keeping the jars in a "tools" directory under the installation root> > or>
under lib?>
$0.02: I like "etc/" since it is pretty recognizable. I don't like> anything under "lib/" because it would like the IDE might be using it,> which would be wrong.

Agreed. Let's make a proposal: in the {ide.home} directory there will
be a subdirectory {ide.home}/etc. It will have a README.txt file which
says "this directory contains things which are not essential for the IDE
to work but may be useful for certain users". The stand-alone directory
will live in {ide.home}/etc/stan­dalone_editor. The editor folks should
supply a README file with instructions how to use it.

When we are at it I think the editor customization classes Mila posted
on nbusers <http://www.netbean­s.org/www-nbusers/ms­g01829.html> could be
placed here too.

We still must work out the relationship between /etc and module
updates.

-- Trung




Add comment
Petr Nejedly 24 November 2000 16:51:35 permanent link ]
 Bill Shannon wrote:>
Date: Wed, 22 Nov 2000 11:04:31 +0100> > From: Petr Nejedly <Petr.Nejedly@netbe­ans.com>> > To: nbdev@netbeans.org>­ > Subject: Re: [nbdev] StandAlone editor> >
Having the SA integrated with IDE instalation doesn't necessary means> > it will have the same keymappings. Currently, the IDEs editor> > keymappings> > are serialized with other IDE options into one large file, which is> > unreadable from outside the IDE. Until we invent better way of storing> > editor options, it is not possible to keep the editor options in sync.>
Ya, this is a real pain as you upgrade from one version to another.> Would it be possible to add a simple "import/export" facility for> the keymap?

The simpliest way for import/export editor settings would be an action
that would gather all the editor settings and lay them down in a single
.java file usable in startup folder/internal execution.
Don't get me wrong, I'm not against having the support for 'themes' (to
call
it right name :-)­, but it would involve adding I/O to most of advanced
editor
customizers (colorings/keymaps/­abbrevs/macros) and the facility
to read/write them in some readable/editable/e­xchangable format ( IOW
XML :-)­,
and Java source is the simpliest way to achieve it (at least for Java
developer).

Would you mind if I'd hack an Action for storing editor settings into a
Java file
before we'll have the real I/O ?

--
Petr Nejedly
NetBeans/Sun Microsystems
http://www.netbeans­.org

Add comment
Bill Shannon 25 November 2000 08:26:22 permanent link ]
 
From: Petr Nejedly <Petr.Nejedly@netbe­ans.com>> To: nbdev@netbeans.org>­ Subject: Re: [nbdev] StandAlone editor
...> Would you mind if I'd hack an Action for storing editor settings into a> Java file> before we'll have the real I/O ?

I don't understand why I'd want them in a .java file. I just want to
be able to export them from one version of NetBeans and import them
into another version.

Write them out in XML, write them out in plain text, even write them
out in binary if you have to.

Add comment
Jesse Glick 28 November 2000 13:37:27 permanent link ]
 Trung Duc Tran wrote:> [snip]> We still must work out the relationship between /etc and module> updates.

You should be able to put etc/* files into NBMs--what else is there to
say?

-Jesse

--
Jesse Glick <mailto:Jesse.Glick­@netbeans.com>
NetBeans, Open APIs <http://www.netbean­s.org/>
tel (+4202) 3300-9161 Sun Micro x49161 Praha CR

Add comment
Jesse Glick 28 November 2000 18:00:57 permanent link ]
 Trung Duc Tran wrote:>
On Tue, 28 Nov 2000 12:37:27 +0200 Jesse Glick> <Jesse.Glick@netbea­ns.com> wrote:> > [snip]> > You should be able to put etc/* files into NBMs--what else is there to> > say?>
but what would happen when I update the module? I am not sure if> AutoUpdate can handle it correctly, I means things like deleting some> files or directories if they have not been modified by the user and put> new ones there

Adding new files should be fine...AFAIK AutoUpdate will not notice if
you remove some files, but that is a general bug in AU not specific to
this issue which I hope will be resolved anyway.

-Jesse

--
Jesse Glick <mailto:Jesse.Glick­@netbeans.com>
NetBeans, Open APIs <http://www.netbean­s.org/>
tel (+4202) 3300-9161 Sun Micro x49161 Praha CR

Add comment
Trung Duc Tran 28 November 2000 18:24:54 permanent link ]
 On Tue, 28 Nov 2000 12:37:27 +0200 Jesse Glick
<Jesse.Glick@netbea­ns.com> wrote:
Trung Duc Tran wrote:> > [snip]> > We still must work out the relationship between /etc and module> > updates.>
You should be able to put etc/* files into NBMs--what else is there to> say?

but what would happen when I update the module? I am not sure if
AutoUpdate can handle it correctly, I means things like deleting some
files or directories if they have not been modified by the user and put
new ones there

-- Trung

Add comment
Josh Soref 3 December 2000 22:11:42 permanent link ]
 Petr Nejedly wrote:> Having the SA integrated with IDE instalation doesn't necessary means> it will have the same keymappings. Currently, the IDEs editor> keymappings> are serialized with other IDE options into one large file, which is> unreadable from outside the IDE. Until we invent better way of storing> editor options, it is not possible to keep the editor options in sync.> The SA uses the same set of default editor options as the IDE,> but these are not customizable from inside the SA. I see the possible> temporal solution in running the external class from inside the SA to> let> it set the options programatically (like the class Mila have suggested> for full-featured customizing the Editor in IDE (A class in Startup> folder)).
XML. Please. Oh, and while we're doing it, can we invent a good interface and api so that we can share it with some other groups who also are in desperate need of a good interface for user control of key bindings?

Add comment


Yarda Tulach 4 December 2000 14:16:39 permanent link ]
 Right, let's use XML to store editor settings in the IDE and also
outside of the IDE. I have an idea how to do it, as soon as Mila or Petr
will find some time to do it, conntact me.

Yarda

PS: Message http://www.netbeans­.org/www-nbdev/msg00­467.html tried to
elaborate a bit on the topic of storing settings in different format
than serialization.

Josh Soref wrote:>
Petr Nejedly wrote:> > Having the SA integrated with IDE instalation doesn't necessary means> > it will have the same keymappings. Currently, the IDEs editor> > keymappings> > are serialized with other IDE options into one large file, which is> > unreadable from outside the IDE. Until we invent better way of storing> > editor options, it is not possible to keep the editor options in sync.> > The SA uses the same set of default editor options as the IDE,> > but these are not customizable from inside the SA. I see the possible> > temporal solution in running the external class from inside the SA to> > let> > it set the options programatically (like the class Mila have suggested> > for full-featured customizing the Editor in IDE (A class in Startup> > folder)).> XML. Please. Oh, and while we're doing it, can we invent a good interface and api so that we can share it with some other groups who also are in desperate need of a good interface for user control of key bindings?>
-------------------­--------------------­--------------------­----------> To unsubscribe, e-mail: nbdev-unsubscribe@n­etbeans.org> For additional commands, e-mail: nbdev-help@netbeans­.org

Add comment
Petr Nejedly 6 December 2000 17:15:57 permanent link ]
 Trung Duc Tran wrote:>
On Wed, 22 Nov 2000 21:22:44 +0200 Jesse Glick> <Jesse.Glick@netbea­ns.com> wrote:>
Rochelle Raccah wrote:> > > How about keeping the jars in a "tools" directory under the installation root> > > or> >
under lib?> >
$0.02: I like "etc/" since it is pretty recognizable. I don't like> > anything under "lib/" because it would like the IDE might be using it,> > which would be wrong.>
Agreed. Let's make a proposal: in the {ide.home} directory there will> be a subdirectory {ide.home}/etc. It will have a README.txt file which> says "this directory contains things which are not essential for the IDE> to work but may be useful for certain users". The stand-alone directory> will live in {ide.home}/etc/stan­dalone_editor. The editor folks should> supply a README file with instructions how to use it.>
When we are at it I think the editor customization classes Mila posted> on nbusers <http://www.netbean­s.org/www-nbusers/ms­g01829.html> could be> placed here too.>
We still must work out the relationship between /etc and module> updates.>
-- Trung

So if I understand it well, you'd like the StandAlone to live completly
under the netbeans/etc/<its dir>. Jars, configs, even the starters?
I originally thought there would be only configuation files and the
rest would be in other such specialized directories.

--
Petr Nejedly
NetBeans/Sun Microsystems
http://www.netbeans­.org

Add comment


Trung Duc Tran 7 December 2000 10:13:05 permanent link ]
 On Wed, 06 Dec 2000 15:15:57 +0100 Petr Nejedly
<Petr.Nejedly@netbe­ans.com> wrote:

[...]

So if I understand it well, you'd like the StandAlone to live completly> under the netbeans/etc/<its dir>. Jars, configs, even the starters?

yes, this is what I meant. That way if I remove the "etc" subdir I
won't lose anything essential to the IDE. "etc" actually can be named
"things_useful_but_­nonessential_to_the_­IDE" but this is too long. If
you don't like "etc", please, propose some other name. In any case
directly under "etc" there'll be a README.txt which says what should be
the dir's contents (the long name above, maybe)

-- Trung

I originally thought there would be only configuation files and the> rest would be in other such specialized directories.

Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > Java Programming > StandAlone editor 7 December 2000 10:13:05

see also:
[slrn] running mixmaster (external…
Re: [Cancel control message] MsgID…
Seeking Newsreader Advice
пройди тесты:
see also:
How to transfer WMAs and iTunes 8…
How to rip DVD movie, convert video and…
Error while using Itext.jar

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .