|
What this is
Other links
The source code/******************************************************************************* * Copyright (c) 2000, 2006 IBM Corporation and others. * 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: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.pde.internal.ui.wizards; import java.util.Dictionary; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.wizard.Wizard; import org.eclipse.pde.internal.ui.PDEUIMessages; import org.eclipse.ui.INewWizard; import org.eclipse.ui.IWorkbench; public class NewWizard extends Wizard implements INewWizard, IDefaultValueConsumer { private org.eclipse.ui.IWorkbench workbench; private org.eclipse.jface.viewers.IStructuredSelection selection; private Dictionary defaultValues; public NewWizard() { super(); setWindowTitle(PDEUIMessages.NewWizard_wtitle); } public org.eclipse.jface.viewers.IStructuredSelection getSelection() { return selection; } public IWorkbench getWorkbench() { return workbench; } public void init(IWorkbench workbench, IStructuredSelection selection) { this.workbench = workbench; this.selection = selection; } public boolean performFinish() { return true; } /* * (non-Javadoc) * * @see org.eclipse.pde.internal.ui.wizards.IDefaultValueConsumer#getDefaultValue(java.lang.String) */ public String getDefaultValue(String key) { if (defaultValues == null) return null; return (String) defaultValues.get(key); } /* * (non-Javadoc) * * @see org.eclipse.pde.internal.ui.wizards.IDefaultValueConsumer#init(java.util.Dictionary) */ public void init(Dictionary defaultValues) { this.defaultValues = defaultValues; } } |
... this post is sponsored by my books ... | |
![]() #1 New Release! |
![]() FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.