ingenias.editor.actions.diagram.SymptomEvolutionDiagramActionsFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sociaalmled Show documentation
Show all versions of sociaalmled Show documentation
A editor for modelling scenarios for PHAT simulator
/**
* Copyright (C) 2010 Jorge J. Gomez-Sanz
*
*
* This file is part of the INGENME tool. INGENME is an open source meta-editor
* which produces customized editors for user-defined modeling languages
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation version 3 of the License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see
**/
package ingenias.editor.actions.diagram;
import java.awt.*;
import javax.swing.*;
import javax.swing.event.*;
import java.awt.event.*;
import java.util.Map;
import java.util.Hashtable;
import java.awt.*;
import java.awt.image.*;
import javax.swing.*;
import java.awt.event.*;
import java.net.URL;
import java.util.Map;
import java.util.Hashtable;
import java.util.ArrayList;
import javax.swing.event.UndoableEditEvent;
import org.jgraph.JGraph;
import org.jgraph.graph.*;
import org.jgraph.event.*;
import java.util.Vector;
import org.jgraph.JGraph;
import org.jgraph.graph.*;
import org.jgraph.event.*;
import org.jgraph.plaf.basic.*;
import java.lang.reflect.*;
import ingenias.editor.entities.*;
import ingenias.editor.widget.*;
import ingenias.exception.NullEntity;
import ingenias.generator.browser.BrowserImp;
import ingenias.generator.browser.Graph;
import ingenias.generator.browser.GraphEntity;
import ingenias.exception.InvalidEntity;
import ingenias.editor.*;
// MarqueeHandler that Connects Vertices and Displays PopupMenus
public class SymptomEvolutionDiagramActionsFactory extends DiagramMenuEntriesActionsFactory implements java.io.Serializable {
public SymptomEvolutionDiagramActionsFactory(GUIResources resources, IDEState state){
super(resources,state);
}
public Vector createChangeViewActions(final DefaultGraphCell cell, final ModelJGraph graph) {
Vector possibleViews=new Vector();
final ingenias.editor.entities.Entity ent=((ingenias.editor.entities.Entity)cell.getUserObject());
if (ent.getClass().getName().equals("ingenias.editor.entities.MEDIUMSympLevelState")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.LOWSympLevelState")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.CDayOfTheWeek")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.CInside")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.CSymptom")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.CTimer")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.CEvent")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.COutside")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.CProb")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.NONESympLevelState")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.CAlways")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.HIGHSympLevelState")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.CTime")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.StartBehaviourEvent")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.EPublicEvent")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.StopBehaviourEvent")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.Human")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.SymptomChangedEvent")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.FallingEvent")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.MedsTakenEvent")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.ObjDroppedEvent")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.BEvent")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.EPrivateEvent")){
final ViewPreferences.ViewType current1=ViewPreferences.ViewType.INGENIAS;
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
graph.getListenerContainer().storeContraints(cell);
graph.getModel().getAttributes(cell).put("view", "INGENIAS");
ent.getPrefs(graph.getModel().getAttributes(cell)).setView(ViewPreferences.ViewType.INGENIAS);
graph.getListenerContainer().restoreContraints(cell);
graph.invalidate();
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.SymptomTransition")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.SymptomTransition")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.SymptomTransition")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.ProducesEvent")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.ProducesEvent")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.ProducesEvent")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.cond")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.cond")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.cond")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.ProfileOf")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.ProfileOf")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.ProfileOf")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.IntervalClockTime")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.IntervalClockTime")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.IntervalClockTime")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.med")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.med")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.med")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.LiveIn")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.LiveIn")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.LiveIn")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.WorkAs")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.WorkAs")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.WorkAs")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.socialRelations")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.socialRelations")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.socialRelations")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.RelatedEvent")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.RelatedEvent")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.RelatedEvent")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.ConditionNeeded")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.ConditionNeeded")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.ConditionNeeded")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.ActivityAttached")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.ActivityAttached")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.ActivityAttached")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.SBhasFloor")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.SBhasFloor")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.SBhasFloor")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.Connects")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.Connects")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.Connects")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.FPrecondition")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.FPrecondition")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.FPrecondition")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.tool")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.tool")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.tool")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.AllowedTask")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.AllowedTask")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.AllowedTask")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.aeas_op1")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.aeas_op1")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.aeas_op1")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.aeas_op2")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.aeas_op2")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.aeas_op2")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.aeinv_op")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.aeinv_op")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.aeinv_op")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.aemd_op1")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.aemd_op1")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.aemd_op1")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.aemd_op2")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.aemd_op2")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.aemd_op2")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.RelatedHuman")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.RelatedHuman")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.RelatedHuman")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.InitialDate")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.InitialDate")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.InitialDate")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.InitialLocation")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.InitialLocation")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.InitialLocation")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.InitialActivity")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.InitialActivity")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.InitialActivity")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.CameraFaceToHuman")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.CameraFaceToHuman")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.CameraFaceToHuman")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.InitializesSymptom")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.InitializesSymptom")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.InitializesSymptom")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.InitializedSymptom")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.InitializedSymptom")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.InitializedSymptom")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.AffectedAction")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.AffectedAction")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.AffectedAction")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.DeonticAssignement")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.DeonticAssignement")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.DeonticAssignement")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.ActionHappeningAfterwards")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.ActionHappeningAfterwards")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.ActionHappeningAfterwards")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.ActionResponsible")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.ActionResponsible")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.ActionResponsible")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.Role")){
possibleViews.add(new AbstractAction("NOICON") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.NOICON,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.Role")){
possibleViews.add(new AbstractAction("INGENIAS") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.INGENIAS,
ent, cell, graph);
graph.refresh();
}
});
}
if (ent.getClass().getName().equals("ingenias.editor.entities.Role")){
possibleViews.add(new AbstractAction("LABEL") {
public void actionPerformed(ActionEvent e) {
ingenias.editor.cell.RenderComponentManager.setRelationshipView(ViewPreferences.ViewType.LABEL,
ent, cell, graph);
graph.refresh();
}
});
}
return possibleViews;
}
protected Vector createDiagramSpecificInsertActions(final Point pt, final ModelJGraph graph) {
Vector nobjects=new Vector();
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "MEDIUMSympLevelState")){
// Insert an object of type MEDIUMSympLevelState
AbstractAction aa=new AbstractAction("Insert MEDIUMSympLevelState") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "MEDIUMSympLevelState");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type MEDIUMSympLevelState is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new MEDIUMSympLevelState("").getHelpDesc()+"\n\n"+new MEDIUMSympLevelState("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "LOWSympLevelState")){
// Insert an object of type LOWSympLevelState
AbstractAction aa=new AbstractAction("Insert LOWSympLevelState") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "LOWSympLevelState");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type LOWSympLevelState is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new LOWSympLevelState("").getHelpDesc()+"\n\n"+new LOWSympLevelState("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "CDayOfTheWeek")){
// Insert an object of type CDayOfTheWeek
AbstractAction aa=new AbstractAction("Insert CDayOfTheWeek") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "CDayOfTheWeek");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type CDayOfTheWeek is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new CDayOfTheWeek("").getHelpDesc()+"\n\n"+new CDayOfTheWeek("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "CInside")){
// Insert an object of type CInside
AbstractAction aa=new AbstractAction("Insert CInside") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "CInside");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type CInside is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new CInside("").getHelpDesc()+"\n\n"+new CInside("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "CSymptom")){
// Insert an object of type CSymptom
AbstractAction aa=new AbstractAction("Insert CSymptom") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "CSymptom");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type CSymptom is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new CSymptom("").getHelpDesc()+"\n\n"+new CSymptom("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "CTimer")){
// Insert an object of type CTimer
AbstractAction aa=new AbstractAction("Insert CTimer") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "CTimer");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type CTimer is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new CTimer("").getHelpDesc()+"\n\n"+new CTimer("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "CEvent")){
// Insert an object of type CEvent
AbstractAction aa=new AbstractAction("Insert CEvent") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "CEvent");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type CEvent is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new CEvent("").getHelpDesc()+"\n\n"+new CEvent("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "COutside")){
// Insert an object of type COutside
AbstractAction aa=new AbstractAction("Insert COutside") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "COutside");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type COutside is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new COutside("").getHelpDesc()+"\n\n"+new COutside("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "CProb")){
// Insert an object of type CProb
AbstractAction aa=new AbstractAction("Insert CProb") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "CProb");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type CProb is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new CProb("").getHelpDesc()+"\n\n"+new CProb("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "NONESympLevelState")){
// Insert an object of type NONESympLevelState
AbstractAction aa=new AbstractAction("Insert NONESympLevelState") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "NONESympLevelState");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type NONESympLevelState is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new NONESympLevelState("").getHelpDesc()+"\n\n"+new NONESympLevelState("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "CAlways")){
// Insert an object of type CAlways
AbstractAction aa=new AbstractAction("Insert CAlways") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "CAlways");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type CAlways is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new CAlways("").getHelpDesc()+"\n\n"+new CAlways("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "HIGHSympLevelState")){
// Insert an object of type HIGHSympLevelState
AbstractAction aa=new AbstractAction("Insert HIGHSympLevelState") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "HIGHSympLevelState");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type HIGHSympLevelState is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new HIGHSympLevelState("").getHelpDesc()+"\n\n"+new HIGHSympLevelState("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "CTime")){
// Insert an object of type CTime
AbstractAction aa=new AbstractAction("Insert CTime") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "CTime");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type CTime is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new CTime("").getHelpDesc()+"\n\n"+new CTime("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "StartBehaviourEvent")){
// Insert an object of type StartBehaviourEvent
AbstractAction aa=new AbstractAction("Insert StartBehaviourEvent") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "StartBehaviourEvent");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type StartBehaviourEvent is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new StartBehaviourEvent("").getHelpDesc()+"\n\n"+new StartBehaviourEvent("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "EPublicEvent")){
// Insert an object of type EPublicEvent
AbstractAction aa=new AbstractAction("Insert EPublicEvent") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "EPublicEvent");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type EPublicEvent is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new EPublicEvent("").getHelpDesc()+"\n\n"+new EPublicEvent("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "StopBehaviourEvent")){
// Insert an object of type StopBehaviourEvent
AbstractAction aa=new AbstractAction("Insert StopBehaviourEvent") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "StopBehaviourEvent");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type StopBehaviourEvent is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new StopBehaviourEvent("").getHelpDesc()+"\n\n"+new StopBehaviourEvent("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "Human")){
// Insert an object of type Human
AbstractAction aa=new AbstractAction("Insert Human") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "Human");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type Human is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new Human("").getHelpDesc()+"\n\n"+new Human("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "SymptomChangedEvent")){
// Insert an object of type SymptomChangedEvent
AbstractAction aa=new AbstractAction("Insert SymptomChangedEvent") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "SymptomChangedEvent");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type SymptomChangedEvent is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new SymptomChangedEvent("").getHelpDesc()+"\n\n"+new SymptomChangedEvent("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "FallingEvent")){
// Insert an object of type FallingEvent
AbstractAction aa=new AbstractAction("Insert FallingEvent") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "FallingEvent");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type FallingEvent is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new FallingEvent("").getHelpDesc()+"\n\n"+new FallingEvent("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "MedsTakenEvent")){
// Insert an object of type MedsTakenEvent
AbstractAction aa=new AbstractAction("Insert MedsTakenEvent") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "MedsTakenEvent");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type MedsTakenEvent is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new MedsTakenEvent("").getHelpDesc()+"\n\n"+new MedsTakenEvent("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "ObjDroppedEvent")){
// Insert an object of type ObjDroppedEvent
AbstractAction aa=new AbstractAction("Insert ObjDroppedEvent") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "ObjDroppedEvent");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type ObjDroppedEvent is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new ObjDroppedEvent("").getHelpDesc()+"\n\n"+new ObjDroppedEvent("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "BEvent")){
// Insert an object of type BEvent
AbstractAction aa=new AbstractAction("Insert BEvent") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "BEvent");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type BEvent is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new BEvent("").getHelpDesc()+"\n\n"+new BEvent("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SymptomEvolutionDiagram", "EPrivateEvent")){
// Insert an object of type EPrivateEvent
AbstractAction aa=new AbstractAction("Insert EPrivateEvent") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "EPrivateEvent");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type EPrivateEvent is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new EPrivateEvent("").getHelpDesc()+"\n\n"+new EPrivateEvent("").getHelpRecom());
nobjects.add(aa);
}
return nobjects;
}
}