Re: [scala-ide-user] Use Scala IDE and write Scala Class in my eclipse(4.2) plugin questions

166 views
Skip to first unread message

Mirco Dotta

unread,
Jul 23, 2012, 3:04:07 PM7/23/12
to scala-i...@googlegroups.com
Hi,

Unfortunately it's hard to say what the problem is. The best suggestion I can give is
to read the Getting Started page

http://scala-ide.org/docs/user/gettingstarted.html

And make sure to watch the screencast. The video will thoroughly explain (and show) you
how to install the Scala IDE plugin and how to run a simple Scala Application.

Hope this helps.


Cheers,
Mirco

On Jul 23, 2012, at 12:31 PM, Robin Ou wrote:

> I use Scala IDE and write scala class in my eclipse(4.2) plugin.
> In scala class I write some println("some information") and debug my plugin.
> But eclipse debug console no display print some information:(
> Please give me some suggestion.
> Thanks.

Robin Ou

unread,
Jul 24, 2012, 6:10:03 AM7/24/12
to scala-i...@googlegroups.com
hi,micro,
Thank for your help,Sorry but in my country,I can't watch the screencast.
I'm eclipse plugin developer and the plugin has been finished.
But I want use scala to change my plugin core.
For example:
I create eclipse plugin project with scala nature.
And  create ViewPart with scala 

class MyViewPart extends ViewPart{
....
def createPartControl(parent: Composite){
println("Hello Scala World")
}
......
}
But debug my plugin MyViewPart.The Eclipse debug console can't print 'Hello Scala World'.
Master,Can you give me some suggestion?
Thank,
Robin

Mirco Dotta

unread,
Jul 24, 2012, 9:16:30 AM7/24/12
to scala-i...@googlegroups.com
hi,micro,

Hi Robin,

Thank for your help,Sorry but in my country,I can't watch the screencast.

That's indeed unfortunate.

I'm eclipse plugin developer and the plugin has been finished.
But I want use scala to change my plugin core.
For example:
I create eclipse plugin project with scala nature.
And  create ViewPart with scala 

class MyViewPart extends ViewPart{
....
def createPartControl(parent: Composite){
println("Hello Scala World")
}
......
}

And this works fine if you turn the above Scala class into a Java one?

But debug my plugin MyViewPart.The Eclipse debug console can't print 'Hello Scala World'.
Master,Can you give me some suggestion?

I'd be glad to help, but iI'm having a hard time understanding what the problem is in the first place.

If you create a simple Scala project with an object that contains a main method, can you run it? Can you see messages printed in the standard output in the Eclipse Console? If that is the case, then your Scala IDE installation is fine.

---------------
Mirco Dotta
Typesafe - The software stack for applications that scale
PSE-D, 1015 Lausanne, Switzerland
Twitter: @mircodotta








Robin Ou

unread,
Jul 26, 2012, 4:24:44 AM7/26/12
to scala-i...@googlegroups.com
Hi,Mirco,
Thanks for you help.

I change to 3.7.2 Eclipse and install 2.0.2 stable Scala IDE.
All works fine.

Before I use 4.2 Eclipse and install Scala IDE Helium, Nightly, for Eclipse 4.2 (Juno) .

I look forward to the stable version for the 4.2 Eclipse.
In short.thanks for your help.All works fine.

Regards
Robin.ou
Reply all
Reply to author
Forward
0 new messages