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

Hey,

oh everyone german in here ;-)

I created a Plugin Project, and everything works (so my imports are ok), except the class "CursorCellHighlighter". In which bundle is it?

Second thing is the constructor of the class TableCursor(). I can only find the constructor new TableCursor(Table parent, int style) and NOT new TableCursor(Columnviewer v)

As dependencies i added the two bundles "org.eclipse.runtime" and "org.eclipse.ui".

Greetz from Stuttgart
Thomas


Daniel Krügler wrote:



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