Ignore:
Timestamp:
07/12/12 09:01:31 (12 years ago)
Author:
jgoppert
Message:

Added ability to include modelica libraries in preferences page for auto-complete.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/org.modelica.mdt.ui/src/org/modelica/mdt/ui/preferences/ModelicaPreferencePage.java

    r970 r1577  
    7676    private Text omcIgnoreDirectoriesAndFiles;
    7777    private Text omcCommandLineParameters;
     78    private Text omcLibraries;
    7879   
    7980    private Button browseButton;
     
    177178        omcCommandLineParameters.setLayoutData(data);       
    178179       
     180        /*
     181         * OMC Libraries
     182         */
     183        /* dummy label for space */
     184        new Label(parent, SWT.NONE);
     185        group = new Group(parent, SWT.SHADOW_ETCHED_IN);
     186        group.setText("OMC libraries");     
     187        data = new GridData(GridData.FILL_HORIZONTAL);
     188        data.grabExcessHorizontalSpace = true;
     189        group.setLayoutData(data);     
     190        layout = new GridLayout();
     191        layout.numColumns = 1;
     192        group.setLayout(layout);
     193       
     194        data = new GridData(GridData.FILL_HORIZONTAL);     
     195        data.grabExcessHorizontalSpace = true;
     196        data.horizontalSpan = 1;       
     197        omcLibraries = new Text(group, SWT.SINGLE | SWT.BORDER | SWT.LEFT);
     198        omcLibraries.setText(PreferenceManager.getOMCLibraries());     
     199        data = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL);
     200        omcLibraries.setLayoutData(data);   
    179201       
    180202        /*
     
    317339        omcIgnoreDirectoriesAndFiles.setText(store.getDefaultString(PreferenceManager.OMC_IGNORED_DIRECTORIES_AND_FILES));
    318340        omcCommandLineParameters.setText(store.getDefaultString(PreferenceManager.OMC_COMMAND_LINE_PARAMETERS));
     341        omcLibraries.setText(store.getDefaultString(PreferenceManager.OMC_LIBRARIES));
    319342    }
    320343
     
    339362        store.setValue(PreferenceManager.OMC_COMMAND_LINE_PARAMETERS,
    340363                omcCommandLineParameters.getText());
     364        store.setValue(PreferenceManager.OMC_LIBRARIES,
     365                omcLibraries.getText());
    341366        return true;
    342367    }
Note: See TracChangeset for help on using the changeset viewer.