|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2001, 2005 IBM Corporation and others. |
2 |
* Copyright (c) 2001, 2010 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 7-23
Link Here
|
| 7 |
* |
7 |
* |
| 8 |
* Contributors: |
8 |
* Contributors: |
| 9 |
* IBM Corporation - initial API and implementation |
9 |
* IBM Corporation - initial API and implementation |
|
|
10 |
* 20100414 306773 mahutch@ca.ibm.com - Mark Hutchinson, make session time out configurable |
| 10 |
*******************************************************************************/ |
11 |
*******************************************************************************/ |
| 11 |
|
12 |
|
| 12 |
package org.eclipse.wst.ws.internal.explorer.platform.perspective; |
13 |
package org.eclipse.wst.ws.internal.explorer.platform.perspective; |
| 13 |
|
14 |
|
| 14 |
import javax.servlet.ServletContext; |
15 |
import javax.servlet.ServletContext; |
|
|
16 |
|
| 17 |
import org.eclipse.core.runtime.Platform; |
| 15 |
import org.eclipse.wst.ws.internal.explorer.platform.constants.ActionInputs; |
18 |
import org.eclipse.wst.ws.internal.explorer.platform.constants.ActionInputs; |
| 16 |
import org.eclipse.wst.ws.internal.explorer.platform.engine.ActionEngine; |
19 |
import org.eclipse.wst.ws.internal.explorer.platform.engine.ActionEngine; |
| 17 |
import org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective.FavoritesPerspective; |
20 |
import org.eclipse.wst.ws.internal.explorer.platform.favorites.perspective.FavoritesPerspective; |
| 18 |
import org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.UDDIPerspective; |
21 |
import org.eclipse.wst.ws.internal.explorer.platform.uddi.perspective.UDDIPerspective; |
| 19 |
import org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.WSDLPerspective; |
22 |
import org.eclipse.wst.ws.internal.explorer.platform.wsdl.perspective.WSDLPerspective; |
| 20 |
import org.eclipse.wst.ws.internal.explorer.platform.wsil.perspective.WSILPerspective; |
23 |
import org.eclipse.wst.ws.internal.explorer.platform.wsil.perspective.WSILPerspective; |
|
|
24 |
import org.eclipse.wst.ws.internal.explorer.plugin.ExplorerPlugin; |
| 21 |
|
25 |
|
| 22 |
public class Controller extends MessageProvider |
26 |
public class Controller extends MessageProvider |
| 23 |
{ |
27 |
{ |
|
Lines 221-224
Link Here
|
| 221 |
{ |
225 |
{ |
| 222 |
history_.dump(); |
226 |
history_.dump(); |
| 223 |
} |
227 |
} |
|
|
228 |
|
| 229 |
public final int getSessionTimeoutInMinutes() { |
| 230 |
|
| 231 |
String property = System.getProperty("org.eclipse.wst.ws.exlorer.sessionTimeout"); |
| 232 |
if (property!= null) { |
| 233 |
try { |
| 234 |
return Integer.parseInt(property); |
| 235 |
} catch (NumberFormatException e) { |
| 236 |
//do nothing, will check the preferences instead |
| 237 |
} |
| 238 |
} |
| 239 |
return Platform.getPreferencesService().getInt(ExplorerPlugin.ID,"sessionTimeout",30, null); |
| 240 |
} |
| 224 |
} |
241 |
} |