blob: 237888e1f849268802ab7138756960edbb7a8e0c [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 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* 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};
}
}