Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Way to search for a java calling pattern
Way to search for a java calling pattern [message #114436] Thu, 06 November 2003 13:19 Go to next message
Eclipse UserFriend
Originally posted by: newsgroup.10.triman.spamgourmet.com

The IBM JDK 1.3.1 which runs websphere does not support
StringBuffer.append(StringBuffer), however it compiles fine in Eclipse,
even if I have a 1.3.1 compile target. I'm wanting to do a search
through my source code looking for all instances where append is called
on a StringBuffer with a StringBuffer as an arguement. Is there any way
to do this in Eclipse?
Re: Way to search for a java calling pattern [message #114449 is a reply to message #114436] Thu, 06 November 2003 13:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Jed.Anderson.EN.aclickinthedark.com

John,


The compiler option controls how the compiler views your java syntax.
Since StringBuffer.append(StringBuffer) is syntactically correct in
1.3.1 the compiler will not complain that it found the method in a 1.4
library.

Is it possible that you launched Eclipse with a 1.4 VM and then never
specified the 1.3.1 class libraries for your projects? Eclipse will use
the class libraries of the VM you launched with if you don't specify
another class library.

Hope this helps.

jkca

John Pletka wrote:
> The IBM JDK 1.3.1 which runs websphere does not support
> StringBuffer.append(StringBuffer), however it compiles fine in Eclipse,
> even if I have a 1.3.1 compile target. I'm wanting to do a search
> through my source code looking for all instances where append is called
> on a StringBuffer with a StringBuffer as an arguement. Is there any way
> to do this in Eclipse?
>
Re: Way to search for a java calling pattern [message #114483 is a reply to message #114436] Thu, 06 November 2003 15:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-user.jibeinc.com

John Pletka wrote:

> The IBM JDK 1.3.1 which runs websphere does not support
> StringBuffer.append(StringBuffer), however it compiles fine in Eclipse,
> even if I have a 1.3.1 compile target. I'm wanting to do a search
> through my source code looking for all instances where append is called
> on a StringBuffer with a StringBuffer as an arguement. Is there any way
> to do this in Eclipse?

Sure. Open the class StringBuffer and select the method in the Members
view (Java or Java Browsing perspectives). Right click on the method and
choose References > Workspace or References > [your-working-set]

Or, if you have a piece of code open already that calls the
append(StringBuffer) method, you can place you cursor on that call in
the code, right-click, and choose Search > Referneces > ...

HTH,
Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com
Re: Way to search for a java calling pattern [message #114530 is a reply to message #114483] Thu, 06 November 2003 15:39 Go to previous message
Eclipse UserFriend
Originally posted by: newsgroup.10.triman.spamgourmet.com

Thanks. That worked.

Eric Rizzo wrote:

> John Pletka wrote:
>
>> The IBM JDK 1.3.1 which runs websphere does not support
>> StringBuffer.append(StringBuffer), however it compiles fine in
>> Eclipse, even if I have a 1.3.1 compile target. I'm wanting to do a
>> search through my source code looking for all instances where append
>> is called on a StringBuffer with a StringBuffer as an arguement. Is
>> there any way to do this in Eclipse?
>
>
> Sure. Open the class StringBuffer and select the method in the Members
> view (Java or Java Browsing perspectives). Right click on the method and
> choose References > Workspace or References > [your-working-set]
>
> Or, if you have a piece of code open already that calls the
> append(StringBuffer) method, you can place you cursor on that call in
> the code, right-click, and choose Search > Referneces > ...
>
> HTH,
> Eric
Previous Topic:ActionListener
Next Topic:Non-JAR Object Code in the Classpath
Goto Forum:
  


Current Time: Wed May 07 22:06:12 EDT 2025

Powered by FUDForum. Page generated in 0.05652 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top