This page is no longer maintained — Please continue to the home page at www.scala-lang.org

excluding .class files from open resource dialog

4 replies
Razvan Cojocaru 2
Joined: 2009-11-20,
User offline. Last seen 42 years 45 weeks ago.

I'm not sure this is a scala plugin issue...

CTRL+SHIFT+R looking for a resource - both the .class and the .scala files
are presented and it's annoying to have to move hand to arrow to select the
second one...

it seems to be a problem only for .scala files - don't know why, but .class
for .java files are not shown.

workaround : this alternative resource finder plugin:
http://muermann.org/gotofile/

-----
Razvan Cojocaru,
Work: http://www.sigma-systems.com
Me: http://feeds.razie.com/RazvanTech
Playground: http://wiki.homecloud.ca

ijuma
Joined: 2008-08-20,
User offline. Last seen 22 weeks 2 days ago.
Re: excluding .class files from open resource dialog

On Thu, Jan 28, 2010 at 2:13 PM, Razvan Cojocaru wrote:
>
> I'm not sure this is a scala plugin issue...
>
> CTRL+SHIFT+R looking for a resource - both the .class and the .scala files
> are presented and it's annoying to have to move hand to arrow to select the
> second one...

Not a solution if you actually want to find a resource, but
ctrl+shift+T side-steps that and gives you access to the types.

Best,
Ismael

Spiros Tzavellas
Joined: 2009-11-23,
User offline. Last seen 42 years 45 weeks ago.
Re: excluding .class files from open resource dialog

Hi Razvan,

if you right-click on your output folder, select Properties and then
mark the folder as Derived then the folder's contents will get
excluded from the open resource search results.

Razvan Cojocaru 2
Joined: 2009-11-20,
User offline. Last seen 42 years 45 weeks ago.
Re: excluding .class files from open resource dialog

I think my reflex to use resource finders is because CS-T is generally
slower...but yes, good workaround. I'm now using more the other one CA+N -
it's really fast and I enjoy the camel case :) couldn't make it work in the
CS+T although it says it would somehow support it...

Ismael Juma wrote:
>
> On Thu, Jan 28, 2010 at 2:13 PM, Razvan Cojocaru wrote:
>>
>> I'm not sure this is a scala plugin issue...
>>
>> CTRL+SHIFT+R looking for a resource - both the .class and the .scala
>> files
>> are presented and it's annoying to have to move hand to arrow to select
>> the
>> second one...
>
> Not a solution if you actually want to find a resource, but
> ctrl+shift+T side-steps that and gives you access to the types.
>
> Best,
> Ismael
>
>

-----
Razvan Cojocaru,
Work: http://www.sigma-systems.com
Me: http://feeds.razie.com/RazvanTech
Playground: http://wiki.homecloud.ca

Jeppe Nejsum Madsen
Joined: 2009-05-19,
User offline. Last seen 42 years 45 weeks ago.
Re: excluding .class files from open resource dialog

Spiros Tzavellas writes:

> Hi Razvan,
>
> if you right-click on your output folder, select Properties and then
> mark the folder as Derived then the folder's contents will get
> excluded from the open resource search results.

Awesome tip! I thought it was the Scala plugin that messed up, but it
seems like it's my combination of mixing maven output folders, specs
linked classes dirs etc. The actual plugin output folder is correctly
marked as derived.

/Jeppe

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland