Package org.aspectj.bridge

Examples of org.aspectj.bridge.Message


          // ignore for @AJ ITD as munger.getSignature() is the
          // interface method hence abstract
        } else {
          world.getMessageHandler()
              .handleMessage(
                  new Message("must implement abstract inter-type declaration: " + munger.getSignature(), "",
                      IMessage.ERROR, getSourceLocation(), null,
                      new ISourceLocation[] { getMungerLocation(munger) }));
        }
      }
    }
View Full Code Here


    if (munger.getMunger() != null && (munger.getMunger() instanceof NewMethodTypeMunger)) {
      ResolvedMember itdMember = munger.getSignature();
      ResolvedType onType = itdMember.getDeclaringType().resolve(world);
      if (onType.isInterface() && itdMember.isAbstract() && !itdMember.isPublic()) {
        world.getMessageHandler().handleMessage(
            new Message(WeaverMessages.format(WeaverMessages.ITD_ABSTRACT_MUST_BE_PUBLIC_ON_INTERFACE,
                munger.getSignature(), onType), "", Message.ERROR, getSourceLocation(), null,
                new ISourceLocation[] { getMungerLocation(munger) }));
        return true;
      }
    }
View Full Code Here

                    sb.append("on the same target type.  Please recompile at least one aspect with '-Xset:itdVersion=1'.");
                    sb.append(" Aspects involved: " + munger.getAspectType().getName() + " and "
                        + typeMunger.getAspectType().getName() + ".");
                    sb.append(" Field is named '" + existing.getSignature().getName() + "'");
                    getWorld().getMessageHandler().handleMessage(
                        new Message(sb.toString(), getSourceLocation(), true));
                    return;
                  }
                }
              }
            }
View Full Code Here

                  // this isn't quite right really... as I think the errors should only be recorded against
                  // what is currently being processed or they may get lost or reported twice

                  // report error on the aspect
                  getWorld().getMessageHandler().handleMessage(new Message(msg, typeTransformerLocation, true));

                  // report error on the affected type, if we can
                  if (existingMemberLocation != null) {
                    getWorld().getMessageHandler()
                        .handleMessage(new Message(msg, existingMemberLocation, true));
                  }
                  return true; // clash - so ignore this itd
                }
              }
            }
View Full Code Here

      version_label.setText("Version: " + Version.text);
      built_label.setText("Built: " + new Date(Version.getTime()).toString());
       }
        catch(Exception e) {
          Message msg = new Message("Could not open OptionsFrame.",IMessage.ERROR,e,null);
          Ajde.getDefault().getMessageHandler().handleMessage(msg);
        }
    }
View Full Code Here

  public void addOptionsPanel(OptionsPanel panel) {
    main_tabbedPane.add(panel, main_tabbedPane.getComponentCount()-1);
    try {
      panel.loadOptions();
    } catch (IOException e) {
          Message msg = new Message("Could not load options.",IMessage.ERROR,e,null);
          Ajde.getDefault().getMessageHandler().handleMessage(msg);
    }
  }
View Full Code Here

        if (components[i] instanceof OptionsPanel) {
          ((OptionsPanel)components[i]).saveOptions();
        }
      }
    } catch (IOException ioe) {
          Message msg = new Message("Could not load options.",IMessage.ERROR,ioe,null);
          Ajde.getDefault().getMessageHandler().handleMessage(msg);
    }
  }
View Full Code Here

            tree_ScrollPane.getViewport().add(treeManager.getStructureTree(), null);

            //Ajde.getDefault().getViewManager().getFileStructureView().addListener(VIEW_LISTENER);
        }
        catch(Exception e) {
          Message msg = new Message("Could not initialize GUI.",IMessage.ERROR,e,null);
          Ajde.getDefault().getMessageHandler().handleMessage(msg);
        }
    }
View Full Code Here

    }

    try {
      jbInit();
    } catch (Exception e) {
          Message msg = new Message("Could not initialize GUI.",IMessage.ERROR,e,null);
          Ajde.getDefault().getMessageHandler().handleMessage(msg);
    }
    initToolBar();
  }
View Full Code Here

      buttons_panel.add(granularityCombo,  BorderLayout.WEST);
            buttons_panel.add(filterCombo,  BorderLayout.CENTER);
            buttons_panel.add(relationsCombo,  BorderLayout.EAST);
        } catch(Exception e) {
          Message msg = new Message("Could not initialize GUI.",IMessage.ERROR,e,null);
          Ajde.getDefault().getMessageHandler().handleMessage(msg);
        }
  }
View Full Code Here

TOP

Related Classes of org.aspectj.bridge.Message

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.