[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Trees and Tables

T. Wilhelm wrote:
Ok i looked at the snippets and found some interessting things.
Anyway i cant start any of the interessting snippets because i miss a bunch of classes, i.e.


TableViewerFocusCellManager focusCellManager = new TableViewerFocusCellManager(v,new CursorCellHighlighter(v,new TableCursor(v)));

I cant get the CursorCellHighlighter class and the Tablecursor has different constructors. So is there maybe a version problem? Or do i just miss some bundles? I use Galileo 3.5.

I assume you have a Java project created that contains a copy of this snippet. Now mark the project, select from the context menu "Properties", select Java Build Path, Tab libraries, Select external Libraries, browse to you Eclipse installation (if not already there) and choose depending plug-in jars, You will need several, e.g.

org.eclipse.swt_*
org.eclipse.swt_{os}*  // {os} = win32, ...
org.eclipse.jface
org.eclipse.ui

and maybe some more. Personally I have usually also added

org.eclipse.core.commands
org.eclipse.core.databinding

as well. Now try to start and check for any errors, it may be
that still something is missing. If you don't know where this
entity belongs to, press Ctrl+Shift+T in Eclipse and check for
the type. If you have found it, you can either recognize from
the package name or by simply pressing the link button in
the Package Explorer which Plug-in Dependency it belongs to
and add this as library as well in the same manner as you did
it before.

HTH & Greetings from Bremen,

Daniel Krügler