blob: ad3245e98920f8fcdeed435369d86f80444c7f12 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.ote.ui.internal.wizard;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.osee.ote.ui.OteConsole;
/**
* @author Michael P. Masterson
*/
public class OteConsolePrefsWizard extends Wizard {
OteConsolePrefsWizPage mainPage;
private OteConsole console;
/**
* @param console
*/
public OteConsolePrefsWizard(OteConsole console) {
this.console = console;
mainPage = new OteConsolePrefsWizPage();
}
@Override
public boolean performFinish() {
int bufferLimit = mainPage.getBufferLimit();
boolean noLimitSelected = mainPage.getNoLimitSelection();
console.setLimit(bufferLimit);
console.setNoLimit(noLimitSelected);
return true;
}
@Override
public void addPages() {
addPage(mainPage);
}
}