Lines 44-52
Link Here
|
44 |
* </ol> |
44 |
* </ol> |
45 |
* </p> |
45 |
* </p> |
46 |
*/ |
46 |
*/ |
47 |
public class PageLayout implements IPageLayout { |
47 |
public class PageLayout implements IPageLayout { |
48 |
private static final String MISSING_REF_PART = "Referenced part does not exist yet: "; //$NON-NLS-1$ |
|
|
49 |
|
50 |
private ViewFactory viewFactory; |
48 |
private ViewFactory viewFactory; |
51 |
private LayoutPart editorFolder; |
49 |
private LayoutPart editorFolder; |
52 |
private boolean editorVisible = true; |
50 |
private boolean editorVisible = true; |
Lines 156-162
Link Here
|
156 |
ratio = normalizeRatio(ratio); |
154 |
ratio = normalizeRatio(ratio); |
157 |
rootLayoutContainer.add(newPart, getPartSashConst(relationship), ratio, refPart); |
155 |
rootLayoutContainer.add(newPart, getPartSashConst(relationship), ratio, refPart); |
158 |
} else { |
156 |
} else { |
159 |
WorkbenchPlugin.log(MISSING_REF_PART + refId);//$NON-NLS-1$ |
157 |
WorkbenchPlugin.log(WorkbenchMessages.format("PageLayout.missingRefPart", new Object[] {refId}));//$NON-NLS-1$ |
160 |
rootLayoutContainer.add(newPart); |
158 |
rootLayoutContainer.add(newPart); |
161 |
} |
159 |
} |
162 |
} |
160 |
} |
Lines 224-230
Link Here
|
224 |
*/ |
222 |
*/ |
225 |
/*package*/ boolean checkPartInLayout(String partId) { |
223 |
/*package*/ boolean checkPartInLayout(String partId) { |
226 |
if (getRefPart(partId) != null) { |
224 |
if (getRefPart(partId) != null) { |
227 |
WorkbenchPlugin.log("Part already exists in page layout: " + partId);//$NON-NLS-1$ |
225 |
WorkbenchPlugin.log(WorkbenchMessages.format("PageLayout.duplicateRefPart", new Object[] {partId}));//$NON-NLS-1$ |
228 |
return true; |
226 |
return true; |
229 |
} |
227 |
} |
230 |
for(int i = 0; i<fastViews.size(); i++) { |
228 |
for(int i = 0; i<fastViews.size(); i++) { |
Lines 454-460
Link Here
|
454 |
} |
452 |
} |
455 |
|
453 |
|
456 |
// If ref part is not found then just do add. |
454 |
// If ref part is not found then just do add. |
457 |
WorkbenchPlugin.log(MISSING_REF_PART + refId);//$NON-NLS-1$ |
455 |
WorkbenchPlugin.log(WorkbenchMessages.format("PageLayout.missingRefPart", new Object[] {refId}));//$NON-NLS-1$ |
458 |
rootLayoutContainer.add(newPart); |
456 |
rootLayoutContainer.add(newPart); |
459 |
} |
457 |
} |
460 |
// stackPlaceholder(String, String) added by dan_rubel@instantiations.com |
458 |
// stackPlaceholder(String, String) added by dan_rubel@instantiations.com |