Package org.aspectj.bridge

Examples of org.aspectj.bridge.Message


    } catch (InvalidInputException iie) {
      ISourceLocation location = null;
      if (buildConfig.getConfigFile() != null) {
        location = new SourceLocation(buildConfig.getConfigFile(), 0);
      }
      IMessage m = new Message(iie.getMessage(), IMessage.ERROR, null, location);
      handler.handleMessage(m);
    }
    return buildConfig;
  }
View Full Code Here


    this.currentView = currentView;
    Ajde.getDefault().getModel().addListener(MODEL_LISTENER);
    try {
      jbInit();
    } catch (Exception e) {
      Message msg = new Message("Could not initialize GUI.", IMessage.ERROR, e, null);
      Ajde.getDefault().getMessageHandler().handleMessage(msg);
    }
    updateCurrConfigLabel("<no active config>");
  }
View Full Code Here

            int posX = parentComponent.getX() + 100;//(parentComponent.getWidth()/2);
            int posY = parentComponent.getY() + 100;//(parentComponent.getHeight()/2);
            this.setLocation(posX, posY);
        }
        catch(Exception e) {
          Message msg = new Message("Could not open configuration dialog",IMessage.ERROR,e,null);
          Ajde.getDefault().getMessageHandler().handleMessage(msg);
        }
    }
View Full Code Here

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

            views_splitPane.add(slaveView, JSplitPane.BOTTOM);
            setSlaveViewVisible(false);

            nav_toolBar.remove(joinpointProbe_button);
        } catch(Exception e) {
          Message msg = new Message("Could not initialize GUI.",IMessage.ERROR,e,null);
          Ajde.getDefault().getMessageHandler().handleMessage(msg);

        }
    }
View Full Code Here

 
  private void init() {
    try {
      jbInit();
    } catch (Exception e) {
          Message msg = new Message("Could not initialize view panel.",IMessage.ERROR,e,null);
          Ajde.getDefault().getMessageHandler().handleMessage(msg);
    }
    updateView(currentView);
  }
View Full Code Here

    JTree buildConfig_tree = new JTree();

    public void openFile(String configFile) throws IOException, InvalidResourceException {
        try {
            if (configFile == null) {
              Message msg = new Message("No structure is selected for editing.",IMessage.ERROR,null,null);
              Ajde.getDefault().getMessageHandler().handleMessage(msg);
                return;
            }
//           this.configFile = configFile;
//           sourcePath = new File(new File(configFile).getParent());
            jbInit();
            jLabel1.setText(" Build configuration: " + configFile);

            model = Ajde.getDefault().getBuildConfigManager().buildModel(configFile);           
      root = buildTree(model.getRoot());

            buildConfig_tree.setModel(new DefaultTreeModel(root));
            buildConfig_tree.addMouseListener(new ConfigFileMouseAdapter(buildConfig_tree));
            buildConfig_tree.setCellRenderer(new ConfigTreeCellRenderer());

            for (int j = 0; j < buildConfig_tree.getRowCount(); j++) {
                buildConfig_tree.expandPath(buildConfig_tree.getPathForRow(j));
            }
        } catch(Exception e) {
          Message msg = new Message("Could not open file.",IMessage.ERROR,e,null);
          Ajde.getDefault().getMessageHandler().handleMessage(msg);
        }
    }
View Full Code Here

        // this is the output dir
        outputDir = buildConfig.getCompilationResultDestinationManager().getDefaultOutputLocation();
      }
      ucf = weaver.addClassFile(bsf.binSrc, bsf.fromInPathDirectory, outputDir);
    } catch (IOException ex) {
      IMessage msg = new Message("can't read class file " + bsf.binSrc.getPath(), new SourceLocation(bsf.binSrc, 0), false);
      buildManager.handler.handleMessage(msg);
    }
    return ucf;
  }
View Full Code Here

                        public void run() {
                            editorAdapter.showSourceLine(lineNumber, true);
                        }
                    });
                    } catch (Exception e) {
                      Message msg = new Message("Could not seek to line.",IMessage.ERROR,e,null);
                      Ajde.getDefault().getMessageHandler().handleMessage(msg);
                    }
                    finished = true;
                    break;
                }
View Full Code Here

      update.run();
    } else {
      try {
        SwingUtilities.invokeAndWait(update);
      } catch (Exception e) {
        Message msg = new Message("Could not update tree.", 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.