Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IExtensionPoint


  public IFileAssistProcessor[] getFileAssistProcessors(){
    try {
//      if(fileAssists==null){
        ArrayList list = new ArrayList();
        IExtensionRegistry registry = Platform.getExtensionRegistry();
        IExtensionPoint point = registry.getExtensionPoint(getPluginId() + ".fileAssistProcessor");
        IExtension[] extensions = point.getExtensions();
        for(int i=0;i<extensions.length;i++){
          IConfigurationElement[] elements = extensions[i].getConfigurationElements();
          for (int j = 0; j < elements.length; j++) {
            IFileAssistProcessor assist = (IFileAssistProcessor) elements[j].createExecutableExtension("class");
            list.add(assist);
View Full Code Here


  public ICustomTagConverterContributer getCustomTagContributer(String uri){
    try {
      if(converterContributers==null){
        converterContributers = new HashMap();
        IExtensionRegistry registry = Platform.getExtensionRegistry();
        IExtensionPoint point = registry.getExtensionPoint(getPluginId() + ".customTagConverter");
        IExtension[] extensions = point.getExtensions();
        for(int i=0;i<extensions.length;i++){
          IConfigurationElement[] elements = extensions[i].getConfigurationElements();
          for (int j = 0; j < elements.length; j++) {
            if ("contributer".equals(elements[j].getName())) {
              String contributerUri = elements[j].getAttribute("uri");
View Full Code Here

  public ICustomTagAttributeAssist[] getCustomTagAttributeAssists(){
    try {
      if(customTagAttrAssists==null){
        customTagAttrAssists = new ArrayList();
        IExtensionRegistry registry = Platform.getExtensionRegistry();
        IExtensionPoint point = registry.getExtensionPoint(getPluginId() + ".customTagAttributeAssist");
        IExtension[] extensions = point.getExtensions();
        for(int i=0;i<extensions.length;i++){
          IConfigurationElement[] elements = extensions[i].getConfigurationElements();
          for (int j = 0; j < elements.length; j++) {
            if ("customTagAttributeAssist".equals(elements[j].getName())) {
              ICustomTagAttributeAssist loader = (ICustomTagAttributeAssist) elements[j].createExecutableExtension("class");
View Full Code Here

  public IHyperlinkProvider[] getHyperlinkProviders(){
    try {
      if(hyperlinkProviders==null){
        hyperlinkProviders = new ArrayList();
        IExtensionRegistry registry = Platform.getExtensionRegistry();
        IExtensionPoint point = registry.getExtensionPoint(getPluginId() + ".hyperlinkProvider");
        IExtension[] extensions = point.getExtensions();
        for(int i=0;i<extensions.length;i++){
          IConfigurationElement[] elements = extensions[i].getConfigurationElements();
          for (int j = 0; j < elements.length; j++) {
            if ("provider".equals(elements[j].getName())) {
              IHyperlinkProvider provider = (IHyperlinkProvider) elements[j].createExecutableExtension("class");
View Full Code Here

   */
  private void loadPalleteContributer(){
    try {
      palette = new HashMap();
      IExtensionRegistry registry = Platform.getExtensionRegistry();
      IExtensionPoint point = registry.getExtensionPoint(getPluginId() + ".paletteItem");
      IExtension[] extensions = point.getExtensions();
      for(int i=0;i<extensions.length;i++){
        IConfigurationElement[] elements = extensions[i].getConfigurationElements();
        for (int j = 0; j < elements.length; j++) {
          if ("contributer".equals(elements[j].getName())) {
            String group = elements[j].getAttribute("name");
View Full Code Here

  }
  public static List<MasterServerExtensionProxy> getMasterServerExtensions() {
    if(masterServerExtensions != null) return masterServerExtensions;
    masterServerExtensions = new ArrayList<MasterServerExtensionProxy>();
    IExtensionRegistry registry = Platform.getExtensionRegistry();
    IExtensionPoint extensionPoint = registry.getExtensionPoint(EXTENSION_POINT);
    for(IConfigurationElement element : extensionPoint.getConfigurationElements()) {
      masterServerExtensions.add(new MasterServerExtensionProxy(element));
    }
    return masterServerExtensions;
  }
View Full Code Here

  }

  protected static synchronized List<IMenuExtension> getMenuExtensions() throws CoreException {
    if(menuExtensions != null) return menuExtensions;
    IExtensionRegistry registry = Platform.getExtensionRegistry();
    IExtensionPoint extensionPoint = registry.getExtensionPoint(EXTENSION_POINT);
   
    menuExtensions = new ArrayList<IMenuExtension>();
    for(IConfigurationElement element : extensionPoint.getConfigurationElements()) {
      IMenuExtension ex = (IMenuExtension)element.createExecutableExtension(CLASS_ATTRIBUTE);
      menuExtensions.add(ex);
    }
   
    return menuExtensions;
View Full Code Here

  public static List<GameExtensionProxy> getGameExtensions() {
    if(gameExtensions != null) return gameExtensions;
    List<GameExtensionProxy> games = new ArrayList<GameExtensionProxy>();
    IExtensionRegistry registry = Platform.getExtensionRegistry();
    IExtensionPoint extensionPoint = registry.getExtensionPoint(EXTENSION_POINT);
    for(IConfigurationElement element : extensionPoint.getConfigurationElements()) {
      //IExtension extension = element.getDeclaringExtension();
      games.add(new GameExtensionProxy(element));
    }
    Collections.sort(games);
    return gameExtensions = games;
View Full Code Here

  public static List<ChatWindowExtensionProxy> getChatWindowExtensions() {
    if(chatWindowExtensions != null) return chatWindowExtensions;
    chatWindowExtensions = new ArrayList<ChatWindowExtensionProxy>();
    chatWindowExtensionsByType = new HashMap<String,List<ChatWindowExtensionProxy>>();
    IExtensionRegistry registry = Platform.getExtensionRegistry();
    IExtensionPoint extensionPoint = registry.getExtensionPoint(EXTENSION_POINT);
    for(IConfigurationElement element : extensionPoint.getConfigurationElements()) {
      ChatWindowExtensionProxy proxy = new ChatWindowExtensionProxy(element);
      chatWindowExtensions.add(proxy);
      List<ChatWindowExtensionProxy> typeList = chatWindowExtensionsByType.get(proxy.type);
      if(typeList == null)
        chatWindowExtensionsByType.put(proxy.type,typeList = new ArrayList<ChatWindowExtensionProxy>());
View Full Code Here

  private static List<ContactListExtension> contactLists = null;
 
  public static List<ContactListExtension> getContactListExtensions() {
    if(contactLists != null) return contactLists;
    IExtensionRegistry registry = Platform.getExtensionRegistry();
    IExtensionPoint extensionPoint = registry.getExtensionPoint(EXTENSION_POINT);
    contactLists = new ArrayList<ContactListExtension>();
    for(IConfigurationElement element : extensionPoint.getConfigurationElements()) {
      contactLists.add(new ContactListExtension(element));
    }
    return contactLists;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.IExtensionPoint

Copyright © 2018 www.massapicom. 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.