Tabnine Logo
ingenias.generator.browser
Code IndexAdd Tabnine to your IDE (free)

How to use ingenias.generator.browser

Best Java code snippets using ingenias.generator.browser (Showing top 20 results out of 315)

origin: net.sf.ingenias/editor

public  GraphAttribute createAttribute(String name, GraphCollection value, Graph graph ){
  GraphAttribute ga=new GraphAttributeImp(name,((GraphCollectionImp)value).getValue(),((GraphImp)graph).getGraph(),ids);
  return ga;  
}

origin: net.sf.ingenias/editor

public  GraphAttribute createAttribute(String name, Object value, Graph graph ){
  GraphAttribute ga=new GraphAttributeImp(name,value,((GraphImp)graph).getGraph(),ids);
  return ga;  
}

origin: net.sf.ingenias/editor

public static GraphRelationshipFactory createDefaultGraphFactory(Browser browser) throws NotInitialised{
  return new GraphRelationshipFactory(browser.getState());
}
origin: net.sf.phat/phat-generator

public static boolean isTargetOfAnyRelationship(GraphEntity ge)
    throws NullEntity {
  for (GraphRelationship gr : ge.getRelationships()) {
    for (GraphRole gRole : gr.getRoles()) {
      if (gRole.getPlayer().getID().equals(ge.getID())
          && gRole.getName().endsWith("target")) {
        return true;
      }
    }
  }
  return false;
}
origin: net.sf.ingenias/editor

/**
 *  Description of the Method
 *
 *@param  args           Description of Parameter
 *@exception  Exception  Description of Exception
 */
public static void main(String args[]) throws Exception {
  String file = args[0];
  Browser b = new BrowserImp(file);
  Graph[] gs = b.getGraphs();
  for (int k = 0; k < gs.length; k++) {
    System.err.println(gs[k].getType() + ":" + gs[k].getName());
  }
}
origin: net.sf.phat/phat-generator

public static String getAttributeByName(GraphEntity ge, String attributeName) {
  for (GraphAttribute ga : ge.getAllAttrs()) {
    if (ga.getName().equals(attributeName)) {
      return ga.getSimpleValue();
    }
  }
  return "";
}

origin: net.sf.phat/phat-generator

public static GraphEntity getSourceEntity(GraphEntity ge, GraphRelationship gr) {
  GraphRole gRole = getSourceRole(gr.getRoles());
  try {
    if (gRole != null && gRole.getPlayer().getID() != ge.getID()) {
      return gRole.getPlayer();
    }
  } catch (NullEntity e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
  }
  return null;
}
origin: net.sf.phat/phat-generator

public static Graph getGraphByName(String name, Browser browser) {
  for (Graph g : browser.getGraphs()) {
    if (g.getName().equals(name)) {
      return g;
    }
  }
  return null;
}
origin: net.sf.ingenias/editor

public static GraphAttributeFactory createDefaultGraphFactory(Browser browser) throws NotInitialised{
  return new GraphAttributeFactory(browser.getState());
}

origin: net.sf.ingenias/editor

public static GraphEntityFactory createDefaultGraphFactory(Browser browser) throws NotInitialised{
  return new GraphEntityFactory(browser.getState());
}

origin: net.sf.ingenias/editor

public static GraphFactory createDefaultGraphFactory(Browser browser) throws NotInitialised{
  return new GraphFactory(browser.getState());
}
origin: net.sf.ingenias/editor

public GraphEntity findEntity(String id){
  GraphEntity[] ents=this.getAllEntities();
  boolean found=false;
  int k=0;
  for (k=0;k<ents.length &&!found;k++){
    found=ents[k].getID().equals(id);
  }
  if (found)
    return ents[k-1];
  else 
    return null;
}
origin: net.sf.phat/phat-generator

private static boolean hasField(GraphEntity task, String fieldName) {
  GraphAttribute d;
  try {
    d = task.getAttributeByName(fieldName);
  } catch (NotFound ex) {
    return false;
  }
  return true;//d != null && !d.getSimpleValue().equals("");
}
origin: net.sf.ingenias/editor

public UpdateToolsAndCG(ManageExtensions me, ModuleLoader ml, IDEState ids) {
  this.me = me;
  this.ids=ids;
  this.ml=ml;
  browser=new BrowserImp(ids);
}

origin: net.sf.phat/phat-generator

public static String getAttributeByName(GraphEntity ge, String attributeName, String defaultValue) {
  for (GraphAttribute ga : ge.getAllAttrs()) {
    if (ga.getName().equals(attributeName)) {                
      return (ga.getSimpleValue().equals("")) ? defaultValue : ga.getSimpleValue();
    }
  }
  return defaultValue;
}
origin: net.sf.ingenias/editor

public ObjectTreeMenuEntries(IDEState ids, GUIResources resources){
  this.ids=ids;
  this.resources=resources;
  browser=new BrowserImp(ids);
}
origin: net.sf.ingenias/editor

/**
 *  Performs an empty initialisation. Only works when there is an already existing
 *  instance of GraphManager
 *
 *@exception  Exception  Description of Exception
 */
public static void initialise(IDEState ids) {
  // To check if it is initialised
  browser = new BrowserImp(ids);
}
origin: net.sf.ingenias/editor

public CommonMenuEntriesActionFactory(GUIResources resources, IDEState state){
  this.resources=resources;
  this.state=state;
  browser=new BrowserImp(state);
}
origin: net.sf.ingenias/editor

public HyperlinkAction(IDEState ids, GUIResources resources){
  this.ids=ids;
  this.resources=resources;
  browser=new BrowserImp(ids);
}

origin: net.sf.ingenias/editor

public GraphRelationshipFactory(IDEState ids){
  this.ids=ids;
  browser=new BrowserImp(ids);
}
ingenias.generator.browser

Most used classes

  • Browser
    Defines an interface for traversing diagrams generated with INGENIAS IDE.
  • Graph
  • GraphAttribute
  • GraphEntity
  • GraphRelationship
  • GraphCollection,
  • GraphEntityImp,
  • AttributedElement,
  • BrowserImp,
  • GraphAttributeFactory,
  • GraphAttributeImp,
  • GraphCollectionImp,
  • GraphEntityFactory,
  • GraphFactory,
  • GraphImp,
  • GraphRelationshipFactory,
  • GraphRelationshipImp,
  • GraphRoleImp,
  • RelationshipFactory
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now