Examples of HdlNature


Examples of net.sourceforge.veditor.HdlNature

  /**
   * Initializes the contents of the dialog
   */
  private void initContents()
  {
    HdlNature nature;
    try {
      nature = getNature();
    } catch (CoreException e) {
      e.printStackTrace();
      return;
    }
   
    ErrorParser[] parsers = ErrorParser.getParsers();
    for(int i = 0; i < parsers.length; i++)
    {
      m_ErrorParser.add(parsers[i].getCompilerName());
    }
    
    Map<String,BuildConfig> commands=nature.getCommands();
    //if the list is empty, create a command with default settings
    if(commands==null || commands.size() == 0){
      setDefaults();
    }
    else{     
View Full Code Here

Examples of net.sourceforge.veditor.HdlNature

  /**
   * Saves the data to the nature
   */
  private void saveData(){
   
    HdlNature nature;
    try {
      nature = getNature();
    } catch (CoreException e) {     
      e.printStackTrace();
      return;
    }
       
    Vector<BuildConfig> commands=new Vector<BuildConfig>();
    int buildOrder=0;
    saveFields();
    for(TableItem tableItem:m_ConfigTable.getItems()){
      BuildConfig command=(BuildConfig)tableItem.getData();
      command.setBuildOrder(buildOrder++);
      command.setEnabled(tableItem.getChecked());
      commands.add(command);
    }
     
    nature.setCommands(commands.toArray(new BuildConfig[0]));
  }
View Full Code Here

Examples of net.sourceforge.veditor.HdlNature

   * @return
   * @throws CoreException
   */
  private HdlNature getNature() throws CoreException {
    IProject project=getProject();   
    HdlNature hdlNature=null;
    IProjectDescription projectDescription; 
    projectDescription = project.getDescription()
    boolean bNatureFound=false;
    ArrayList<String> natureList=new ArrayList<String>();
     
View Full Code Here

Examples of net.sourceforge.veditor.HdlNature

    Map<String,BuildConfig> buildConfigs=null;
    IProject project = getProject();
    IContainer folder;
    boolean bInterrupted=false;
   
    HdlNature nature;
    try {
      //here, we hope there is a project nature
      nature = (HdlNature)project.getNature(HdlNature.NATURE_ID);     
    } catch (CoreException e) {
      e.printStackTrace();
      return;
    }
    
    //if there is no nature, bail
    if(nature == null){
      return;
    }
   
    buildConfigs=nature.getCommands();
   
    VerilogPlugin.deleteExternalMarkers(project);
    ArrayList<String> keyList=new ArrayList<String>();
    keyList.addAll(buildConfigs.keySet());
    Collections.sort(keyList);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.