1 19 package org.openide.filesystems; 20 21 import java.util.EventObject ; 22 23 24 27 public class RepositoryReorderedEvent extends EventObject { 28 static final long serialVersionUID = -5473107156345392581L; 29 30 31 private int[] perm; 32 33 37 public RepositoryReorderedEvent(Repository fsp, int[] perm) { 38 super(fsp); 39 this.perm = perm; 40 } 41 42 45 public Repository getRepository() { 46 return (Repository) getSource(); 47 } 48 49 52 public int[] getPermutation() { 53 int[] nperm = new int[perm.length]; 54 System.arraycopy(perm, 0, nperm, 0, perm.length); 55 56 return nperm; 57 } 58 } 59 | Popular Tags |