1 11 package org.eclipse.core.runtime.spi; 12 13 import org.eclipse.core.runtime.IContributor; 14 15 35 public final class RegistryContributor implements IContributor { 36 37 40 private String actualContributorId; 41 42 45 private String actualContributorName; 46 47 52 private String hostId; 53 54 59 private String hostName; 60 61 90 public RegistryContributor(String actualId, String actualName, String hostId, String hostName) { 91 this.actualContributorId = actualId; 92 this.actualContributorName = actualName; 93 if (hostId != null) { 94 this.hostId = hostId; 95 this.hostName = hostName; 96 } else { 97 this.hostId = actualId; 98 this.hostName = actualName; 99 } 100 } 101 102 108 public String getActualId() { 109 return actualContributorId; 110 } 111 112 117 public String getActualName() { 118 return actualContributorName; 119 } 120 121 128 public String getId() { 129 return hostId; 130 } 131 132 138 public String getName() { 139 return hostName; 140 } 141 142 145 public String toString() { 146 return actualContributorName + "[" + actualContributorId + "]"; } 148 } 149 | Popular Tags |