GEF TreeViewer [message #174137] |
Tue, 29 March 2005 11:36 |
Eclipse User |
|
|
|
Originally posted by: dan.vaum.net
This is a multi-part message in MIME format.
------=_NextPart_000_0039_01C5346C.A9CD3F00
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi!
Is there an example of implementing an =
"org.eclipse.gef.ui.parts.TreeViewer" in a ViewPart? What I would like =
to do is something like this:
public class TreeView extends ViewPart {
private TreeViewer treeViewer;
public TreeView() {
super();
}
public void createPartControl(Composite parent) {
TreeViewer treeViewer =3D new TreeViewer();
// POPULATE treeViewer WITH THE CONTENTS OF MY MODEL
}
public void setFocus() {}
}
I know there must be an easy way of doing this, but I just couldn't find =
an example. Please point me to the right direction.
Thank you,
Dan
------=_NextPart_000_0039_01C5346C.A9CD3F00
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2604" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hi!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Is there an example =
of implementing=20
an "org.eclipse.gef.ui.parts.TreeViewer" in a ViewPart? What I =
would like=20
to do is something like this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier color=3D#0000ff size=3D2>public class TreeView =
extends=20
ViewPart {</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier color=3D#0000ff size=3D2> =
private=20
TreeViewer treeViewer;</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier color=3D#0000ff size=3D2> =
public=20
TreeView() {</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff size=3D2> =20
super();<BR> }</FONT></DIV>
<DIV><BR><FONT face=3DCourier color=3D#0000ff =
size=3D2> public void=20
createPartControl(Composite parent)=20
{<BR> TreeViewer tree=
Viewer=20
=3D new TreeViewer();</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier color=3D#0000ff size=3D2> =20
// POPULATE treeViewer WITH THE CONTENTS =
OF MY=20
MODEL</FONT></DIV>
<DIV><BR><FONT face=3DCourier color=3D#0000ff=20
size=3D2> }</FONT></DIV>
<DIV><BR><FONT face=3DCourier color=3D#0000ff =
size=3D2> public void=20
setFocus() {}</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff size=3D2>}</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I know there must be an easy =
way of=20
doing this, but I just couldn't find an example. Please point me to =
the=20
right direction.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thank you,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Dan</FONT></DIV></BODY></HTML>
------=_NextPart_000_0039_01C5346C.A9CD3F00--
|
|
|
|
Re: GEF TreeViewer [message #174278 is a reply to message #174245] |
Tue, 29 March 2005 17:08 |
Eclipse User |
|
|
|
Originally posted by: rudolf.vaum.net
This is a multi-part message in MIME format.
------=_NextPart_000_0009_01C5349B.23CF98B0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
what are the (dis-)advantages of using the treeviewer of gef instead of =
the one from jface?
Thanks
Rudi
"Pratik Shah" <ppshah@us.ibm.com> wrote in message =
news:d2c0gb$uf6$1@news.eclipse.org...
All GEF examples use the TreeViewer in their outline page. You can =
look at ShapesEditor.ShapesOutlinePage.
"Dan" <dan@vaum.net> wrote in message =
news:d2bekf$1j2$1@news.eclipse.org...
Hi!
Is there an example of implementing an =
"org.eclipse.gef.ui.parts.TreeViewer" in a ViewPart? What I would like =
to do is something like this:
public class TreeView extends ViewPart {
private TreeViewer treeViewer;
public TreeView() {
super();
}
public void createPartControl(Composite parent) {
TreeViewer treeViewer =3D new TreeViewer();
// POPULATE treeViewer WITH THE CONTENTS OF MY MODEL
}
public void setFocus() {}
}
I know there must be an easy way of doing this, but I just couldn't =
find an example. Please point me to the right direction.
Thank you,
Dan
------=_NextPart_000_0009_01C5349B.23CF98B0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>what are the (dis-)advantages of =
using the=20
treeviewer of gef instead of the one from jface?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Rudi</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Pratik Shah" <<A=20
href=3D"mailto:ppshah@us.ibm.com">ppshah@us.ibm.com</A>> wrote in =
message <A=20
=
href=3D"news:d2c0gb$uf6$1@news.eclipse.org">news:d2c0gb$uf6$1@news.eclips=
e.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>All GEF examples use the TreeViewer =
in their=20
outline page. You can look at=20
ShapesEditor.ShapesOutlinePage.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Dan" <<A href=3D"mailto:dan@vaum.net">dan@vaum.net</A>> =
wrote in=20
message <A=20
=
href=3D"news:d2bekf$1j2$1@news.eclipse.org">news:d2bekf$1j2$1@news.eclips=
e.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Hi!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Is there an example =
of implementing=20
an "org.eclipse.gef.ui.parts.TreeViewer" in a ViewPart? What I =
would=20
like to do is something like this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier color=3D#0000ff size=3D2>public class =
TreeView extends=20
ViewPart {</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2> private=20
TreeViewer treeViewer;</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2> public=20
TreeView() {</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2> =20
super();<BR> }</FONT></DIV>
<DIV><BR><FONT face=3DCourier color=3D#0000ff =
size=3D2> public=20
void createPartControl(Composite parent)=20
=
{<BR> TreeViewer tree=
Viewer=20
=3D new TreeViewer();</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2> =20
// POPULATE treeViewer WITH THE =
CONTENTS=20
OF MY MODEL</FONT></DIV>
<DIV><BR><FONT face=3DCourier color=3D#0000ff=20
size=3D2> }</FONT></DIV>
<DIV><BR><FONT face=3DCourier color=3D#0000ff =
size=3D2> public=20
void setFocus() {}</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff size=3D2>}</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I know there must be an easy =
way of=20
doing this, but I just couldn't find an example. Please point =
me to the=20
right direction.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thank you,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial=20
size=3D2>Dan</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY ></HTML>
------=_NextPart_000_0009_01C5349B.23CF98B0--
|
|
|
Re: GEF TreeViewer [message #174286 is a reply to message #174245] |
Tue, 29 March 2005 17:19 |
Eclipse User |
|
|
|
Originally posted by: rudolf.vaum.net
This is a multi-part message in MIME format.
------=_NextPart_000_0019_01C5349C.8BC1E5D0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I have also noticed there are only just a few lines of code required to =
customize=20
the tree view that emf generates - would you recommend using this, as an =
outline
view to a gef editor?
"Pratik Shah" <ppshah@us.ibm.com> wrote in message =
news:d2c0gb$uf6$1@news.eclipse.org...
All GEF examples use the TreeViewer in their outline page. You can =
look at ShapesEditor.ShapesOutlinePage.
"Dan" <dan@vaum.net> wrote in message =
news:d2bekf$1j2$1@news.eclipse.org...
Hi!
Is there an example of implementing an =
"org.eclipse.gef.ui.parts.TreeViewer" in a ViewPart? What I would like =
to do is something like this:
public class TreeView extends ViewPart {
private TreeViewer treeViewer;
public TreeView() {
super();
}
public void createPartControl(Composite parent) {
TreeViewer treeViewer =3D new TreeViewer();
// POPULATE treeViewer WITH THE CONTENTS OF MY MODEL
}
public void setFocus() {}
}
I know there must be an easy way of doing this, but I just couldn't =
find an example. Please point me to the right direction.
Thank you,
Dan
------=_NextPart_000_0019_01C5349C.8BC1E5D0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I have also noticed there are only =
just a few=20
lines of code required to customize </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the tree view that emf generates - =
would you=20
recommend using this, as an outline</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>view </FONT><FONT face=3DArial =
size=3D2>to a gef=20
editor?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Pratik Shah" <<A=20
href=3D"mailto:ppshah@us.ibm.com">ppshah@us.ibm.com</A>> wrote in =
message <A=20
=
href=3D"news:d2c0gb$uf6$1@news.eclipse.org">news:d2c0gb$uf6$1@news.eclips=
e.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>All GEF examples use the TreeViewer =
in their=20
outline page. You can look at=20
ShapesEditor.ShapesOutlinePage.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Dan" <<A href=3D"mailto:dan@vaum.net">dan@vaum.net</A>> =
wrote in=20
message <A=20
=
href=3D"news:d2bekf$1j2$1@news.eclipse.org">news:d2bekf$1j2$1@news.eclips=
e.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Hi!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Is there an example =
of implementing=20
an "org.eclipse.gef.ui.parts.TreeViewer" in a ViewPart? What I =
would=20
like to do is something like this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier color=3D#0000ff size=3D2>public class =
TreeView extends=20
ViewPart {</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2> private=20
TreeViewer treeViewer;</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2> public=20
TreeView() {</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2> =20
super();<BR> }</FONT></DIV>
<DIV><BR><FONT face=3DCourier color=3D#0000ff =
size=3D2> public=20
void createPartControl(Composite parent)=20
=
{<BR> TreeViewer tree=
Viewer=20
=3D new TreeViewer();</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2> =20
// POPULATE treeViewer WITH THE =
CONTENTS=20
OF MY MODEL</FONT></DIV>
<DIV><BR><FONT face=3DCourier color=3D#0000ff=20
size=3D2> }</FONT></DIV>
<DIV><BR><FONT face=3DCourier color=3D#0000ff =
size=3D2> public=20
void setFocus() {}</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff size=3D2>}</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I know there must be an easy =
way of=20
doing this, but I just couldn't find an example. Please point =
me to the=20
right direction.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thank you,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial=20
size=3D2>Dan</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY ></HTML>
------=_NextPart_000_0019_01C5349C.8BC1E5D0--
|
|
|
Re: GEF TreeViewer [message #174302 is a reply to message #174245] |
Tue, 29 March 2005 17:41 |
Eclipse User |
|
|
|
Originally posted by: rudolf.vaum.net
This is a multi-part message in MIME format.
------=_NextPart_000_000F_01C5349F.B68EBF60
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
last not least, can you please tell us, what the targeted eclipse & =
gef/emf version is for=20
the examples found on the cvs?
we have tried to run them on the latest versions - as there always are =
some errors in the projects
Thanks
Rudi
"Pratik Shah" <ppshah@us.ibm.com> wrote in message =
news:d2c0gb$uf6$1@news.eclipse.org...
All GEF examples use the TreeViewer in their outline page. You can =
look at ShapesEditor.ShapesOutlinePage.
"Dan" <dan@vaum.net> wrote in message =
news:d2bekf$1j2$1@news.eclipse.org...
Hi!
Is there an example of implementing an =
"org.eclipse.gef.ui.parts.TreeViewer" in a ViewPart? What I would like =
to do is something like this:
public class TreeView extends ViewPart {
private TreeViewer treeViewer;
public TreeView() {
super();
}
public void createPartControl(Composite parent) {
TreeViewer treeViewer =3D new TreeViewer();
// POPULATE treeViewer WITH THE CONTENTS OF MY MODEL
}
public void setFocus() {}
}
I know there must be an easy way of doing this, but I just couldn't =
find an example. Please point me to the right direction.
Thank you,
Dan
------=_NextPart_000_000F_01C5349F.B68EBF60
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>last not least, can you please tell us, =
what the=20
targeted eclipse & gef/emf version is for </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the examples found on the =
cvs?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>we have tried to run them on the latest =
versions -=20
as there always are some errors in the projects</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Rudi</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Pratik Shah" <<A=20
href=3D"mailto:ppshah@us.ibm.com">ppshah@us.ibm.com</A>> wrote in =
message <A=20
=
href=3D"news:d2c0gb$uf6$1@news.eclipse.org">news:d2c0gb$uf6$1@news.eclips=
e.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>All GEF examples use the TreeViewer =
in their=20
outline page. You can look at=20
ShapesEditor.ShapesOutlinePage.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Dan" <<A href=3D"mailto:dan@vaum.net">dan@vaum.net</A>> =
wrote in=20
message <A=20
=
href=3D"news:d2bekf$1j2$1@news.eclipse.org">news:d2bekf$1j2$1@news.eclips=
e.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Hi!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Is there an example =
of implementing=20
an "org.eclipse.gef.ui.parts.TreeViewer" in a ViewPart? What I =
would=20
like to do is something like this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier color=3D#0000ff size=3D2>public class =
TreeView extends=20
ViewPart {</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2> private=20
TreeViewer treeViewer;</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2> public=20
TreeView() {</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2> =20
super();<BR> }</FONT></DIV>
<DIV><BR><FONT face=3DCourier color=3D#0000ff =
size=3D2> public=20
void createPartControl(Composite parent)=20
=
{<BR> TreeViewer tree=
Viewer=20
=3D new TreeViewer();</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2> =20
// POPULATE treeViewer WITH THE =
CONTENTS=20
OF MY MODEL</FONT></DIV>
<DIV><BR><FONT face=3DCourier color=3D#0000ff=20
size=3D2> }</FONT></DIV>
<DIV><BR><FONT face=3DCourier color=3D#0000ff =
size=3D2> public=20
void setFocus() {}</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff size=3D2>}</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I know there must be an easy =
way of=20
doing this, but I just couldn't find an example. Please point =
me to the=20
right direction.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thank you,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial=20
size=3D2>Dan</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY ></HTML>
------=_NextPart_000_000F_01C5349F.B68EBF60--
|
|
|
Re: GEF TreeViewer [message #175497 is a reply to message #174302] |
Mon, 04 April 2005 23:51 |
Pratik Shah Messages: 1077 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_0323_01C5394F.C020ECB0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
For code that's in CVS, the targetted GEF version is always the latest =
code in CVS. EMF version is 2.0.1.
"Rudi Vaum" <rudolf@vaum.net> wrote in message =
news:d2c428$3k6$1@news.eclipse.org...
last not least, can you please tell us, what the targeted eclipse & =
gef/emf version is for=20
the examples found on the cvs?
we have tried to run them on the latest versions - as there always are =
some errors in the projects
Thanks
Rudi
"Pratik Shah" <ppshah@us.ibm.com> wrote in message =
news:d2c0gb$uf6$1@news.eclipse.org...
All GEF examples use the TreeViewer in their outline page. You can =
look at ShapesEditor.ShapesOutlinePage.
"Dan" <dan@vaum.net> wrote in message =
news:d2bekf$1j2$1@news.eclipse.org...
Hi!
Is there an example of implementing an =
"org.eclipse.gef.ui.parts.TreeViewer" in a ViewPart? What I would like =
to do is something like this:
public class TreeView extends ViewPart {
private TreeViewer treeViewer;
public TreeView() {
super();
}
public void createPartControl(Composite parent) {
TreeViewer treeViewer =3D new TreeViewer();
// POPULATE treeViewer WITH THE CONTENTS OF MY MODEL
}
public void setFocus() {}
}
I know there must be an easy way of doing this, but I just =
couldn't find an example. Please point me to the right direction.
Thank you,
Dan
------=_NextPart_000_0323_01C5394F.C020ECB0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1491" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>For code that's in CVS, the targetted =
GEF version=20
is always the latest code in CVS. EMF version is=20
2.0.1.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Rudi Vaum" <<A =
href=3D"mailto:rudolf@vaum.net">rudolf@vaum.net</A>>=20
wrote in message <A=20
=
href=3D"news:d2c428$3k6$1@news.eclipse.org">news:d2c428$3k6$1@news.eclips=
e.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>last not least, can you please tell =
us, what the=20
targeted eclipse & gef/emf version is for </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the examples found on the =
cvs?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>we have tried to run them on the =
latest versions=20
- as there always are some errors in the projects</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Rudi</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Pratik Shah" <<A=20
href=3D"mailto:ppshah@us.ibm.com">ppshah@us.ibm.com</A>> wrote in =
message=20
<A=20
=
href=3D"news:d2c0gb$uf6$1@news.eclipse.org">news:d2c0gb$uf6$1@news.eclips=
e.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>All GEF examples use the TreeViewer =
in their=20
outline page. You can look at=20
ShapesEditor.ShapesOutlinePage.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Dan" <<A =
href=3D"mailto:dan@vaum.net">dan@vaum.net</A>> wrote in=20
message <A=20
=
href=3D"news:d2bekf$1j2$1@news.eclipse.org">news:d2bekf$1j2$1@news.eclips=
e.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Hi!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Is there an example =
of implementing=20
an "org.eclipse.gef.ui.parts.TreeViewer" in a ViewPart? What =
I would=20
like to do is something like this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier color=3D#0000ff size=3D2>public class =
TreeView extends=20
ViewPart {</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2> private=20
TreeViewer treeViewer;</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2> public=20
TreeView() {</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2> =20
super();<BR> }</FONT></DIV>
<DIV><BR><FONT face=3DCourier color=3D#0000ff =
size=3D2> public=20
void createPartControl(Composite parent)=20
=
{<BR> TreeViewer tree=
Viewer=20
=3D new TreeViewer();</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2> =20
// POPULATE treeViewer WITH THE =
CONTENTS=20
OF MY MODEL</FONT></DIV>
<DIV><BR><FONT face=3DCourier color=3D#0000ff=20
size=3D2> }</FONT></DIV>
<DIV><BR><FONT face=3DCourier color=3D#0000ff =
size=3D2> public=20
void setFocus() {}</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff size=3D2>}</FONT></DIV>
<DIV><FONT face=3DCourier color=3D#0000ff =
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I know there must be an easy =
way of=20
doing this, but I just couldn't find an example. Please point =
me to=20
the right direction.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thank you,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial=20
size=3D2>Dan</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE ></BODY></=
HTML>
------=_NextPart_000_0323_01C5394F.C020ECB0--
|
|
|
|
Powered by
FUDForum. Page generated in 0.03401 seconds