Examples of KeyConfigurationEvent


Examples of com.cburch.logisim.tools.key.KeyConfigurationEvent

      keyHandlerTried = true;
    }

    if (handler != null) {
      AttributeSet baseAttrs = getBaseAttributes();
      KeyConfigurationEvent e = new KeyConfigurationEvent(type, baseAttrs, event, this);
      KeyConfigurationResult r = handler.keyEventReceived(e);
      if (r != null) {
        Action act = ToolAttributeAction.create(r);
        canvas.getProject().doAction(act);
      }
View Full Code Here

Examples of com.cburch.logisim.tools.key.KeyConfigurationEvent

import com.cburch.logisim.tools.key.KeyConfigurationResult;

public class ToolAttributeAction extends Action {
  public static Action create(Tool tool, Attribute<?> attr, Object value) {
    AttributeSet attrs = tool.getAttributeSet();
    KeyConfigurationEvent e = new KeyConfigurationEvent(0, attrs, null, null);
    KeyConfigurationResult r = new KeyConfigurationResult(e, attr, value);
    return new ToolAttributeAction(r);
  }
View Full Code Here

Examples of com.cburch.logisim.tools.key.KeyConfigurationEvent

      ArrayList<KeyConfigurationResult> results;
      results = new ArrayList<KeyConfigurationResult>();
      for (Map.Entry<Component, KeyConfigurator> entry : handlers.entrySet()) {
        Component comp = entry.getKey();
        KeyConfigurator handler = entry.getValue();
        KeyConfigurationEvent event = new KeyConfigurationEvent(type,
            comp.getAttributeSet(), e, comp);
        KeyConfigurationResult result = handler.keyEventReceived(event);
        consume |= event.isConsumed();
        if (result != null) {
          results.add(result);
        }
      }
      if (consume) {
View Full Code Here

Examples of com.cburch.logisim.tools.key.KeyConfigurationEvent

import static com.cburch.logisim.util.LocaleString.*;

public class ToolAttributeAction extends Action {
    public static Action create(Tool tool, Attribute<?> attr, Object value) {
        AttributeSet attrs = tool.getAttributeSet();
        KeyConfigurationEvent e = new KeyConfigurationEvent(0, attrs, null, null);
        KeyConfigurationResult r = new KeyConfigurationResult(e, attr, value);
        return new ToolAttributeAction(r);
    }
View Full Code Here

Examples of com.cburch.logisim.tools.key.KeyConfigurationEvent

            keyHandlerTried = true;
        }

        if (handler != null) {
            AttributeSet baseAttrs = getBaseAttributes();
            KeyConfigurationEvent e = new KeyConfigurationEvent(type, baseAttrs, event, this);
            KeyConfigurationResult r = handler.keyEventReceived(e);
            if (r != null) {
                Action act = ToolAttributeAction.create(r);
                canvas.getProject().doAction(act);
            }
View Full Code Here

Examples of com.cburch.logisim.tools.key.KeyConfigurationEvent

            ArrayList<KeyConfigurationResult> results;
            results = new ArrayList<KeyConfigurationResult>();
            for (Map.Entry<Component, KeyConfigurator> entry : handlers.entrySet()) {
                Component comp = entry.getKey();
                KeyConfigurator handler = entry.getValue();
                KeyConfigurationEvent event = new KeyConfigurationEvent(type,
                        comp.getAttributeSet(), e, comp);
                KeyConfigurationResult result = handler.keyEventReceived(event);
                consume |= event.isConsumed();
                if (result != null) {
                    results.add(result);
                }
            }
            if (consume) {
View Full Code Here

Examples of org.eclipse.ui.commands.KeyConfigurationEvent

        schemeEvent.getScheme(), bindingManager);
    final boolean definedChanged = schemeEvent.isDefinedChanged();
    final boolean nameChanged = schemeEvent.isNameChanged();
    final boolean parentIdChanged = schemeEvent.isParentIdChanged();

    listener.keyConfigurationChanged(new KeyConfigurationEvent(
        keyConfiguration, false, definedChanged, nameChanged,
        parentIdChanged));
  }
View Full Code Here
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.