| 35 |
editors, action sets.<br> |
editors, action sets.<br> |
| 36 |
<br> |
<br> |
| 37 |
<span style="font-weight: bold;">Stefan Xenos, IBM</span><br> |
<span style="font-weight: bold;">Stefan Xenos, IBM</span><br> |
| 38 |
July 7, 2005<br> |
July 12, 2005<br> |
| 39 |
<br> |
<br> |
| 40 |
</div> |
</div> |
| 41 |
<br> |
<br> |
| 335 |
</div> |
</div> |
| 336 |
</div> |
</div> |
| 337 |
<br> |
<br> |
| 338 |
Notice that all LayoutParts have a container pointer that points back |
<br> |
| 339 |
to the object that is currently managing their location. For historical |
All LayoutParts have a container pointer that points to the object that |
| 340 |
reasons, this pointer is often null the LayoutPart is invisible. See |
is currently managing their position. Since the same LayoutPart |
| 341 |
the source for details. <br> |
instance may exist in more than one perspective at once, this pointer |
| 342 |
<br> |
points to the part's container in the currently-active perspective. In |
| 343 |
When a perspective is active, its ViewSashContainer contains real |
the case of the projects view, above, the part is not in the current |
| 344 |
PartPanes. When the perspective becomes inactive, the editor area and |
perspective so its container pointer is null. When another |
| 345 |
PartPanes are replaced by PartPlaceholders and the real parts are moved |
perspective becomes active, all the container pointers move to the new |
| 346 |
to the new active perspective. (Note that the same PartPane instances |
perspective. For historical reasons, this is accomplished by setting |
| 347 |
are shared across all perspectives). In the above diagram, the Java |
and |
| 348 |
Browsing perspective is inactive and only contains placeholders. The |
clearing the contianer pointer when the container becomes visible or |
| 349 |
PartPane for the projects view has no container since it is not visible |
invisible. This works since only one perspective is visible at a time, |
| 350 |
in the current perspective.<br> |
but it also means that perspectives cannot be manipulated when they are |
| 351 |
|
invisible.<br> |
| 352 |
<br> |
<br> |
| 353 |
The diagram shows the internal objects that make up the only editor. |
The diagram shows the internal objects that make up the only editor. |
| 354 |
Although this detail has been omitted for the views, they would look |
Although this detail has been omitted for the views, they would look |
| 355 |
similar. Each view's PartPane is owned by a part reference which may |
similar. Each view's PartPane is owned by a part reference which may |
| 356 |
have an associated part implementation. PartPlaceholders are not |
have an associated part implementation.<br> |
|
directly connected to the part reference. They only store the ID of the |
|
|
part they stand in for.<br> |
|
| 357 |
<br> |
<br> |
| 358 |
<h2><a class="mozTocH3" name="mozTocId994793"></a>3.2 Zoom / Unzoom |
<h2><a class="mozTocH3" name="mozTocId994793"></a>3.2 Zoom / Unzoom |
| 359 |
protocol<br> |
protocol<br> |