Estimation [message #87392] |
Mon, 18 April 2005 04:13  |
Eclipse User |
|
|
|
Hello,
as you know I would like to implement a relationship between components
that is a little bit like a relationship between a Shell and SWT Button.
In my case there is a variable:
Hashmap hm;
in the code. And if I drop a swing button on the frame a button with a
parameter hm has to be instantiated.
myButton = new MyButton(hm);
Hashmap for my button has to be like parentComposite (Shell) for SWT
button.
(1)
Do I have to develop an editpart and an editpoliy beside decoderhelper to
reach my aim ? Or do I have to implement other classes? I have already
seen how to define an editpart and an editpoliy in override files.
I know I asked you a lot about instantiating a component with a parameter.
I really appreciate that you always gave me a detailed answer.
(2)
Could you give me an estimation how complex it is to implement my case or
how long it would take? It must also be considered that I am new in this
theme.
Thank you in advance
Elena
|
|
|
|
|
|
Re: Estimation [message #88452 is a reply to message #87392] |
Mon, 25 April 2005 08:38  |
Eclipse User |
|
|
|
Hello,
could you give me a hint what classes and interfaces I must implement and
where it is better to start?
Thank you
Elena
|
|
|
|
Re: Estimation [message #607164 is a reply to message #87392] |
Mon, 18 April 2005 11:21  |
Eclipse User |
|
|
|
Hi Elena,
> Could you give me an estimation how complex it is to implement my case
> or how long it would take? It must also be considered that I am new in
> this theme.
What is the hierarchy of your classes. You said none of them were
visual but then you talked about Swing. Is your example something like
A extends Object{
public B getB();
public void setB(B);
B extends Object{
public void addA(A);
public void removeA(A);
}
What is the example of a full class .java code that contains a
relationship between parent and child you want the VE to be able to open
with ?
Best regards,
Joe
|
|
|
Re: Estimation [message #607166 is a reply to message #87457] |
Mon, 18 April 2005 12:37  |
Eclipse User |
|
|
|
Hello :o),
in my case the relationship is like this:
-------------------------------------------
Public class B extends JButton {
Public B (A a) {
a.setB(this);
}
}
-------------------------------------------
Public class A extends Hashtable {
putB(B b) {
}
}
---------------------------------------------
As you see the class B is a visual class and the class A is a not visual
class. The Class A has a list of Objects of the class B. I hope it is
possible to implement my example.
Thank you very much :-)
Elena
|
|
|
Re: Estimation [message #607233 is a reply to message #87392] |
Mon, 25 April 2005 08:38  |
Eclipse User |
|
|
|
Hello,
could you give me a hint what classes and interfaces I must implement and
where it is better to start?
Thank you
Elena
|
|
|
Powered by
FUDForum. Page generated in 0.04042 seconds