Urgent help needed!! Removing component [message #86127] |
Tue, 01 July 2003 10:29  |
Eclipse User |
|
|
|
Originally posted by: ar9357.sbc.com
Using the call getGraphicalViewer().setContents(logicDiagram);
iam able to place a component(new diagram) on the Editor.
How do i remove all the component which are already on the Editor, before
adding any components.
|
|
|
Re: Urgent help needed!! Removing component [message #86143 is a reply to message #86127] |
Tue, 01 July 2003 11:04  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
This is a multi-part message in MIME format.
------=_NextPart_000_0008_01C33FC0.8A355E90
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I didn't have any trouble hacking the LogicEditor to replace hte =
contents of the viewer:
protected KeyHandler getCommonKeyHandler(){
if (sharedKeyHandler =3D=3D null){
sharedKeyHandler =3D new KeyHandler();
sharedKeyHandler.put(
KeyStroke.getPressed('4', 0),
new Action() {
public void run() {
=
getGraphicalViewer().setContents(LogicDiagramFactory.createL argeModel());=
}
});
...
This worked fine for me. I press the key 4, and the 4-bit adder diagram =
is replaced into the graphical view.
"Anil" <ar9357@sbc.com> wrote in message =
news:bds5rt$8gi$1@rogue.oti.com...
> Using the call getGraphicalViewer().setContents(logicDiagram);
> iam able to place a component(new diagram) on the Editor.
> How do i remove all the component which are already on the Editor, =
before
> adding any components.
>=20
>=20
>=20
------=_NextPart_000_0008_01C33FC0.8A355E90
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.2723.2500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>I didn't have any trouble hacking the =
LogicEditor=20
to replace hte contents of the viewer:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2>protected KeyHandler=20
getCommonKeyHandler(){<BR> if (sharedKeyHandler =3D=3D=20
null){<BR> sharedKeyHandler =3D new=20
KeyHandler();<BR> sharedKeyHandler.put( <BR> K=
eyStroke.getPressed('4',=20
0),<BR> new Action() =
{<BR> public void=20
run()=20
{<BR> getGraphic alViewer().setContents(Logic=
DiagramFactory.createLargeModel());<BR> } <BR> =
; });<BR> ... </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>This worked fine for me. I press =
the key 4,=20
and the 4-bit adder diagram is replaced into the graphical =
view.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>"Anil" <</FONT><A=20
href=3D"mailto:ar9357@sbc.com"><FONT face=3DArial=20
size=3D2>ar9357@sbc.com</FONT></A><FONT face=3DArial size=3D2>> wrote =
in message=20
</FONT><A href=3D"news:bds5rt$8gi$1@rogue.oti.com"><FONT face=3DArial=20
size=3D2>news:bds5rt$8gi$1@rogue.oti.com</FONT></A><FONT face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>> Using the call =
getGraphicalViewer().setContents(logicDiagram);<BR>> iam able to =
place a=20
component(new diagram) on the Editor.<BR>> How do i remove all the =
component=20
which are already on the Editor, before<BR>> adding any =
components.<BR>>=20
<BR>> <BR>> </FONT></BODY></HTML>
------=_NextPart_000_0008_01C33FC0.8A355E90--
|
|
|
Powered by
FUDForum. Page generated in 0.02696 seconds