1 19 20 package org.netbeans.modules.languages.features; 21 22 import java.io.Serializable ; 23 24 public class ActionCreator implements Serializable { 25 26 static final long serialVersionUID = -3408200516931076212L; 27 28 private static final int NAME_INDEX = 0; 29 private static final int PERFORMER_INDEX = 1; 30 private static final int ENABLER_INDEX = 2; 31 32 private Object [] params; 33 34 public ActionCreator() { 35 } 36 37 public ActionCreator(Object [] params) { 38 this.params = params; 39 } 40 41 public Object readResolve() { 42 return new GenericAction((String )params[NAME_INDEX], 43 (String )params[PERFORMER_INDEX], (String )params[ENABLER_INDEX]); 44 } 45 46 } 47 | Popular Tags |