Setup watcher for newly created theme for changes
@param app
@param dbAction
@param name
559455
function setupWatcher(app, dbAction, name) {
    dbAction.get("findByName", name, function (err, theme) {
        if (!err && theme) {
            require(utils.getLibPath() + "/static/ThemesWatcher").cacheAndWatchTheme(app, theme);
        }
    });
}
18225
private void colorChooser1stBackgroundActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_colorChooser1stBackgroundActionPerformed
    if (this.colorChooser1stBackground.isLastOkPressed() && changeNotificationAllowed) {
      this.controller.changed();
    }
  }
869684
private void processWatchers(MethodSpec.Builder createdMethodBuilder) {
    createdMethodBuilder.addStatement("Proto p = __proto__");
    getMethodsWithAnnotation(component, Watch.class)
        .forEach(method -> processWatcher(createdMethodBuilder, method));
  }
435810
public static void tick (PerformanceObserver obs, String name)
    {
        // get the observer's action hashtable
        Map<String, PerformanceAction> actions = _observers.get(obs);
        if (actions == null) {
            log.warning("Attempt to tick by unknown observer " +
                        "[observer=" + obs + ", name=" + name + "].");
            return;
        }

        // get the specified action
        PerformanceAction action = actions.get(name);
        if (action == null) {
            log.warning("Attempt to tick unknown value " +
                        "[observer=" + obs + ", name=" + name + "].");
            return;
        }

        // tick the action
        action.tick();
    }
1373798
function(name, data) {

			switch(name) {
				case 'todoadded':
				case 'todoremoved':
					this.renderList();
					this.updateSelectAllCheckbox();
					break;

				case 'todostatuschange':
					this.updateSelectAllCheckbox();
					break;

				case 'statechanged':
					setFilterByUrl(data.url);
					this.renderList();
					break;
			}

		}
62729
protected void addNameToApplicationMap(String name) {
        String appName = getApplicationName();

        // If it is a base metric, the name will be null
        if (appName == null)
            return;
        ConcurrentLinkedQueue<String> list = applicationMap.get(appName);
        if (list == null) {
            ConcurrentLinkedQueue<String> newList = new ConcurrentLinkedQueue<String>();
            list = applicationMap.putIfAbsent(appName, newList);
            if (list == null)
                list = newList;
        }
        list.add(name);
    }
135087
@Action(
            semantics = SemanticsOf.IDEMPOTENT,
            command = CommandReification.ENABLED,
            hidden = Where.EVERYWHERE // otherwise will throw exception: "Only actions can be executed in the background (method _d69setName represents a PROPERTY')"
    )
    @ActionLayout(
            describedAs = "invoke from UI, will change the name in the background using a property edit, background.execute(...).setName(...)"
    )
    public SomeCommandAnnotatedObject changeNameExplicitlyInBackgroundUsingPropertyEdit(
            @ParameterLayout(named = "New name")
            final String newName) {
        backgroundService.execute(this).setName(newName);
        return this;
    }
314674
public static function setDB($name, DBAdapter $adapter)
    {
        if ($name === null) {
            $name = self::getDefaultDB();
        }
        self::$adapterMap[$name] = $adapter;
    }
576722
public static void initApplication(Application app){
		
		// Add the Jawr tag handler to the MarkupParserFactory 
		MarkupFactory factory = new MarkupFactory(){
			
			public MarkupParser newMarkupParser(final MarkupResourceStream resource)
		    {
		       MarkupParser parser = new MarkupParser(new XmlPullParser(), resource);
		       parser.add(new JawrWicketLinkTagHandler());
		       return parser;
		    }
		};
		
		app.getMarkupSettings().setMarkupFactory(factory);
		
		// Add the Jawr link resolver
		app.getPageSettings().addComponentResolver(new JawrWicketLinkResolver());
	}
362783
@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mConfigResId = getArguments().getInt(EXTRA_CONFIG);

        //setStyle(DialogFragment.STYLE_NO_TITLE, R.style.Theme_AppCompat_Light);
    }
280913
public void display(String appName ) {
		waitUntilInputSizeIsKnown();
		this.appName = appName;
		window = ShowImages.showWindow(this,appName,true);
		window.setJMenuBar(menuBar);
	}
553591
void registerQueryWatcher(@NotNull ApolloQueryWatcher queryWatcher) {
    checkNotNull(queryWatcher, "queryWatcher == null");
    OperationName operationName = queryWatcher.operation().name();
    registerCall(activeQueryWatchers, operationName, queryWatcher);
  }
547038
private void startWatcher() {

        if (m_watcher == null) {
            try {
                m_watcher = new CmsUploadTimeoutWatcher(this);
                m_watcher.start();
            } catch (Exception e) {
                LOG.info(
                    Messages.get().getBundle().key(Messages.LOG_UPLOAD_CREATE_WATCH_DOG_2, getId(), e.getMessage()));
            }
        }
    }
1144691
function addWatcher(dirPath) {
    Debug._l(dirPath);
    Watcher(dirPath, function (filePath, action) {
        switch (action) {
            case Watcher.ADD_EVENT:
            case Watcher.CHANGE_EVENT:
                Debug._l(generateIdFromFilePath(filePath));
                generateCache(filePath);
                break;

            case Watcher.DELETE_EVENT:
                removeCache(generateIdFromFilePath(filePath));
                break;

        }
    });

}
195296
@Override
	public void onVisibleChange(LayerShownEvent event) {
		if (!themeChange && getActiveViewConfig() != null && !event.isScaleChange()) {
			activateViewConfig(null);
		}
	}
1202035
public static void createSchema(DataSource dataSource, String name) {
        try (Connection connection = dataSource.getConnection();
             Statement statement = connection.createStatement()) {
            statement.executeUpdate(String.format(Constants.DDL_CREATE_SCHEMA, name));
        } catch (SQLException e) {
            throw new RuntimeException("Can not connect to database", e);
        }
    }
663407
function notifyAccess({object, name}) {

    // Create an observer for changes in properties accessed during execution of this function.
    function makeAccessedObserver() {
      return Observer(object, function(changes) {
        changes.forEach(({type, name}) => {
          var {names} = accessEntry;
          if (!names || type === 'update' && names.indexOf(name) !== -1)
            rerun();
        });
      });
    }

    // Make a new entry in the access table, containing initial property name if any
    // and observer for properties accessed on the object.
    function makeAccessEntry() {
      accesses.set(object, {
        names:    name ? [name] : null,
        observer: makeAccessedObserver()
      });
    }

    // If properties on this object are already being watched, there is already an entry
    // in the access table for it. Add a new property name to the existing entry.
    function setAccessEntry() {
      if (name && accessEntry.names) accessEntry.names.push(name);
      else accessEntry.names = null;
    }

    var accessEntry = accesses.get(object);
    if (accessEntry) setAccessEntry();
    else makeAccessEntry();
  }