Ignore:
Timestamp:
02/03/12 23:47:00 (13 years ago)
Author:
masberg
Message:

Suppress type warnings. Add FIXME note about dubious getAdapter() implementation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/org.modelica.mdt.ui/src/org/modelica/mdt/ui/view/ModelicaContentOutlinePage.java

    r1184 r1280  
    790790            if (s instanceof IStructuredSelection) {
    791791                IStructuredSelection ss= (IStructuredSelection) s;
     792                @SuppressWarnings("rawtypes")
    792793                List elements= ss.toList();
    793794                if (!elements.contains(reference)) {
     
    817818     * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
    818819     */
    819     public Object getAdapter(Class key) {
     820    // FIXME: The three top-level conditions test the same thing and all three returns from the function.
     821    public Object getAdapter(@SuppressWarnings("rawtypes") Class key) {
    820822        if (key == IModelicaElement.class) {
    821823            return getShowInSource();
Note: See TracChangeset for help on using the changeset viewer.