diff options
Diffstat (limited to 'bundles/org.eclipse.wst.xsd.ui/src/org/eclipse/wst/xsd/ui/internal/properties/section/PatternSectionDescriptor.java')
-rw-r--r-- | bundles/org.eclipse.wst.xsd.ui/src/org/eclipse/wst/xsd/ui/internal/properties/section/PatternSectionDescriptor.java | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/bundles/org.eclipse.wst.xsd.ui/src/org/eclipse/wst/xsd/ui/internal/properties/section/PatternSectionDescriptor.java b/bundles/org.eclipse.wst.xsd.ui/src/org/eclipse/wst/xsd/ui/internal/properties/section/PatternSectionDescriptor.java deleted file mode 100644 index e7432e8785..0000000000 --- a/bundles/org.eclipse.wst.xsd.ui/src/org/eclipse/wst/xsd/ui/internal/properties/section/PatternSectionDescriptor.java +++ /dev/null @@ -1,85 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 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.wst.xsd.ui.internal.properties.section; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.jface.viewers.ISelection; -import org.eclipse.jface.viewers.StructuredSelection; -import org.eclipse.ui.IWorkbenchPart; -import org.eclipse.wst.common.ui.properties.ISection; -import org.eclipse.xsd.XSDPatternFacet; - -public class PatternSectionDescriptor extends AbstractSectionDescriptor -{ - /** - * - */ - public PatternSectionDescriptor() - { - super(); - } - - - /* (non-Javadoc) - * @see org.eclipse.wst.common.ui.properties.ISectionDescriptor#getId() - */ - public String getId() - { - return "com.ibm.xsdeditor.section.pattern"; - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.ui.properties.ISectionDescriptor#getInputTypes() - */ - public List getInputTypes() - { - List list = new ArrayList(); - list.add(XSDPatternFacet.class); - return list; - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.ui.properties.ISectionDescriptor#getSectionClass() - */ - public ISection getSectionClass() - { - return new PatternSection(); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.ui.properties.ISectionDescriptor#getTargetTab() - */ - public String getTargetTab() - { - return "com.ibm.xmlwebservices.general"; - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.ui.properties.ISectionDescriptor#appliesTo(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection) - */ - public boolean appliesTo(IWorkbenchPart part, ISelection selection) - { - Object object = null; - if (selection instanceof StructuredSelection) - { - StructuredSelection structuredSelection = (StructuredSelection)selection; - object = structuredSelection.getFirstElement(); - if (object instanceof XSDPatternFacet) - { - return true; - } - } - return false; - } - -} |