Skip to main content



      Home
Home » Eclipse Projects » GEF » Placing child edit part on contents edit part.
Placing child edit part on contents edit part. [message #117348] Thu, 12 February 2004 11:50 Go to next message
Eclipse UserFriend
Originally posted by: bharath.starthis.com

Hi,

I am trying to place a child edit part on my contents edit part but the
edit part's visual (defined using figure.java) gets placed on the top left
corner of the screen. I believe it has to do with the
setLayoutConstraint() method or the validate() method in figure.java, but
I am not sure.

In other words, if i click on an entry in my palette to add a visual
(rectangle, in my case), the rectangle appears on the screen but shows up
in the top left corner and not on the position where I place it. It also
hides the border of the layout.

Thanks in advance!
Re: Placing child edit part on contents edit part. [message #117376 is a reply to message #117348] Thu, 12 February 2004 13:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bharath wrote:
| Hi,
|
| I am trying to place a child edit part on my contents edit part but the
| edit part's visual (defined using figure.java) gets placed on the top left
| corner of the screen. I believe it has to do with the
| setLayoutConstraint() method or the validate() method in figure.java, but
| I am not sure.
|
| In other words, if i click on an entry in my palette to add a visual
| (rectangle, in my case), the rectangle appears on the screen but shows up
| in the top left corner and not on the position where I place it. It also
| hides the border of the layout.
|
| Thanks in advance!
|

sounds like you are using the wrong layout manager. what is the type of
the edit part you are adding a child too?

- --
Respectfully,


CL Gilbert

"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber." John 10:1

GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D

For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAK8ClVbJM14DSCi0RAr3WAJ0bWpe/BG6qZDAooyIJVK31UfDjQACg y3VF
4FLf+wd+MtucY8kg7K6Q1Xk=
=K6dI
-----END PGP SIGNATURE-----
Re: Placing child edit part on contents edit part. [message #117414 is a reply to message #117376] Thu, 12 February 2004 13:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bharath.starthis.com

Hi Gilbert,

I fixed the problem by removing the connection edit part (which I call
'link') between this edit part and another edit part. I have two different
edit parts (source, target) which have to connected by an edge and I need
a separate edit part for the edge itself. In that case, for the source
edit part, I return "null" for the getconnectioncompletecommand() because
it is ONLY a source and connections ONLY ORIGINATE from it. However, this
logic gives me problems. Am I thinking in the right direction?

Thanks for your reply.

CL [dnoyeb] Gilbert wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1

> Bharath wrote:
> | Hi,
> |
> | I am trying to place a child edit part on my contents edit part but the
> | edit part's visual (defined using figure.java) gets placed on the top left
> | corner of the screen. I believe it has to do with the
> | setLayoutConstraint() method or the validate() method in figure.java, but
> | I am not sure.
> |
> | In other words, if i click on an entry in my palette to add a visual
> | (rectangle, in my case), the rectangle appears on the screen but shows up
> | in the top left corner and not on the position where I place it. It also
> | hides the border of the layout.
> |
> | Thanks in advance!
> |

> sounds like you are using the wrong layout manager. what is the type of
> the edit part you are adding a child too?

> - --
> Respectfully,


> CL Gilbert

> "Verily, verily, I say unto you, He that entereth not by the door() into
> the sheepfold{}, but climbeth up some other *way, the same is a thief
> and a robber." John 10:1

> GnuPG Key Fingerprint:
> 82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D

> For a free Java interface to Freechess.org see
> http://www.rigidsoftware.com/Chess/chess.html
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

> iD8DBQFAK8ClVbJM14DSCi0RAr3WAJ0bWpe/BG6qZDAooyIJVK31UfDjQACg y3VF
> 4FLf+wd+MtucY8kg7K6Q1Xk=
> =K6dI
> -----END PGP SIGNATURE-----
Re: Placing child edit part on contents edit part. [message #117929 is a reply to message #117414] Tue, 17 February 2004 00:04 Go to previous message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bharath wrote:
| Hi Gilbert,
|
| I fixed the problem by removing the connection edit part (which I call
| 'link') between this edit part and another edit part. I have two different
| edit parts (source, target) which have to connected by an edge and I need
| a separate edit part for the edge itself. In that case, for the source
| edit part, I return "null" for the getconnectioncompletecommand() because
| it is ONLY a source and connections ONLY ORIGINATE from it. However, this
| logic gives me problems. Am I thinking in the right direction?
|
| Thanks for your reply.
|
| CL [dnoyeb] Gilbert wrote:
|



you should never return null. if connections only originate from it,
somehow have the connection action determine wether or not it is safe to
start a connection from that part. If its that part, the connection
action should reject the connection start.

- --
Respectfully,


CL Gilbert

"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber." John 10:1

GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D

For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAMaDaVbJM14DSCi0RAuESAKDTR3ktEjTJ9+5ZfKjqILsnWhN1ugCd GPXD
/aBllUCGKrM0YZ1ps+yT9kM=
=+DVw
-----END PGP SIGNATURE-----
Previous Topic:My Figures cannot move....
Next Topic:Container EditPart.
Goto Forum:
  


Current Time: Sun May 11 07:18:23 EDT 2025

Powered by FUDForum. Page generated in 0.06011 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top