Order of realization of Connection [message #226105] |
Mon, 06 November 2006 05:59 |
Eclipse User |
|
|
|
Originally posted by: prasanna.tatti.in.bosch.com
Hi,
Connections are drawn after Figures in the graphical viewer. How to bring figure to front and send connection to back in a diagram where figure is not part of connected diagrams.
See attached figure.
Any help will be appreciated.
Thanks,
Prasanna
|
|
|
|
Re: Order of realization of Connection [message #226137 is a reply to message #226131] |
Mon, 06 November 2006 12:08 |
Eclipse User |
|
|
|
Originally posted by: shruthi.cn.in.bosch.com
Hello Mr. Pratik Shah,
I tried the approach that you have mentioned.
These are the steps:-
1) Created a class "BDEditorScalableFreeformRootEditPart" that extends
ScalableFreeformRootEditPart.
2) Override the method createPrintableLayers and put the connection layer
first and then primary layer as shown below.
protected LayeredPane createPrintableLayers() {
FreeformLayeredPane layeredPane = new FreeformLayeredPane();
layeredPane.add(new ConnectionLayer(), CONNECTION_LAYER);
layeredPane.add(new FreeformLayer(), PRIMARY_LAYER);
return layeredPane;
}
3) Set the viewer's root edit part to an object of the above class.
viewer.setRootEditPart(new BDEditorScalableFreeformRootEditPart());
When i run my application, the connections are still drawn at the top. Am
i missing any step in between? Please help.
Thank you very much
Best Regards
Shruthi
|
|
|
Re: Order of realization of Connection - Please provide help [message #226225 is a reply to message #226137] |
Wed, 08 November 2006 08:40 |
Eclipse User |
|
|
|
Originally posted by: shruthi.cn.in.bosch.com
Hello,
Please provide help for the query.
I tried the approach of moving the entire connection layer to be below the
primary layer.
These are the steps:-
1) Created a class "BDEditorScalableFreeformRootEditPart" that extends
ScalableFreeformRootEditPart.
2) Override the method createPrintableLayers and put the connection layer
first and then primary layer as shown below.
protected LayeredPane createPrintableLayers() {
FreeformLayeredPane layeredPane = new FreeformLayeredPane();
layeredPane.add(new ConnectionLayer(), CONNECTION_LAYER);
layeredPane.add(new FreeformLayer(), PRIMARY_LAYER);
return layeredPane;
}
3) Set the viewer's root edit part to an object of the above class.
viewer.setRootEditPart(new BDEditorScalableFreeformRootEditPart());
When i run my application, the connections are still drawn at the top. Am
i missing any step in between? Please help.
Thanks
Regards
Shruthi
|
|
|
Re: Order of realization of Connection - Please provide help [message #226281 is a reply to message #226225] |
Thu, 09 November 2006 00:05 |
Eclipse User |
|
|
|
Originally posted by: none.unknown.com
I don't think you're missing any step. Try debugging. Ensure that your
root editpart is not being overwritten and the createPrintableLayers()
method is indeed being called.
"shruthi" <shruthi.cn@in.bosch.com> wrote in message
news:62ae1c4a11d33b364b0081df997c236f$1@www.eclipse.org...
> Hello,
>
> Please provide help for the query.
> I tried the approach of moving the entire connection layer to be below the
> primary layer.
> These are the steps:-
> 1) Created a class "BDEditorScalableFreeformRootEditPart" that extends
> ScalableFreeformRootEditPart.
>
> 2) Override the method createPrintableLayers and put the connection layer
> first and then primary layer as shown below.
>
> protected LayeredPane createPrintableLayers() {
> FreeformLayeredPane layeredPane = new FreeformLayeredPane();
> layeredPane.add(new ConnectionLayer(), CONNECTION_LAYER);
> layeredPane.add(new FreeformLayer(), PRIMARY_LAYER);
> return layeredPane;
> }
>
> 3) Set the viewer's root edit part to an object of the above class.
> viewer.setRootEditPart(new BDEditorScalableFreeformRootEditPart());
>
> When i run my application, the connections are still drawn at the top. Am
> i missing any step in between? Please help.
>
>
> Thanks
> Regards
> Shruthi
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04263 seconds