TEIIDDES-1981 MongoDB issues in Designer
Merge pull request #349 from mdrillin/TEIIDDES-1981

TEIIDDES-1981 MongoDB issues in Designer
TEIIDES-2094: Introduce viewing, saving and loading of teiid imported meds

* TeiidInstanceMedListener
 * When acquiring a med from teiid instance, mark it as imported

* ModelExtensionRegistryView
 * Ensures only 1 registry listener is added to med registry and that it
   is removed upon disposal of view
 * Displays an 'Imported' column to show which meds have been imported
 * Workaround an eclipse bug when checkbox images are not centred in swt
   table cells
 * When viewing a med:
  * copy a built-in med to the built-in project as before
  * create a link to an imported med once its saved to its actual location
    in the runtime plugin metadata directory
 * When receiving changes from the registry ensures that refreshes to the
   view are made on the UI thread

* ExtensionPlugin
 * Load and save both the user-defined and imported med definitions located
   in the runtime plugin metadata directory

* ExtensionDefinitionsManager
 * Renames UserExtensionDefinitionsManager as it now covers the imported
   definitions as well
Merge pull request #353 from phantomjinx/TEIIDDES-2094

TEIIDES-2094: Introduce viewing, saving and loading of teiid imported me...
TEIIDDES-2156: Eliminate use of CoreModelerPlugin.toRuntimeException

* The function CoreModelerPlugin.toRuntimeException, by throwing a runtime
  exception, has the potential to drastically upset Eclipse's normal
  operations, eg. stopping build dead.

* Removes uses of toRuntimeException and replace with appropriately handled
  normal exceptions either properly thrown or caught and conveyed to the
  display (logged or shown in a dialog).
teiiddes-2158: Refactored REST procedure validation and added check to the auto-generation REST WAR checkbox on the VDB editor. Will prompt user to add REST procedure if they select the checkbox without a valid REST procedure included in the VDB and set the checkbox to false.

Also changed the checkbox label from Generate REST WAR to Auto-generate REST WAR.
Merge pull request #355 from tejones/teiiddes-2158

teiiddes-2158
salesforce.lib project requires initialising ant-contrib

* Use of removeWhitespace function requires initialising ant-contrib lib
  in classpath
teiiddes-2164: Corrected field validation logic. Also added check for null or empty string when validating the security type. This is equivalent to "None".
Merge pull request #356 from tejones/teiiddes-2164

teiiddes-2164
teiiddes-2162: http://www.restfulwebservices.net/wcf/StockQuoteService.svc?wsdl was getting an NPE due to the schema imports not having a namespace prefix. Since prefix is an optional attribute for import, I added a check for null.

http://ws.cdyne.com/delayedstockquote/delayedstockquote.asmx?WSDL was failing to parse because we were expecting a "type" attribute on the element. "Type" is an optional attribute on element, so I have relaxed the requirement in the code.
Merge pull request #357 from tejones/teiiddes-2162

teiiddes-2162
Fixes odd compile messages for salesforce lib plugin

* Classpath metadata still includes a reference to src folder yet plugin
  does not contain nor requires such a folder since it has jar libs only

* Removes src folder reference

* Removes redundant bin reference in build.properties
TEIIDDES-2168
* Added validation to detect missing vdbBuilder command in .project
* Added quick fix/resolution to add the entry to the .project
TEIIDDES-2169 added isDisposed() check before updating ui
TEIIDDES-2120: Addresses shortcomings of adding imported xsd files

* Closes loopholes with addition of xsd files to a Vdb in the VdbEditor

* VdbUtil
 * canAddModelToVdb checks for duplicate models already in Vdb. However,
   the model resource references includes Xsd files which although are
   resources are included in the 'Other Files' section and a model can
   have the same name as an Xsd file.

* Vdb
 * Avoids further loopholes by making a single addEntry method which both
   model and file entries are added through. Consequently, only one
   function path to determine how the given resource should be added.

* NewVdbWizard
 * Stop Xsd files from being displayed in the Add Models chooser dialog
TEIIDDES-2120: Fixes failing unit tests

* VdbEntry
 * Should be abstract since only ModelEntry and FileEntry are applicable
   to Vdbs

* VdbFileEntry
 * Fixes possibility of the entry name being null in circumstances where
   the FileEntryType could be null. Only cropped up in unit tests

* VdbEntryTest -> VdbFileEntryTest
 * Crazy to be testing the abstract VdbEntry being added to a Vdb when no
   such entries are ever added.
 * Use of VdbFileEntries has meant slight differences in how the tests
   are implemented.