Ignore:
Timestamp:
02/04/15 10:25:15 (10 years ago)
Author:
adrpo
Message:
  • mdt 0.7.35 + fix the parsing issue for getClassInformation
File:
1 edited

Legend:

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

    r1280 r1867  
    22 * @author Adrian Pop [adrpo@ida.liu.se, http://www.ida.liu.se/~adrpo]
    33 * Copyright (c) 2006 Adrian Pop [adrpo@ida.liu.se]
    4  * All rights reserved. 
     4 * All rights reserved.
    55 * Permission to use, copy, modify, and distribute this software and
    6  * its documentation for NON-COMMERCIAL purposes and without fee is hereby 
    7  * granted, provided that this copyright notice appear in all copies and 
     6 * its documentation for NON-COMMERCIAL purposes and without fee is hereby
     7 * granted, provided that this copyright notice appear in all copies and
    88 * that both the copyright notice and this permission notice and warranty
    99 * disclaimer appear in supporting documentation, and that the name of
    1010 * The Author not be used in advertising or publicity pertaining to
    1111 * distribution of the software without specific, written prior permission.
    12  * 
    13  * COMMERCIAL use, copy, modification and distribution 
    14  * is NOT permitted without prior written agreement with 
     12 *
     13 * COMMERCIAL use, copy, modification and distribution
     14 * is NOT permitted without prior written agreement with
    1515 * Adrian Pop [adrpo@ida.liu.se].
    16  * 
     16 *
    1717 * THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
    1818 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
     
    113113    static IPreferenceStore prefStore = UIPlugin.getDefault().getPreferenceStore();
    114114
    115     ModelicaEditor fEditor = null; 
     115    ModelicaEditor fEditor = null;
    116116
    117117    private IModelicaElement fInput;
     
    144144            updateSelectionProvider(getSite());
    145145        }
    146     }   
     146    }
    147147
    148148
     
    243243                try {
    244244                    return c.hasChildren();
    245                 } 
    246                 catch (Exception x) 
     245                }
     246                catch (Exception x)
    247247                {
    248248                    // do nothing
     
    275275                fListener.setViewer(viewer);
    276276                ModelicaCore.getModelicaRoot().addModelicaElementChangeListener(fListener);
    277             } 
     277            }
    278278            else if (!isMO && fListener != null) {
    279279                ModelicaCore.getModelicaRoot().removeModelicaElementChangeListener(fListener);
     
    291291            final boolean matchedAsIn = searchParameterArray(inputs, name, typeName);
    292292            final boolean matchedAsOut = searchParameterArray(outputs, name, typeName);
    293            
     293
    294294            String decoratedName = name;
    295295
     
    301301            }
    302302            else if (!matchedAsIn && !matchedAsOut) {
    303                 ErrorManager.logWarning("That's odd, that parameter did not match as being neither in nor out.");
     303                // ErrorManager.logWarning("That's odd, that parameter did not match as being neither in nor out.");
    304304            }
    305305            else { // if matchedAsIn && matchedAsOut
    306306                ErrorManager.logWarning("That's odd, that parameter matched as being both in and out.");
    307307            }
    308            
     308
    309309            IModelicaComponent newComponent = new ModelicaComponent(parent, decoratedName, typeName, visibility, definitionLocation);
    310            
     310
    311311            return newComponent;
    312312        }
     
    475475
    476476        private ModelicaElementComparator fComparator= new ModelicaElementComparator(ModelicaElementComparator.NAME);
    477         private ModelicaElementComparator fModelicaComparator= new ModelicaElementComparator(ModelicaElementComparator.MODELICA);       
     477        private ModelicaElementComparator fModelicaComparator= new ModelicaElementComparator(ModelicaElementComparator.MODELICA);
    478478
    479479        public LexicalSortingAction() {
    480480            setText("Sort");
    481             setImageDescriptor(ModelicaImages.getImageDescriptor(ModelicaImages.IMG_OUTLINE_SORT)); 
     481            setImageDescriptor(ModelicaImages.getImageDescriptor(ModelicaImages.IMG_OUTLINE_SORT));
    482482            setToolTipText("Sort");
    483483            setDescription("Sorting lables");
    484484            boolean checked= fCorePreferenceStore.getBoolean("ModelicaEditor.Outline.LexicalSortingAction.isChecked"); //$NON-NLS-1$
    485             valueChanged(checked, false);           
     485            valueChanged(checked, false);
    486486        }
    487487
     
    528528        public ToggleLinkingAction(ModelicaContentOutlinePage outlinePage) {
    529529            boolean isLinkingEnabled= fCorePreferenceStore.getBoolean("ModelicaEditor.SyncOutlineOnCursorMove");
    530             setChecked(isLinkingEnabled);           
     530            setChecked(isLinkingEnabled);
    531531            fModelicaOutlinePage= outlinePage;
    532532        }
     
    537537        @Override
    538538        public void run() {
    539             fCorePreferenceStore.setValue("ModelicaEditor.SyncOutlineOnCursorMove", isChecked());           
     539            fCorePreferenceStore.setValue("ModelicaEditor.SyncOutlineOnCursorMove", isChecked());
    540540            if (isChecked() && fEditor != null) {
    541541                fEditor.synchronizeOutlinePage(fEditor.computeHighlightRangeSourceReference(), false);
     
    544544    }
    545545
    546     private IPropertyChangeListener fPropertyChangeListener;   
     546    private IPropertyChangeListener fPropertyChangeListener;
    547547
    548548    public ModelicaContentOutlinePage(String contextMenuID, ModelicaEditor editor) {
     
    557557            }
    558558        };
    559         fCorePreferenceStore.addPropertyChangeListener(fPropertyChangeListener);       
     559        fCorePreferenceStore.addPropertyChangeListener(fPropertyChangeListener);
    560560    }
    561561
     
    899899                }
    900900            }
    901         } 
     901        }
    902902        catch (Exception e) {
    903903            e.printStackTrace();
     
    958958        try {
    959959            EditorUtility.openInEditor ((IModelicaElement)selection.getFirstElement());
    960         } 
     960        }
    961961        catch (CompilerException e) {
    962962            ErrorManager.showCompilerError(e);
Note: See TracChangeset for help on using the changeset viewer.