All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ingenias.editor.CleanUnusedEntities Maven / Gradle / Ivy

There is a newer version: 1.0.11
Show newest version
package ingenias.editor;

import ingenias.editor.entities.Entity;
import ingenias.editor.persistence.PersistenceManager;
import ingenias.exception.NullEntity;
import ingenias.generator.browser.AttributedElement;
import ingenias.generator.browser.Browser;
import ingenias.generator.browser.BrowserImp;
import ingenias.generator.browser.Graph;
import ingenias.generator.browser.GraphAttribute;
import ingenias.generator.browser.GraphEntity;
import ingenias.generator.browser.GraphEntityImp;
import ingenias.generator.browser.GraphRelationship;
import ingenias.generator.browser.GraphRole;
import ingenias.generator.interpreter.SplitHandler;

import java.awt.Frame;
import java.io.File;
import java.io.PrintWriter;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.Hashtable;
import java.util.Properties;
import java.util.Vector;


public class CleanUnusedEntities {


	private static boolean isUsedInSomeDiagram(GraphEntity original,Browser browser) throws IllegalAccessException, NullEntity{
		Graph[] v=browser.getGraphs();
		Hashtable checked=new  Hashtable();
		boolean used=false;
		for (int l=0;l checked) throws IllegalAccessException, NullEntity{
		boolean used=false;
		GraphAttribute [] fs=tested.getAllAttrs();
		for (int j=0;j




© 2015 - 2024 Weber Informatics LLC | Privacy Policy