Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Estimation
Estimation [message #87392] Mon, 18 April 2005 08:13 Go to next message
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
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 #87408 is a reply to message #87392] Mon, 18 April 2005 10:33 Go to previous messageGo to next message
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
I think it is important to say that Hashmap is not a graphical class.


Thanks
Elena
Re: Estimation [message #87457 is a reply to message #87392] Mon, 18 April 2005 15:21 Go to previous messageGo to next message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
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 #87488 is a reply to message #87457] Mon, 18 April 2005 16:37 Go to previous messageGo to next message
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
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 #88452 is a reply to message #87392] Mon, 25 April 2005 12:38 Go to previous message
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
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 #607161 is a reply to message #87392] Mon, 18 April 2005 10:33 Go to previous message
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
I think it is important to say that Hashmap is not a graphical class.


Thanks
Elena
Re: Estimation [message #607164 is a reply to message #87392] Mon, 18 April 2005 15:21 Go to previous message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
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 16:37 Go to previous message
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
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 12:38 Go to previous message
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
Hello,


could you give me a hint what classes and interfaces I must implement and
where it is better to start?



Thank you

Elena
Previous Topic:VE Installation
Next Topic:Instantiating derrived component
Goto Forum:
  


Current Time: Fri Apr 26 06:53:47 GMT 2024

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

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

Back to the top