Re-mapping key switches in Kontakt 3

Hi
does anyone know how to change where the keys switches are mapped to??
as an example, i have a violin with key-switches loaded. in the mapping area i can move all the groups to meet the key-switches down in the C0 range but i want to re- assign the key switches up to meet the range of the violin.
if i move the violin out of range it does my head in when i look at it in the score editor for editing.... violin in bass clef!!
thanks

Have a look at the pic below, hope it will solve your problem.
!http://img264.imageshack.us/img264/2057/keyswkontakt.gif!
!http://img59.imageshack.us/img59/4967/aglogo45.gif! [www.audiogrocery.com|http://www.audiogrocery.com]

Similar Messages

  • Two problems: hiding key-switch notes and messages to effect-plugins

    Hello,
    first please apologize my bad (school-) English, which I haven‘t much practiced sind I left school more than 30 yeras ago.
    I have got two problems, and I should be grateful, if somebody could give me a hint.
    1. I am using sample libraries, which I load in a sampler (Kontakt 2 of Native Instruments) in the instrument slot of Logic. These libraries work with key switches to choose between various articulations of an instrument. Unfortunately these key switching notes appear in the outprints (although the note, good so, does not sound – and isn‘t intended to sound).
    Do you know a possibility to set a key switch and let the note hide in the outprint?
    (I have also sent a fearture request to apple: creating an additional note line to an instrument, reserved for key switching commands.)
    2. I am using Guitar Rig 2 as an effect-plugin in Logic. Guitar Rig is (regarding my puspose) organised in banks which contain various presets (settings of amplifiers, boxes, micros, effects and so on).
    Is there in Logic a possibilities to send to effect-plugins commands which choose firstly a bank and secondly a preset in a bank of an effect-plugin in effect-slot?
    Thank you for your answer in advance.
    Yours sincerely Norbert
    iMac Intel, 2GHz   Mac OS X (10.4.8)  

    One method:
    Let's say you have a flute sound from Kontakt 2...
    1. Create a duplicate track for the Kontakt flute instrument in the Arrange window, just below the original track
    2. Open your flute region in score or matrix, select the keyswitch notes and CUT them. Then exit the editor
    3. Click on the duplicate track in the Arrange window and then use "paste at original position", (not regular CMD-V paste). Now your keyswitch notes are placed on the duplicate track in the exact location they were originally recorded at.
    (Note: if this doesn't seem to paste anything (sometimes it happens), hit Undo. Then use the pencil tool to draw a blank region on your duplicate track. With that new region selected, use "paste at original position again" and it will work.)
    4. With the new region selected, choose Options > Extended Parameters... a floating window will appear. Look for "Score:" at the bottom of the window. Click to the right of "Score:" so that it now says "Score: Off" for that region. This function works per region. Your keyswitches will still play but they won't be shown in the score. You can even hide this track if you want.
    5. Repeat this process for all of your tracks with keyswitch notes in them.

  • Cannot properly edit Map Keys

    In RoboHelp 7 for HTML (but also v6), weI have problems with
    editing map keys for context-sensitive help.
    When we were using RoboHelp 6 for Word, editing map keys was
    easy.
    When we switched to RoboHelp for HTML (first v6 then v7), we
    could never figure out how to do this. We fully understand how map
    keys work, and we are computer-savvy. However, perhaps we are
    experiencing some kind of bug.
    For example, if we generate a new topic, we disabled
    automatic map key generation. Instead, we want to add our own map
    key number to this new topic. We select Topic Properties >
    Advanced > Edit Map Key to get to the map key editor. No matter
    what we try, we cannot add a new map key to the new topic.
    Similarly, changing the number of a map key is not possible.
    Basically, the task buttons at the bottom of the Edit Map Key
    screen are always disabled.
    We are currently editing the map key files directly, but that
    is not a solution of course.
    We read the Help documentation very carefully, but we simply
    cannot use these disabled task buttons, so that we are
    stuck.

    It is really a terrible dialog, but this is what works for
    us:
    1. Make sure you have the <Project Map File> selected
    in the drop-down list.
    2. In the right-hand list, click on the Topic you want to
    assign an ID to.
    3. Under the Map IDs list there is a "Hide used IDs"
    checkbox, and then three buttons. The first button's icon does not
    make ANY sense to me whatsoever, but it means "add map ID."
    4. Click that cryptic-looking button. The Create/Edit Map ID
    dialog opens.
    5. Enter a name for the Topic ID (can be anything, just don't
    use any spaces) and the Map Number you want to assign, and click
    OK. The ID is assigned to the topic you selected earlier.
    To edit the assigned Map ID number or name, double-click on
    an ID in the Map IDs list. I don't know if you can actually change
    the assignment of one of these IDs -- the "Unassign" button always
    appears grayed out for me -- but you can delete a selected Map ID
    by selecting it and clicking the "X" button.
    Hope this helps!

  • How to map keys(Key board) in forms6i

    Hi all,
    Would like to check ,is there anyway like with previous version of forms4.5,we can map our keys(keyboard keys vt220 e.g commit=F10,execute_query=F8 and so on).
    We were using forms4.5(character mode) with Unix platform but now we decided to go for web but at the same time we still want to keep same mapping keys..
    Thanks..
    regds
    Lasily Thomas

    tou can user oracle terminal...

  • Cannot send a null Map key for type 'java.util.HashMap'

    Hi All,
      I am haing an issue with sending data from Server to the client using the AMF Channel.
      Most of the method invocations on the RemoteObject are throwing the following Exception.
    [CODE]
    (mx.rpc.events::FaultEvent)#0
      bubbles = false
      cancelable = true
      currentTarget = (null)
      eventPhase = 2
      fault = (mx.rpc::Fault)#1
        content = (null)
        errorID = 0
        faultCode = "Server.Processing"
        faultDetail = (null)
        faultString = "Cannot send a null Map key for type 'java.util.HashMap'."
        message = "faultCode:Server.Processing faultString:'Cannot send a null Map key for type 'java.util.HashMap'.' faultDetail:'null'"
        name = "Error"
        rootCause = (null)
      headers = (null)
      message = (mx.messaging.messages::ErrorMessage)#2
        body = (null)
        clientId = "22E55FB1-910E-312F-E37A-ED5167139CB0"
        correlationId = "4DB54224-662A-C596-D165-F7C3EBB64DB8"
        destination = "TimeMap"
        extendedData = (null)
        faultCode = "Server.Processing"
        faultDetail = (null)
        faultString = "Cannot send a null Map key for type 'java.util.HashMap'."
        headers = (Object)#3
        messageId = "22E56255-D62F-2ACF-4DA5-CF1E4D6353BB"
        rootCause = (null)
        timestamp = 1266877198902
        timeToLive = 0
      messageId = "22E56255-D62F-2ACF-4DA5-CF1E4D6353BB"
      statusCode = 0
      target = (null)
      token = (mx.rpc::AsyncToken)#4
        message = (mx.messaging.messages::RemotingMessage)#5
          body = (Array)#6
          clientId = (null)
          destination = "TimeMap"
          headers = (Object)#7
            DSEndpoint = "my-amf"
            DSId = "22E53936-7E0E-B21C-C936-EF1078000306"
          messageId = "4DB54224-662A-C596-D165-F7C3EBB64DB8"
          operation = "getMapKey"
          source = (null)
          timestamp = 0
          timeToLive = 0
        responders = (Array)#8
          [0] (com.universalmind.cairngorm.events::Callbacks)#9
            conflictHandler = (null)
            faultHandler = (function)
            priority = 0
            resultHandler = (function)
        result = (null)
      type = "fault"
    [CODE]
    The Spring bean which is exposed as a Remote Object has the following method signature..
    [CODE]
    public String getMapKey() {
            return mapKey;
    [/CODE]
    I am unable to understand why AMF Channel or Blaze DS is treating the String as HashMap !!!
    This was working pefectly fine till yesterday !!
    The version of the BlazeDS i am using is : blazeds_turnkey_3-0-0-544
    and the Flex SDK Version is : flex_sdk_3.5.0.12683
    We recently upgraded to Flex 3.5.0 version earlier we were using 3.3 version
    Thanks
    mars

    Hi All,
    I chcked my server side java beans ( which are managed by Spring) and they are all returning the data property and none of the Keys in the returned hashmaps are null.
    Not sure why this is happening.
    Thanks
    kumars

  • Problem using different Map key types in one class

    I'm running Kodo 2.3.3. It seems I can only have one Map key types for all
    maps in a class. For example, if I have two maps in a class, their keys
    must be of the same type.
    Is there a plan to remove this limitation soon?
    Thanks,

    Abe White wrote:
    Kodo should generate a separate table for each Map. We have internal tests
    that use classes with Map fields using a lot of different key/value type
    combinations, so there shouldn\'t be a problem.It looks like two maps (keyValues and versions) are sharing the same
    table. Here is the table generated by schematool (db: Oracle 8.1.7):
    desc persistentmotiveresourcebean_x;
    Name Null? Type
    ID_JDOIDX VARCHAR2(255)
    JDOKEYX NUMBER
    KEYVALUESX VARCHAR2(255)
    VERSIONSX VARCHAR2(255)
    ==========================================================================
    Following is the simplified code I run:
    -----------internal.jdo--------------------------------------
    <?xml version=\"1.0\"?>
    <jdo>
    <package
    name=\"com.motive.services.resourceManagementService.internal\">
    <class name=\"PersistentMotiveResourceBean\"
    identity-type=\"application\"
    objectid-class=\"com.motive.model.PrimaryKey\">
    <field name=\"id\" primary-key=\"true\"/>
    <field name=\"versions\">
    <map key-type=\"java.lang.Float\"
    embedded-key=\"true\" value-type=\"java.lang.String\"
    embedded-value=\"true\"/>
    </field>
    <field name=\"keyValues\">
    <map key-type=\"java.lang.String\"
    embedded-key=\"true\" value-type=\"java.lang.String\"
    embedded-value=\"true\"/>
    </field>
    </class>
    </package>
    </jdo>
    Java source:
    -----------PersistentMotiveResourceBean.java---------
    package com.motive.services.resourceManagementService.internal;
    import java.util.HashMap;
    public class PersistentMotiveResourceBean
    private String id;
    private String name;
    private HashMap versions;
    private HashMap keyValues;
    public PersistentMotiveResourceBean()
    public String getId() { return id; }
    public void setId(String id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public HashMap getVersions() { return versions; }
    public void setVersions(HashMap versions) { this.versions = versions; }
    public HashMap getKeyValues() { return keyValues; }
    public void setKeyValues(HashMap keyValues) { this.keyValues =
    keyValues; }
    ----------------PrimaryKey.java-------------------------------------
    package com.motive.model;
    import java.io.Serializable;
    public class PrimaryKey implements Serializable
    public String id;
    public PrimaryKey ()
    public PrimaryKey (String id)
    this.id = id;
    public boolean equals (Object ob)
    if (this == ob) return true;
    if (!(ob instanceof PrimaryKey)) return false;
    PrimaryKey o = (PrimaryKey) ob;
    return (this.id == o.id);
    public int hashCode ()
    return id.hashCode();
    public String toString ()
    return id;

  • Implement Maps keyed by a Persistent Class

    Hi,
    You would probably agree that JDO Maps keyed by a primitive/primitive
    wrapper are not nearly as usefull as the ones mapped by a PC.
    I wonder if it is in your plans to provide this functionality? Kodo 2.4? or
    2.5
    If I am not mistaken somebody (may be me) already entered this enhancement
    request into your bugzilla as a part of overall collection handling
    improvements but I am going to create a new request just in case and put
    some of my votes onto it :-)
    If you want me to come up with use cases to explain why I think this feature
    is very much needed I can certainly do so.
    Anyway if any other folks around here are interested in this feature please
    wote for it http://bugzilla.solarmetric.com:8080/showvotes.cgi?voteon=437

    This is on our project plan, but will not be in 2.4.
    -Patrick
    In article <apmh0t$a3r$[email protected]>, Alex Roytman wrote:
    Hi,
    You would probably agree that JDO Maps keyed by a primitive/primitive
    wrapper are not nearly as usefull as the ones mapped by a PC.
    I wonder if it is in your plans to provide this functionality? Kodo 2.4? or
    2.5
    If I am not mistaken somebody (may be me) already entered this enhancement
    request into your bugzilla as a part of overall collection handling
    improvements but I am going to create a new request just in case and put
    some of my votes onto it :-)
    If you want me to come up with use cases to explain why I think this feature
    is very much needed I can certainly do so.
    Anyway if any other folks around here are interested in this feature please
    wote for it http://bugzilla.solarmetric.com:8080/showvotes.cgi?voteon=437
    Patrick Linskey [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Netra  240 Key switch position chnage to UNKNOWN

    I cannot boot up NETRA 240 , the key switch position is change to UNKNOWN even if the rotary switch is set up to NORMAL position!
    I boot up the NETRA in using bootmode option skip_diag but after a while the system goes down and I cannot boot up after!
    SEP 21 02:31:51 spatialnetra9: 00040076: "Keyswitch position has been changed to UNKNOWN."
    SEP 21 02:50:33 spatialnetra9: 00060000: "SC Login: User admin Logged on."
    SEP 21 04:02:30 spatialnetra9: 0004000a: "SC set bootmode to skip_diag, will expire THU SEP 21 04:12:30 UTC 2006."
    SEP 21 04:02:42 spatialnetra9: 00040001: "SC Request to Power On Host."

    Unfortunately, we do not use netmgt port (it is disconnected).
    Even though, I can not use login and pass info in script (security reasons).

  • Maps keyed by persistent Class

    Hello,
    Cold you please remind me whether Maps keyed by persistent Class are
    implemented in 2.5 or planned fro 3.0
    Thanks
    Alex

    It is implemented in 3.0.
    -Patrick
    On Fri, 27 Jun 2003 23:34:29 -0400, Alex Roytman wrote:
    Hello,
    Cold you please remind me whether Maps keyed by persistent Class are
    implemented in 2.5 or planned fro 3.0
    Thanks
    Alex--
    Patrick Linskey
    SolarMetric Inc.

  • E4000 Key switch fan failure

    I have an E4000 that listed several failures in prtdiag associated with a failed PPS. The PPS in question was not working at all and I have not replaced it. Prtdiag is still listing Key switch fan failure and prom detected failure.
    Any suggestion on what might be the cause?
    Thanks
    NEW PRTDIAG:
    System Configuration: Sun Microsystems sun4u 8-slot Sun Enterprise E4500/E5500
    System clock frequency: 100 MHz
    Memory size: 8192Mb
    ========================= CPUs =========================
    Run Ecache CPU CPU
    Brd CPU Module MHz MB Impl. Mask
    0 0 0 400 8.0 US-II 10.0
    0 1 1 400 8.0 US-II 10.0
    2 4 0 400 8.0 US-II 10.0
    2 5 1 400 8.0 US-II 10.0
    4 8 0 400 8.0 US-II 10.0
    4 9 1 400 8.0 US-II 10.0
    6 12 0 400 8.0 US-II 10.0
    6 13 1 400 8.0 US-II 10.0
    ========================= Memory =========================
    Intrlv. Intrlv.
    Brd Bank MB Status Condition Speed Factor With
    0 0 1024 Active OK 60ns 8-way A
    0 1 1024 Active OK 60ns 8-way A
    2 0 1024 Active OK 60ns 8-way A
    2 1 1024 Active OK 60ns 8-way A
    4 0 1024 Active OK 60ns 8-way A
    4 1 1024 Active OK 60ns 8-way A
    6 0 1024 Active OK 60ns 8-way A
    6 1 1024 Active OK 60ns 8-way A
    ========================= IO Cards =========================
    Bus Freq
    Brd Type MHz Slot Name Model
    1 SBus 25 0 QLGC,isp/sd (block) QLGC,ISP1000
    1 SBus 25 2 QLGC,isp/sd (block) QLGC,ISP1000U
    1 SBus 25 3 SUNW,hme
    1 SBus 25 3 SUNW,fas/sd (block)
    1 SBus 25 13 SUNW,socal/sf (scsi-3) 501-3060
    3 SBus 25 0 QLGC,isp/sd (block) QLGC,ISP1000
    3 SBus 25 1 SUNW,qfe SUNW,sbus-qfe
    3 SBus 25 1 SUNW,qfe SUNW,sbus-qfe
    3 SBus 25 1 SUNW,qfe SUNW,sbus-qfe
    3 SBus 25 1 SUNW,qfe SUNW,sbus-qfe
    3 SBus 25 2 QLGC,isp/sd (block) QLGC,ISP1000U
    3 SBus 25 3 SUNW,hme
    3 SBus 25 3 SUNW,fas/sd (block)
    3 SBus 25 13 SUNW,socal/sf (scsi-3) 501-3060
    5 SBus 25 0 QLGC,isp/sd (block) QLGC,ISP1000U
    5 SBus 25 3 SUNW,hme
    5 SBus 25 3 SUNW,fas/sd (block)
    5 SBus 25 13 SUNW,socal/sf (scsi-3) 501-3060
    No failures found in System
    ===========================
    Detected System Faults
    ======================
    Key Switch Fan failure
         Detected Wed Oct 12 16:25:13 2005
    PROM detected failure
         Detected Wed Oct 12 16:25:13 2005
    This is the original prtdiag:
    System Configuration: Sun Microsystems sun4u 8-slot Sun Enterprise E4500/E5500
    System clock frequency: 100 MHz
    Memory size: 8192Mb
    ========================= CPUs =========================
    Run Ecache CPU CPU
    Brd CPU Module MHz MB Impl. Mask
    0 0 0 400 8.0 US-II 10.0
    0 1 1 400 8.0 US-II 10.0
    2 4 0 400 8.0 US-II 10.0
    2 5 1 400 8.0 US-II 10.0
    4 8 0 400 8.0 US-II 10.0
    4 9 1 400 8.0 US-II 10.0
    6 12 0 400 8.0 US-II 10.0
    6 13 1 400 8.0 US-II 10.0
    ========================= Memory =========================
    Intrlv. Intrlv.
    Brd Bank MB Status Condition Speed Factor With
    0 0 1024 Active OK 60ns 8-way A
    0 1 1024 Active OK 60ns 8-way A
    2 0 1024 Active OK 60ns 8-way A
    2 1 1024 Active OK 60ns 8-way A
    4 0 1024 Active OK 60ns 8-way A
    4 1 1024 Active OK 60ns 8-way A
    6 0 1024 Active OK 60ns 8-way A
    6 1 1024 Active OK 60ns 8-way A
    ========================= IO Cards =========================
    Bus Freq
    Brd Type MHz Slot Name Model
    1 SBus 25 0 QLGC,isp/sd (block) QLGC,ISP1000
    1 SBus 25 2 QLGC,isp/sd (block) QLGC,ISP1000U
    1 SBus 25 3 SUNW,hme
    1 SBus 25 3 SUNW,fas/sd (block)
    1 SBus 25 13 SUNW,socal/sf (scsi-3) 501-3060
    3 SBus 25 0 QLGC,isp/sd (block) QLGC,ISP1000
    3 SBus 25 1 SUNW,qfe SUNW,sbus-qfe
    3 SBus 25 1 SUNW,qfe SUNW,sbus-qfe
    3 SBus 25 1 SUNW,qfe SUNW,sbus-qfe
    3 SBus 25 1 SUNW,qfe SUNW,sbus-qfe
    3 SBus 25 2 QLGC,isp/sd (block) QLGC,ISP1000U
    3 SBus 25 3 SUNW,hme
    3 SBus 25 3 SUNW,fas/sd (block)
    3 SBus 25 13 SUNW,socal/sf (scsi-3) 501-3060
    5 SBus 25 0 QLGC,isp/sd (block) QLGC,ISP1000U
    5 SBus 25 3 SUNW,hme
    5 SBus 25 3 SUNW,fas/sd (block)
    5 SBus 25 13 SUNW,socal/sf (scsi-3) 501-3060
    No failures found in System
    ===========================
    Detected System Faults
    ======================
    AC Box Fan failure
    Detected Fri Sep 30 07:56:37 2005
    System 5.0 Volt Precharge failure
    Detected Sat Aug 27 23:10:31 2005
    System 3.3 Volt Precharge failure
    Detected Sat Aug 27 23:10:31 2005
    Peripheral 12 Volt Precharge failure
    Detected Sat Aug 27 23:10:31 2005
    Peripheral 12 Volt Power failure
    Detected Sat Aug 27 23:10:30 2005
    Auxiliary 5.0 Volt Power failure
    Detected Sat Aug 27 23:10:30 2005
    AC Power failure
    Detected Sat Aug 27 23:10:29 2005
    Key Switch Fan failure
    Detected Thu Aug 25 18:47:11 2005
    PROM detected failure
    Detected Thu Aug 25 18:47:11 2005

    I don't know which fan I need replace and  which fan is the FAN two, who can help me?
    2970 fans are NOISY.  So power it up and look for the one that's not spinning or is the most quiet one.

  • Mapping keys on Microsoft Keyboard

    I have a Microsoft keyboard plugged into my MacBook Pro. Functionally it works fine. But since the keys are mapped in a different way, I constantly screw up the key presses when it's plugged in on my desk, or same thing when I don't have it plugged in and I'm on the road.
    I've used DoubleCommand to remap keys before, but it remaps any all all keyboards, and doesn't differentiate between the MBP keyboard and an external keyboards.
    Is there a tool or a method that I can not do anything to the MBP, but remap an external Microsoft keyboard?
    Thanks!

    Anyone? I'm dying over here!

  • Mapping key to function not overriding original key

    I have mapped the "Key Pad Minus" to our exit (in-line with PF4 from the vt220 terminals). This works OK except it is also puts a minus sign into the field, so on exit I often get "Close This form?" because the form now has a minus sign in a field.
    I am using 9i (fmrweb.res) with:
    109 : 0 : "Key Pad Minus" : 32 : "Exit"
    Any ideas on how I can supress the minus?
    Tim.

    I never managed to get this to work. My soloution was not to support PF4 (key-pad Minus) in our web-based deployment. We will educate our users to use escape for "key-exit".
    (now using forms 10g)
    Cheers,
    Tim.

  • Mapping keys to function

    I'm at a bit of a quandary.  I have done this several times and something always happens.  After I open Access IBM and Configure, I map my right alt key to function as the windows key.  It works for a while and then suddenly I lose that functionality and have to reset it. 
    Does anyone know what is happening?  I am running XP on my Thinkpad T42.
    TJO

    Further to this, just for fun I took an older clear keyboard that I have and hooked it up and the tex-edit scripts work just fine. I guess I'll just tell my friend to keep using his old keyboard for now. Obviously, the custom F-Keys that apple has prewired to the thin aluminum keyboard are interfering. Do you know of a way to have Tex-edit "take over" these F keys when it is the frontmost application?
    Thanks,
    Larry

  • How do I ensure a Map key maps to the correct data type?

    Hi,
    I have a simple event processing interface, where an Action class processes an event, and optionally generates a response event. I want to store a map of all registered actions, and then select the one matching an incoming event at run time:
    // the basic types
    public abstract class Event {
      protected String type;
      protected String data;
      public String getType()  { return type; }
      @Override
      public String toString() { return data; }
    // an action processes a request event and optionally returns a response event
    public interface Action<ReqE extends Event, ResE extends Event> {
      public ResE process(ReqE request);
    // two simple events
    public class Event1 extends Event {
      public Event1(String data) { this.type = "ev1"; this.data = data; }
    public class Event2 extends Event {
      public Event2(String data) { this.type = "ev2"; this.data = data; }
    // simple test class
    public class Test {
      Map<String, Action<? extends Event, ? extends Event>> actions
        = new HashMap<String, Action<? extends Event, ? extends Event>>();
      public void run() {
        // source event
        Event1 request = new Event1("hello");
        // register an action - takes an Event1 and returns an Event2
        actions.put(request.getType(), new Action<Event1, Event2>() {
          @Override
          public Event2 process(Event1 req) {
            return new Event2(req.data);
        // run it
        Action<Event, Event> action = getAction(request.getType());
        Event response = action == null ? null : action.process(request);
        System.out.println("Response=" + String.valueOf(response));
      public Action<Event, Event> getAction(String type) {
        return (Action<Event, Event>)actions.get(type);
      public static void main(String[] args) {
        new Test().run();
    }This all works, but the problem is obviously the cast in the getAction() method. I can see what the problem is: there is nothing to stop me registering a handler with the wrong event types:
      // register an action - this will fail at runtime as request is an Event1
      actions.put(request.getType(), new Action<Event3, Event4>() {
        @Override
        public Event4 process(Event3 req) {
          return new Event4(req.data);
      });So that leads to the map declaration. What I think I need to do is change the key of the map from String to... well, I'm not sure what! Some kind of parameterised EventType class that ties in to the event types of the parameterised Action class, so when I call:
      Map<????, Action<? extends Event, ? extends Event>> actions = ...
      actions.put(????, new Action<Event1, Event2>() {...});the key type ties in to Event1/Event2 so that it ensures the eventual call to "process" will receive the correct types. But this is really getting beyond my knowledge of generics!
    So if anybody has any useful pointers on where to go from here I'd be realy grateful.
    Cheers,
    Barney

    The obvious choice for the key would be the type of the request event instead of a plain String.
    Thus, declare the map like this:
    Map<Class<? extends Event>, Action<?,?>>Below, I've modified your code so that it is typesafe, provided you use the public methods "registerAction" and "getAction".
    import java.util.HashMap;
    import java.util.Map;
    abstract class Event {
           protected String type;
           protected String data;
           public String getType()  { return type; }
           @Override
           public String toString() { return data; }
         // an action processes a request event and optionally returns a response event
          interface Action<ReqE extends Event, ResE extends Event> {
           public ResE process(ReqE request);
         // two simple events
          class Event1 extends Event {
           public Event1(String data) { this.type = "ev1"; this.data = data; }
          class Event2 extends Event {
           public Event2(String data) { this.type = "ev2"; this.data = data; }
         // simple test class
         public class EventTest {
           Map<Class<? extends Event>, Action<?,?>> actions
             = new HashMap<Class<? extends Event>, Action<?,?>>();
           public void run() {
             // source event
             Event1 request = new Event1("hello");
             // register an action - takes an Event1 and returns an Event2
             registerAction(Event1.class, new Action<Event1, Event2>() {
               public Event2 process(Event1 req) {
                 return new Event2(req.data);
             // run it
             Action<? super Event1,?> action = getAction(Event1.class);
             Event response = action == null ? null : action.process(request);
             System.out.println("Response=" + String.valueOf(response));
           @SuppressWarnings("unchecked")
         public <E extends Event> Action<? super E,?> getAction(Class<E> type) {
             return (Action<? super E,?>)actions.get(type);
           public <E extends Event> void registerAction(Class<E> type, Action<? super E,?> action) {
                  actions.put(type, action);
           public static void main(String[] args) {
             new EventTest().run();
         }

  • Alt key switching documents instead of Creating Clipping Mask - New Mac Pro 2014 - Please help

    I just got a new Mac Pro, and when I use the alt/option key as a shortcut in the layers palette (to create clipping masks and duplicate layers) instead it switches to other documents that I have open.  It's only after this happened that I realized how often I use the option key in my work flow and it's frustrating. 
    Please help,
    Thanks,
    Lonno

    Just solved it.  It had to do with my secondary monitor, which is where my layers palette was.  I used this link:
    https://discussions.apple.com/thread/5476222?tstart=0
    and turned off all the mission control settings I don't use.  Apparently it was switching monitors whenever I used the alt key.
    -Lonno

Maybe you are looking for

  • Opening Balances and Closing Balance of customer

    Hi, Does SAP provide any standard customer account statement for Opening Balances and Closing Balance for specific date range have given in selection screen? The statement also contains reference number, order, and Delivery number. Note: FBL5N Transa

  • I can't save dictionary to my iPad

    Every time when I want to look up a word in iBook, there is only New Oxford American dictionary works. After downloaded other dictionaries they can also work.But if I close the iBook or power off iPad then re-open iBook, these dictionaries I have dow

  • Any help appreciated jsp...

    hi ive got a problem regarding jsp.... for starters i cant even view the jsp examples on the tomcat index page.... the servlet examples run fine and i can create my own servlets as well.. but when i try to create my own simple jsp page or run the exa

  • Main Window

    Hi, I want to print some data in internal table in Main Windon and I have 4 windows which comes as footer. now my question is if the data extend to next page , the main window on first page should be extended. Please any one can help in this regard??

  • Unable to see Header pane of OBIEE in siebel.

    Hi Experts, I am using BI Apps 7.9.6.1. While Accessing OBIEE (10.1.3.4.1) through siebel, I can only see the Answer not the dashboard or the Header Pane. But I can see the All the dashboards and Header pane through OBIEE. I have checked all the Perm