1 /*******************************************************************************
2 * Copyright (c) 2007, 2008 Intel Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
9 * Intel Corporation - initial API and implementation
10 *******************************************************************************/
11 package org.eclipse.cdt.ui.newui;
13 import org.eclipse.core.runtime.CoreException;
14 import org.eclipse.core.runtime.IProgressMonitor;
16 import org.eclipse.cdt.core.model.CoreModel;
18 /* This class is a base for preference pages
19 * which store data in preferences
21 * - changes are saved by tabs, not by page
22 * - if changes are made, all projects are
25 public class PrefPage_Abstract extends AbstractPrefPage {
27 static public boolean isChanged;
29 public PrefPage_Abstract() {
34 protected void doSave(IProgressMonitor monitor) throws CoreException {
36 CoreModel.getDefault().updateProjectDescriptions(null, monitor);
41 protected String getHeader() { return null; }
43 protected boolean isSingle() { return true; }