Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » components in horizontal
components in horizontal [message #185976] Fri, 09 May 2008 10:23 Go to next message
Eclipse UserFriend
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 #186195 is a reply to message #185976] Sun, 11 May 2008 14:28 Go to previous messageGo to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
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 #186531 is a reply to message #186195] Tue, 13 May 2008 07:34 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #186688 is a reply to message #186682] Tue, 13 May 2008 15:09 Go to previous messageGo to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
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
>>
>
>
Re: components in horizontal [message #186888 is a reply to message #186688] Wed, 14 May 2008 08:19 Go to previous message
Eclipse UserFriend
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
>>>
>>
Previous Topic:BorderItemRectilinearRouter works!! But with some issues.... Any Idea?
Next Topic:dynamic diagram
Goto Forum:
  


Current Time: Sat Apr 20 03:21:59 GMT 2024

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

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

Back to the top