[scala-ide-dev] Source menu entry in top bar

6 views
Skip to first unread message

David Bernard

unread,
Apr 28, 2010, 6:22:43 PM4/28/10
to scala-...@googlegroups.com
>> * comment/uncomment region
>> * basic auto-indentation

>Yup ... on trunk the latter two are already provided without the use
>of scalac ASTs.

Right but I didn't see them, because "Source" menu is on right click
in editor and not on main/top bar menu (I'm not a right click user).
Adding Source menu item in top bar, It's a good, simple task I'll do
as first code contribution (after project reorganisation).

/davidB

Miles Sabin

unread,
Apr 28, 2010, 6:40:20 PM4/28/10
to scala-...@googlegroups.com
I'm not quite sure I follow: this works exactly the same for Scala as
it does for Java because the Scala editor really just is the Java
editor, and all the relevant Java actions apply. What do you think
needs to be changed?

Cheers,



Miles

--
Miles Sabin
tel: +44 (0)7813 944 528
skype: milessabin
http://www.chuusai.com/
http://twitter.com/milessabin

David Bernard

unread,
Apr 28, 2010, 6:47:42 PM4/28/10
to scala-...@googlegroups.com
No when I editing java code, I've got "Source" menu item in menu bar
(between Edit and Refactor). but there is no "Source" menu for scala.
"Scala editor really just is the Java editor" imply that I can't
define java indentation to 4 spaces and scala to 2 spaces ?

Don't worry, I'll take a look next week (more time to learn). Good night.

/davidB

Miles Sabin

unread,
Apr 28, 2010, 7:06:30 PM4/28/10
to scala-...@googlegroups.com
On Wed, Apr 28, 2010 at 11:47 PM, David Bernard
<david.be...@gmail.com> wrote:
> No when I editing java code, I've got "Source" menu item in menu bar
> (between Edit and Refactor). but there is no "Source" menu for scala.

Window => Customize Perspective ... => Command Groups Availability,
then enable Java Code and hit OK. You'll now have a Source menu item.

> "Scala editor really just is the Java editor"  imply that I can't
> define java indentation to 4 spaces and scala to 2 spaces ?

Correct.
Reply all
Reply to author
Forward
0 new messages