示例#1
0
            static void DisposeTMModel(TMModel tmModel)
            {
                if (tmModel == null)
                {
                    return;
                }

                tmModel.Dispose();
            }
示例#2
0
            static void DisposeTMModel(TMModel tmModel, TextMateColoringTransformer transformer)
            {
                if (tmModel == null)
                {
                    return;
                }

                if (transformer != null)
                {
                    tmModel.RemoveModelTokensChangedListener(transformer);
                }

                tmModel.Dispose();
            }