Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
askTypeAt Question
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Chee Seng Chua  
View profile  
 More options Aug 2 2012, 3:22 am
From: Chee Seng Chua <chees...@amaseng.com>
Date: Thu, 2 Aug 2012 15:22:50 +0800
Local: Thurs, Aug 2 2012 3:22 am
Subject: Re: askTypeAt Question

Hi Mirco,

Sure, I have added scala-ide-dev into the list.

Iulian:  Let me try to see if I can work out something based on your guide.

Thanks!

Best Regards,
Chee Seng

On Thu, Aug 2, 2012 at 3:19 PM, Mirco Dotta <mirco.do...@typesafe.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chee Seng Chua  
View profile  
 More options Aug 2 2012, 9:35 am
From: Chee Seng Chua <chees...@amaseng.com>
Date: Thu, 2 Aug 2012 21:35:08 +0800
Local: Thurs, Aug 2 2012 9:35 am
Subject: Re: askTypeAt Question

Hi all,

I can't go through IType/IJavaElement, as it is what I can get from
property tester (when user right click in the code, the element which is
clicked on).  However, the compilation unit workaround does work, the only
different is instead of:-

t.name == "..."

I'll need to use:-

t.symbol.fullName == "..."

I have checked in the changes:-

https://github.com/scalatest/scalatest-eclipse-plugin/commit/a43a4172...

The goal of the ScalaTestLaunchShortcut.isScalaTestSuite is to determine
whether a particular IType is a runnable suite, which could be a sub-class
of org.scalatest.Suite or class annotated with @WrapWith (which is used to
run non-ScalaTest suite, such as specs, cucumber, scalachecks etc.).  While
in ScalaTestFinder, it needs to find out the finder class, which is from
@Style annotation.  For ScalaTest style traits (Suite, FunSpec, FeatureSpec
etc.) it is annotated at the style traits level, so it only needs to find
it from the super classes/traits @Style.  For the @WrapWith case, the
@Style is available at the runner class, for example:-

import org.specs.Specification
import org.scalatest.WrapWith
import org.scalatest.specs.Spec1Runner

@WrapWith(classOf[Spec1Runner])
class ExampleSpec1 extends Specification {
...

}

The @Style will be available at Spec1Runner class.  Previously the lookup
was done with reflection, but it has a problem where the information will
not be available until the class is compiled, which these changes should
fix.

Do feel free to review and comment on the code.

Thanks a lot for the guidance!

P/S Iulian: Sorry to disturb your vacation, I wasn't aware of that.  Have a
good one!

Best Regards,
Chee Seng

On Thu, Aug 2, 2012 at 3:22 PM, Chee Seng Chua <chees...@amaseng.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »