From ce431848b39aafa6ee0502756c0c5f899f3db6e8 Mon Sep 17 00:00:00 2001 From: Pete Richards Date: Fri, 2 Mar 2018 15:52:02 -0800 Subject: [PATCH] Remove example plotOptions. (#1936) Fixes https://github.com/nasa/openmct/issues/731 --- example/plotOptions/bundle.js | 146 ---------------------------------- src/defaultRegistry.js | 1 - 2 files changed, 147 deletions(-) delete mode 100644 example/plotOptions/bundle.js diff --git a/example/plotOptions/bundle.js b/example/plotOptions/bundle.js deleted file mode 100644 index f87d400a64..0000000000 --- a/example/plotOptions/bundle.js +++ /dev/null @@ -1,146 +0,0 @@ -/***************************************************************************** - * Open MCT, Copyright (c) 2014-2017, United States Government - * as represented by the Administrator of the National Aeronautics and Space - * Administration. All rights reserved. - * - * Open MCT is licensed under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0. - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - * - * Open MCT includes source code licensed under additional open source - * licenses. See the Open Source Licenses file (LICENSES.md) included with - * this source code distribution or the Licensing information page available - * at runtime from the About dialog for additional information. - *****************************************************************************/ -/*global define*/ - -define([ - 'legacyRegistry', - '../../platform/commonUI/browse/src/InspectorRegion', - '../../platform/commonUI/regions/src/Region' -], function ( - legacyRegistry, - InspectorRegion, - Region -) { - "use strict"; - - /** - * Add a 'plot options' region part to the inspector region for the - * Telemetry Plot type only. {@link InspectorRegion} is a default region - * implementation that is added automatically to all types. In order to - * customize what appears in the inspector region, you can start from a - * blank slate by using Region, or customize the default inspector - * region by using {@link InspectorRegion}. - */ - var plotInspector = new InspectorRegion(), - /** - * Two region parts are defined here. One that appears only in browse - * mode, and one that appears only in edit mode. For not they both point - * to the same representation, but a different key could be used here to - * include a customized representation for edit mode. - */ - plotOptionsBrowseRegion = new Region({ - name: "plot-options", - title: "Plot Options", - modes: ['browse'], - content: { - key: "plot-options-browse" - } - }), - plotOptionsEditRegion = new Region({ - name: "plot-options", - title: "Plot Options", - modes: ['edit'], - content: { - key: "plot-options-browse" - } - }); - - /** - * Both parts are added, and policies of type 'region' will determine - * which is shown based on domain object state. A default policy is - * provided which will check the 'modes' attribute of the region part - * definition. - */ - plotInspector.addRegion(plotOptionsBrowseRegion); - plotInspector.addRegion(plotOptionsEditRegion); - - legacyRegistry.register("example/plotType", { - "name": "Plot Type", - "description": "Example illustrating registration of a new object type", - "extensions": { - "types": [ - { - "key": "plot", - "name": "Example Telemetry Plot", - "cssClass": "icon-telemetry-panel", - "description": "For development use. A plot for displaying telemetry.", - "priority": 10, - "delegates": [ - "telemetry" - ], - "features": "creation", - "contains": [ - { - "has": "telemetry" - } - ], - "model": { - "composition": [] - }, - "inspector": plotInspector, - "telemetry": { - "source": "generator", - "domains": [ - { - "key": "time", - "name": "Time" - }, - { - "key": "yesterday", - "name": "Yesterday" - }, - { - "key": "delta", - "name": "Delta", - "format": "example.delta" - } - ], - "ranges": [ - { - "key": "sin", - "name": "Sine" - }, - { - "key": "cos", - "name": "Cosine" - } - ] - }, - "properties": [ - { - "name": "Period", - "control": "textfield", - "cssClass": "l-input-sm l-numeric", - "key": "period", - "required": true, - "property": [ - "telemetry", - "period" - ], - "pattern": "^\\d*(\\.\\d*)?$" - } - ] - } - ] - } - }); -}); diff --git a/src/defaultRegistry.js b/src/defaultRegistry.js index d138998fa9..6bcca026e8 100644 --- a/src/defaultRegistry.js +++ b/src/defaultRegistry.js @@ -38,7 +38,6 @@ define([ '../example/msl/bundle', '../example/notifications/bundle', '../example/persistence/bundle', - '../example/plotOptions/bundle', '../example/policy/bundle', '../example/profiling/bundle', '../example/scratchpad/bundle',