#1365431 (toshihiro) - PHP Editor crashes Windows with JavaScript 'windows.close()'
[phpeclipse.git] / net.sourceforge.phpeclipse.webbrowser / src / net / sourceforge / phpeclipse / webbrowser / internal / StandardURLMap.java
1 /**
2  * Copyright (c) 2003 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  �*
8  * Contributors:
9  *    IBM - Initial API and implementation
10  */
11 package net.sourceforge.phpeclipse.webbrowser.internal;
12
13 import net.sourceforge.phpeclipse.webbrowser.IURLMap;
14
15 /**
16  * Standard URL mappings.
17  */
18 public class StandardURLMap implements IURLMap {
19         /**
20          * @see IURLMap#getMappedURL(String)
21          */
22         public String getMappedURL(String url) {
23                 if (url.equalsIgnoreCase("eclipse"))
24                         return "http://www.eclipse.org";
25                 else if (url.equalsIgnoreCase("webtools"))
26                         return "http://www.eclipse.org/webtools/";
27                 else
28                         return null;
29         }
30 }