blob: 5003d40d64209ef14274f760ac1803d8152348db [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007 Oracle 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:
* Oracle Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.pagedesigner.properties.internal;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.views.properties.tabbed.ITabDescriptor;
import org.eclipse.ui.views.properties.tabbed.ITabDescriptorProvider;
/**
* Class that provides the default tabs for the Web Page Editor
*/
public class WPETabDescriptorProvider implements ITabDescriptorProvider {
private AttributesTabDescriptor _attributesTabDescriptor;
private QuickEditTabDescriptor _quickTabDescriptor;
/**
* Constructor
*/
public WPETabDescriptorProvider() {
_quickTabDescriptor = new QuickEditTabDescriptor();
_attributesTabDescriptor = new AttributesTabDescriptor();
}
/**
* Provides a QuickTabDescriptor and the AttributesTabDescriptor
*/
public ITabDescriptor[] getTabDescriptors(IWorkbenchPart part,
ISelection selection) {
return new ITabDescriptor[]{_quickTabDescriptor,
_attributesTabDescriptor};
}
}