diff options
Diffstat (limited to 'bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/MarkerAdapterFactory.java')
-rw-r--r-- | bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/MarkerAdapterFactory.java | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/MarkerAdapterFactory.java b/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/MarkerAdapterFactory.java deleted file mode 100644 index 6e7ce805..00000000 --- a/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/MarkerAdapterFactory.java +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2007 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.jsdt.internal.ui; - -import org.eclipse.core.runtime.IAdapterFactory; -import org.eclipse.search.ui.ISearchPageScoreComputer; -import org.eclipse.wst.jsdt.internal.ui.search.JavaSearchPageScoreComputer; -import org.eclipse.wst.jsdt.internal.ui.search.SearchUtil; - - -/** - * Adapter factory to support basic UI operations for markers. - */ -public class MarkerAdapterFactory implements IAdapterFactory { - - private static Class[] PROPERTIES= new Class[0]; - - - private Object fSearchPageScoreComputer; - - public Class[] getAdapterList() { - updateLazyLoadedAdapters(); - return PROPERTIES; - } - - public Object getAdapter(Object element, Class key) { - updateLazyLoadedAdapters(); - if (fSearchPageScoreComputer != null && ISearchPageScoreComputer.class.equals(key)) - return fSearchPageScoreComputer; - return null; - } - - private void updateLazyLoadedAdapters() { - if (fSearchPageScoreComputer == null && SearchUtil.isSearchPlugInActivated()) - createSearchPageScoreComputer(); - } - - private void createSearchPageScoreComputer() { - fSearchPageScoreComputer= new JavaSearchPageScoreComputer(); - PROPERTIES= new Class[] {ISearchPageScoreComputer.class}; - } -} |