[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Here's what i mean:

Use content assist. It's part of the Java Editor, do ctrl+Space when you cursor is at the end of the word InputStream and it will present you with a list of possible completions. One of them will be the InputStream you want, and when you select it with the enter key or the mouse it will add the import automatically to your class.

By the way InputStream is a standard part of java. It is java.io.InputStream.


Victor wrote:
Rich Kulp wrote:
InputStream is = LabelExample.class.getResourceAsStream("interspatial.gif");



Rich

Thanks for your input.
I tried it, but was unable to get far.

InputStream cannot be resolved.

Apparently, i need to import the place where it lives.

For the life of me, i cant figure out where it lives. . .

So what i ask is this...

How do i figure out where InputStream lives?

I tried the help, obviously, but it doesnt help at all.

I then tried by looking at the "Eclipse Platform Release 3.0" documentation....(thru the 'help')
in the index actually. . . and InputStream is not even in the index.



this is what i have in my imports: import org.eclipse.swt.*; import org.eclipse.swt.widgets.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.graphics.*;





-- Thanks, Rich Kulp