|
Lines 351-356
Link Here
|
| 351 |
int relationship, float ratio, String refId); |
351 |
int relationship, float ratio, String refId); |
| 352 |
|
352 |
|
| 353 |
/** |
353 |
/** |
|
|
354 |
* Adds a standalone view placeholder to this page layout. |
| 355 |
* A view placeholder is used to define the position of a view before the view |
| 356 |
* appears. Initially, it is invisible; however, if the user ever opens a view |
| 357 |
* whose compound id matches the placeholder, the view will appear at the same |
| 358 |
* location as the placeholder. |
| 359 |
* See the {@link IPageLayout} type documentation for more details about compound ids. |
| 360 |
* If the placeholder contains wildcards, it remains in the layout, otherwise |
| 361 |
* it is replaced by the view. |
| 362 |
* If the primary id of the placeholder has no wildcards, it must refer to a view |
| 363 |
* contributed to the workbench's view extension point |
| 364 |
* (named <code>"org.eclipse.ui.views"</code>). |
| 365 |
* |
| 366 |
* @param viewId the compound view id (wildcards allowed) |
| 367 |
* @param relationship the position relative to the reference part; |
| 368 |
* one of <code>TOP</code>, <code>BOTTOM</code>, <code>LEFT</code>, |
| 369 |
* or <code>RIGHT</code> |
| 370 |
* @param ratio a ratio specifying how to divide the space currently occupied by the reference part, |
| 371 |
* in the range <code>0.05f</code> to <code>0.95f</code>. |
| 372 |
* Values outside this range will be clipped to facilitate direct manipulation. |
| 373 |
* For a vertical split, the part on top gets the specified ratio of the current space |
| 374 |
* and the part on bottom gets the rest. |
| 375 |
* Likewise, for a horizontal split, the part at left gets the specified ratio of the current space |
| 376 |
* and the part at right gets the rest. |
| 377 |
* @param refId the id of the reference part; either a view id, a folder id, |
| 378 |
* or the special editor area id returned by <code>getEditorArea</code> |
| 379 |
* @param showTitle true to show the view's title, false if not |
| 380 |
*/ |
| 381 |
public void addStandaloneViewPlaceholder(String viewId, |
| 382 |
int relationship, float ratio, String refId,boolean showTitle); |
| 383 |
|
| 384 |
/** |
| 354 |
* Returns the special identifier for the editor area in this page |
385 |
* Returns the special identifier for the editor area in this page |
| 355 |
* layout. The identifier for the editor area is also stored in |
386 |
* layout. The identifier for the editor area is also stored in |
| 356 |
* <code>ID_EDITOR_AREA</code>. |
387 |
* <code>ID_EDITOR_AREA</code>. |