diff options
Diffstat (limited to 'bundles/org.eclipse.wst.xsd.ui/src-search/org/eclipse/wst/xsd/ui/internal/search/actions/FindReferencesInProjectAction.java')
-rw-r--r-- | bundles/org.eclipse.wst.xsd.ui/src-search/org/eclipse/wst/xsd/ui/internal/search/actions/FindReferencesInProjectAction.java | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-search/org/eclipse/wst/xsd/ui/internal/search/actions/FindReferencesInProjectAction.java b/bundles/org.eclipse.wst.xsd.ui/src-search/org/eclipse/wst/xsd/ui/internal/search/actions/FindReferencesInProjectAction.java deleted file mode 100644 index cab3b943b1..0000000000 --- a/bundles/org.eclipse.wst.xsd.ui/src-search/org/eclipse/wst/xsd/ui/internal/search/actions/FindReferencesInProjectAction.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005, 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.wst.xsd.ui.internal.search.actions; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.runtime.IPath; -import org.eclipse.search.ui.NewSearchUI; -import org.eclipse.ui.IEditorPart; -import org.eclipse.wst.common.core.search.pattern.QualifiedName; -import org.eclipse.wst.common.core.search.scope.ProjectSearchScope; -import org.eclipse.wst.xsd.ui.internal.search.XSDSearchQuery; -import org.eclipse.xsd.XSDNamedComponent; -public class FindReferencesInProjectAction extends FindReferencesAction -{ - public FindReferencesInProjectAction(IEditorPart editor) - { - super(editor); - } - - public void run() - { - String pattern = ""; - XSDNamedComponent component = getXSDNamedComponent(); - IFile file = getCurrentFile(); - if (file != null && component != null) - { - QualifiedName metaName = determineMetaName(component); - QualifiedName elementQName = new QualifiedName(component.getTargetNamespace(), component.getName()); - IPath fullPath = (IPath) file.getFullPath(); - ProjectSearchScope scope = new ProjectSearchScope(fullPath); - String scopeDescription = "Workspace"; - XSDSearchQuery searchQuery = new XSDSearchQuery(pattern, file, elementQName, metaName, XSDSearchQuery.LIMIT_TO_REFERENCES, scope, scopeDescription); - NewSearchUI.activateSearchResultView(); - NewSearchUI.runQueryInBackground(searchQuery); - } - } -} |