/** * 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. * * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. */ package org.sintef.thingml.resource.thingml.mopp; public class ThingmlDynamicTokenStyler { /** * This method is called to dynamically style tokens. * * @param resource the TextResource that contains the token * @param token the token to obtain a style for * @param staticStyle the token style as set in the editor preferences (is * <code>null</code> if syntax highlighting for the token is disabled) */ public org.sintef.thingml.resource.thingml.IThingmlTokenStyle getDynamicTokenStyle(org.sintef.thingml.resource.thingml.IThingmlTextResource resource, org.sintef.thingml.resource.thingml.IThingmlTextToken token, org.sintef.thingml.resource.thingml.IThingmlTokenStyle staticStyle) { // The default implementation returns the static style without any changes. To // implement dynamic token styling, set the overrideDynamicTokenStyler option to // <code>false</code> and customize this method. return staticStyle; } }