Skip to content
Snippets Groups Projects
Commit ae5c5ac3 authored by felmer's avatar felmer
Browse files

LMS-1343 making LogoutCallback a normal class

SVN: 14357
parent 2d21060e
No related merge requests found
......@@ -17,9 +17,7 @@
package ch.systemsx.cisd.openbis.generic.client.web.client.application.menu.user.action;
import ch.systemsx.cisd.openbis.generic.client.web.client.ICommonClientServiceAsync;
import ch.systemsx.cisd.openbis.generic.client.web.client.application.AbstractAsyncCallback;
import ch.systemsx.cisd.openbis.generic.client.web.client.application.IViewContext;
import ch.systemsx.cisd.openbis.generic.client.web.client.application.util.GWTUtils;
import ch.systemsx.cisd.openbis.generic.client.web.client.application.util.IDelegatedAction;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.DisplaySettings;
......@@ -43,19 +41,4 @@ public class LogoutAction implements IDelegatedAction
viewContext.getModel().getSessionContext().getDisplaySettings();
viewContext.getService().logout(displaySettings, new LogoutCallback(viewContext));
}
private final class LogoutCallback extends AbstractAsyncCallback<Void>
{
LogoutCallback(IViewContext<ICommonClientServiceAsync> viewContext)
{
super(viewContext);
}
@Override
public final void process(final Void result)
{
viewContext.getPageController().reload(true);
GWTUtils.setAllowConfirmOnExit(false);
}
}
}
/*
* Copyright 2010 ETH Zuerich, CISD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ch.systemsx.cisd.openbis.generic.client.web.client.application.menu.user.action;
import ch.systemsx.cisd.openbis.generic.client.web.client.ICommonClientServiceAsync;
import ch.systemsx.cisd.openbis.generic.client.web.client.application.AbstractAsyncCallback;
import ch.systemsx.cisd.openbis.generic.client.web.client.application.IViewContext;
import ch.systemsx.cisd.openbis.generic.client.web.client.application.util.GWTUtils;
final class LogoutCallback extends AbstractAsyncCallback<Void>
{
LogoutCallback(IViewContext<ICommonClientServiceAsync> viewContext)
{
super(viewContext);
System.out.println("CREATE "+this);
}
@Override
protected void finalize() throws Throwable
{
System.out.println("FINALIZE "+this);
}
@Override
public final void process(final Void result)
{
viewContext.getPageController().reload(true);
GWTUtils.setAllowConfirmOnExit(false);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment