Skip to content

Commit

Permalink
Use the NON generic version of getAdapter in WebViewPart
Browse files Browse the repository at this point in the history
The generic version has been introduced in Mars, but in order to make
this class usable also in Indigo and Kepler we need to go back to the
non generic version of getAdapter

Change-Id: Ifec1422f4b9bb72e700a44ca39720fcd9cd95298
  • Loading branch information
LorenzoBettini committed Dec 19, 2015
1 parent 07fad49 commit 1e867f6
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*******************************************************************************
* Copyright (c) 2015 RCP Vision (http://www.rcp-vision.com) 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:
* Vincenzo Caselli - Initial contribution and API
*******************************************************************************/
package org.eclipse.emf.parsley.web.servlets;

import org.eclipse.swt.graphics.Image;
Expand Down Expand Up @@ -51,8 +61,8 @@ public void removePropertyListener(IPropertyListener listener) {
public void setFocus() {
}

@Override
public <T> T getAdapter(Class<T> adapter) {
@SuppressWarnings({ "rawtypes", "unchecked" })
public Object getAdapter(Class adapter) {
return null;
}

Expand Down

0 comments on commit 1e867f6

Please sign in to comment.