View | Details | Raw Unified | Return to bug 38171
Collapse All | Expand All

(-)PageLayout.java (-6 / +4 lines)
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
(-)messages.properties (+3 lines)
Lines 1306-1311 Link Here
1306
WorkbenchPage.unableToRestorePerspective=Unable to restore perspective: {0}.
1306
WorkbenchPage.unableToRestorePerspective=Unable to restore perspective: {0}.
1307
WorkbenchPage.unableToSavePerspective=Unable to save perspective: {0}.
1307
WorkbenchPage.unableToSavePerspective=Unable to save perspective: {0}.
1308
Perspective.unableToRestorePerspective=Unable to restore perspective: {0}.
1308
Perspective.unableToRestorePerspective=Unable to restore perspective: {0}.
1309
PageLayout.missingRefPart=Referenced part does not exist yet: {0}.
1310
PageLayout.duplicateRefPart=Part already exists in page layout: {0}.
1311
1309
1312
1310
# ==============================================================================
1313
# ==============================================================================
1311
# Keys with references but don't show in the UI
1314
# Keys with references but don't show in the UI

Return to bug 38171