diff options
Diffstat (limited to 'bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/favorites/FavoritesRegistryTypeWSE.java')
-rw-r--r-- | bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/favorites/FavoritesRegistryTypeWSE.java | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/favorites/FavoritesRegistryTypeWSE.java b/bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/favorites/FavoritesRegistryTypeWSE.java deleted file mode 100644 index 253fc8c16..000000000 --- a/bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/favorites/FavoritesRegistryTypeWSE.java +++ /dev/null @@ -1,76 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2003, 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.ws.internal.explorer.favorites; - -import org.apache.wsil.WSILDocument; -import org.eclipse.wst.ws.internal.explorer.plugin.ExplorerPlugin; -import org.eclipse.wst.ws.internal.parser.favorites.FavoritesRegistryTypeAbstract; - - -public class FavoritesRegistryTypeWSE extends FavoritesRegistryTypeAbstract -{ - private static WSILDocument wsilDoc_; - public static final String FAVORITES_WSEXPLORER = "favorites.wsil"; - private String defaultFavorites_ = null; - private String stateLocation_ = null; - - public FavoritesRegistryTypeWSE() - { - super(); - wsilDoc_ = null; - } - - public FavoritesRegistryTypeWSE(String defaultFavorites, String stateLocation) { - super(); - wsilDoc_ = null; - defaultFavorites_ = defaultFavorites; - stateLocation_ = stateLocation; - } - - public String getReadLocation() - { - StringBuffer readLocation = new StringBuffer(); - readLocation.append(stateLocation_ == null ? ExplorerPlugin.getInstance().getPluginStateLocation() : stateLocation_); - readLocation.append(FAVORITES_WSEXPLORER); - return readLocation.toString(); - } - - public String getWriteLocation() - { - return getReadLocation(); - } - - protected WSILDocument getWSILDocument() - { - if (wsilDoc_ == null) - { - wsilDoc_ = loadWSILDocument(getReadLocation(), false); - if (wsilDoc_ == null) - { - restoreFavoritesDefault(); - try - { - save(); - } - catch (Throwable t) - { - } - } - } - return wsilDoc_; - } - - public void restoreFavoritesDefault() - { - wsilDoc_ = (new FavoritesRegistryTypeDefault(defaultFavorites_)).getWSILDocument(); - } -} |