components in horizontal [message #185976] |
Fri, 09 May 2008 10:23 |
Eclipse User |
|
|
|
Originally posted by: aritz.galdos.iese.fraunhofer.de
Hello everybody!!
I wnat to have the components (nodes) of my editor horizontally. Does
anybody know which is the best layout for that?
Thanks in advance!!
Aritz
|
|
|
|
Re: components in horizontal [message #186531 is a reply to message #186195] |
Tue, 13 May 2008 07:34 |
Eclipse User |
|
|
|
Originally posted by: aritz.galdos.iese.fraunhofer.de
Hi Axel!!
Thank you for answering me!! I have tried but it doesn't work. I don't know
if I am programming well!!
I have created a class called myLayoutProvider and it extends from
AbstractEditrPartProvider. In this class, I have written this code that
calls to my other class:
protected Class getDiagramEditPartClass(View view) {
if (view instanceof Diagram) {
Diagram diagram = (Diagram) view;
if (view.getElement() instanceof myDiagram
&& myDiagramEditPart.MODEL_ID.equals(diagram.getType())) {
return myDiagramEditPartOverride.class;
}
}
return null;
}
In myDiagramEditPartOverride class I have a createFigure where I add the
flow layout to the figure. Is it correct? I hope that you can help me!!!
Aritz
"Axel Guckelsberger" <info@guite.de> wrote in message
news:g06vr6$1kv$1@build.eclipse.org...
> Hi Aritz,
>
> you might check out the FlowLayout which is able to lay out its children
> into either rows or columns. There is a boolean property defining if the
> horizontal mode is activated.
>
> Greetings
>
> Axel Guckelsberger
>
>
> Aritz schrieb:
>> Hello everybody!!
>>
>> I wnat to have the components (nodes) of my editor horizontally. Does
>> anybody know which is the best layout for that?
>>
>> Thanks in advance!!
>>
>> Aritz
|
|
|
Re: components in horizontal [message #186682 is a reply to message #186531] |
Tue, 13 May 2008 15:00 |
Eclipse User |
|
|
|
Originally posted by: aritz.galdos.iese.fraunhofer.de
Hello everybody!!
Can anybody help me, please? I don't know what more I can try!!
Thank you in advance!!
Aritz
"Aritz" <aritz.galdos@iese.fraunhofer.de> wrote in message
news:g0bgb7$t4h$1@build.eclipse.org...
> Hi Axel!!
>
> Thank you for answering me!! I have tried but it doesn't work. I don't
> know if I am programming well!!
>
> I have created a class called myLayoutProvider and it extends from
> AbstractEditrPartProvider. In this class, I have written this code that
> calls to my other class:
> protected Class getDiagramEditPartClass(View view) {
>
>
> if (view instanceof Diagram) {
>
> Diagram diagram = (Diagram) view;
>
>
> if (view.getElement() instanceof myDiagram
>
> && myDiagramEditPart.MODEL_ID.equals(diagram.getType())) {
>
>
> return myDiagramEditPartOverride.class;
>
> }
>
> }
>
> return null;
>
> }
>
> In myDiagramEditPartOverride class I have a createFigure where I add the
> flow layout to the figure. Is it correct? I hope that you can help me!!!
>
> Aritz
>
>
>
>
> "Axel Guckelsberger" <info@guite.de> wrote in message
> news:g06vr6$1kv$1@build.eclipse.org...
>> Hi Aritz,
>>
>> you might check out the FlowLayout which is able to lay out its children
>> into either rows or columns. There is a boolean property defining if the
>> horizontal mode is activated.
>>
>> Greetings
>>
>> Axel Guckelsberger
>>
>>
>> Aritz schrieb:
>>> Hello everybody!!
>>>
>>> I wnat to have the components (nodes) of my editor horizontally. Does
>>> anybody know which is the best layout for that?
>>>
>>> Thanks in advance!!
>>>
>>> Aritz
>
>
|
|
|
|
Re: components in horizontal [message #186888 is a reply to message #186688] |
Wed, 14 May 2008 08:19 |
Eclipse User |
|
|
|
Originally posted by: aritz.galdos.iese.fraunhofer.de
Axel,
Thank you very much for the reference. I have taken most of the code and I
have addapted to my own project and with small changes, it is working!!!
Finally it is working!! Thank you, really!!
Aritz
"Axel Guckelsberger" <info@guite.de> wrote in message
news:g0cav3$1o6$1@build.eclipse.org...
> Aritz,
>
> I am afraid I have no specific solution for you.
>
> But perhaps you could take a look at the TaiPan example. It's port
> subeditor uses a custom Layout Manager placing all Figures into a
> table-like arrangement.
>
> Greetings
>
> Axel Guckelsberger
>
>
>
> Aritz schrieb:
>> Hello everybody!!
>>
>> Can anybody help me, please? I don't know what more I can try!!
>>
>> Thank you in advance!!
>>
>> Aritz
>>
>> "Aritz" <aritz.galdos@iese.fraunhofer.de> wrote in message
>> news:g0bgb7$t4h$1@build.eclipse.org...
>>> Hi Axel!!
>>>
>>> Thank you for answering me!! I have tried but it doesn't work. I don't
>>> know if I am programming well!!
>>>
>>> I have created a class called myLayoutProvider and it extends from
>>> AbstractEditrPartProvider. In this class, I have written this code that
>>> calls to my other class:
>>> protected Class getDiagramEditPartClass(View view) {
>>>
>>>
>>> if (view instanceof Diagram) {
>>>
>>> Diagram diagram = (Diagram) view;
>>>
>>>
>>> if (view.getElement() instanceof myDiagram
>>>
>>> && myDiagramEditPart.MODEL_ID.equals(diagram.getType())) {
>>>
>>>
>>> return myDiagramEditPartOverride.class;
>>>
>>> }
>>>
>>> }
>>>
>>> return null;
>>>
>>> }
>>>
>>> In myDiagramEditPartOverride class I have a createFigure where I add the
>>> flow layout to the figure. Is it correct? I hope that you can help me!!!
>>>
>>> Aritz
>>>
>>>
>>>
>>>
>>> "Axel Guckelsberger" <info@guite.de> wrote in message
>>> news:g06vr6$1kv$1@build.eclipse.org...
>>>> Hi Aritz,
>>>>
>>>> you might check out the FlowLayout which is able to lay out its
>>>> children into either rows or columns. There is a boolean property
>>>> defining if the horizontal mode is activated.
>>>>
>>>> Greetings
>>>>
>>>> Axel Guckelsberger
>>>>
>>>>
>>>> Aritz schrieb:
>>>>> Hello everybody!!
>>>>>
>>>>> I wnat to have the components (nodes) of my editor horizontally. Does
>>>>> anybody know which is the best layout for that?
>>>>>
>>>>> Thanks in advance!!
>>>>>
>>>>> Aritz
>>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.02921 seconds