X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.browsing.ui.platform%2Fsrc%2Forg%2Fsimantics%2Fbrowsing%2Fui%2Fplatform%2FVariablesPageView.java;h=f56cdfcf59697deae2109f830e5fe369956e4950;hp=d42f383157f45263b4a80376fb7ce9590111897e;hb=229196a1cb46a94d1cc5f75aef7f822157ba7917;hpb=2cd17c03bb80e24055147a0901802f8d1b2e5179 diff --git a/bundles/org.simantics.browsing.ui.platform/src/org/simantics/browsing/ui/platform/VariablesPageView.java b/bundles/org.simantics.browsing.ui.platform/src/org/simantics/browsing/ui/platform/VariablesPageView.java index d42f38315..f56cdfcf5 100644 --- a/bundles/org.simantics.browsing.ui.platform/src/org/simantics/browsing/ui/platform/VariablesPageView.java +++ b/bundles/org.simantics.browsing.ui.platform/src/org/simantics/browsing/ui/platform/VariablesPageView.java @@ -126,14 +126,14 @@ public class VariablesPageView extends PageBookView implements ISelectionListene * * @see org.eclipse.ui.part.PageBookView#getAdapter(java.lang.Class) */ - @SuppressWarnings({ "rawtypes" }) + @SuppressWarnings("unchecked") @Override - public Object getAdapter(Class adapter) { + public T getAdapter(Class adapter) { if (adapter == IContributedContentsView.class) { // This makes it possible to duplicate a PropertyPageView with another // secondary ID and make it show the same property page that was showing // in the original property page view. - return new IContributedContentsView() { + return (T) new IContributedContentsView() { @Override public IWorkbenchPart getContributingPart() { return getContributingEditor(); @@ -141,7 +141,7 @@ public class VariablesPageView extends PageBookView implements ISelectionListene }; } if (adapter == ISessionContextProvider.class) - return contextProvider; + return (T) contextProvider; return super.getAdapter(adapter); }