Package com.onpositive.mapper.handlers

Source Code of com.onpositive.mapper.handlers.HighlightLayerActionHandler

package com.onpositive.mapper.handlers;

import org.eclipse.core.commands.Command;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.State;

import com.onpositive.mapper.editors.MapEditor;

public class HighlightLayerActionHandler extends MapEditorActionHandler {

  @Override
  public void executeForEditor(ExecutionEvent event, MapEditor activeEditor) {
    Command command = event.getCommand();
    State state = command.getState("STYLE");
    state.setValue(!(Boolean) state.getValue());
    activeEditor.setHighlightCurrentLayer((Boolean) state.getValue());
  }

}
TOP

Related Classes of com.onpositive.mapper.handlers.HighlightLayerActionHandler

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.