Problems with toString Plugin Settings Dialog
Using the latest toString Plugin under IDEA build 688, JRE that IntelliJ
provides.
The settings dialog is not coming up well. The Filter unwanted fields
section is too small, and the Fieldname (regexp) control is only partially
visible at the bottom. There is a very small (maybe 0.25 inch) square
under the other three sections that I'm guessing is supposed to be the
method body template edit area. If I tab around through the controls, I
can see a very tiny little flashing cursor in the upper left box, so it
looks like it's an edit control but it's sized way too small to be usable.
Any ideas on how to get this to work properly? Do I have an odd font
setting somewhere, or ???
Thanks,
Paul
请先登录再写评论。
You can resize the settings dialog (just make it a little bigger) and then
the tiny square will turn into the template editing area. I guess JTextArea
is really picky about being the size it wants to ... I think this will fix
the rest of the problems, as well.
"Paul Hodgetts" <phodgetts@agilelogic.com> wrote in message
news:poakvuglfv2q981mfi0du1ckkiusnpc6du@4ax.com...
>
>
>
>
"Igor Levit" <iggy@brandeis.edu> wrote:
No, I've got the settings dialog up to 1024x768, give or take some margins
and window borders. The dialog has huge amounts of gray space all over,
but the Filter unwanted fields did not increase in size at all, and the
method body template edit area remains only about 0.25 inch square.
There's some other problem occurring. I've had to resort to editing the
settings in the XML config file for now, but that's kind of a pain.
Paul
You're right. I am seeing this problem too now (I replaced the default VTL
template with a different one and then started seeing this problem
regardless of the window size). I've submitted a bug fix to the author and
it should take care of the problem. I've attached my (fixed) version of the
plugin. Just to hold you over til the next 'official' version comes out ...
"Paul Hodgetts" <phodgetts@agilelogic.com> wrote in message
news:lgpnvuohkjde30h260p5ntt4imrs68j4j9@4ax.com...
>
then
JTextArea
fix
>
>
>
Attachment(s):
tostring-plugin.jar
Hi Igor
I have implemented your changes but I can still get some resize problems with the JTextArea. Sometimes it's tiny as Paul reports.
Don't you get any problems with your fixed version?
Will like into it when I got the time.
/Claus
Have released a v1.21 with the bugfix.
Still problem with JTextArea not covering all the width, if there is plenty of room in the dialog - it looks like it's centered.
Messed with the bugfix for 1? hours and started getting anoyed with Swing. But anyway the JTextArea shouldn't be tiny anymore since I added a setMinimumSize()
/Claus
Claus Ibsen wrote:
Igor's fixed jar worked for me. I'll grab your new build and see if that
works as well.
Thanks,
Paul
I wrote:
Yep, your latest release works for me, too. The individual panes for the
Settings, Default conflict policy, and Filter unwanted fields in your
release are smaller than in Igor's, but they are large enough to contain
and show all the controls, and the Method body text area displays large
enough to view and edit. It seems like Igor's version makes the controls
always expand to fill the entire dialog, while yours uses a smaller area.
But your latest release works fine for me.
Thanks again,
Paul
Thanks for reporting the problem and spending time testing the .jars.
I tested Igor's and could manage to reproduce the tiny JTextArea, so that's why I added the setMinimunSize() call and maybe it has an influence how the dialog is layed out.
Damm it's quite a problem to create nice looking Swing user interfaces. Maybe I ought to read a couple of tutorials/books :)
/Claus