
ingenias.editor.actions.diagram.SimulationDiagramActionsFactory 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
The newest version!
/**
* 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 SimulationDiagramActionsFactory extends DiagramMenuEntriesActionsFactory implements java.io.Serializable {
public SimulationDiagramActionsFactory(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.PartOfBody")){
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.InitProgramPool")){
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.SymptomInitialization")){
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.AndroidApplication")){
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.SDate")){
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.AndroidEmulator")){
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.SBathroom")){
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.FlyCamInit")){
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.SKitchen")){
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.SLivingroom")){
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.SBedroom")){
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.FTable")){
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.CameraInit")){
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.SCorridor")){
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.SArea")){
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.ESmartPhone")){
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.InitialPreDefPos")){
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.HumanInitialization")){
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.DeviceParam")){
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.SeatParam")){
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.ObjectParam")){
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.HumanParam")){
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.PrimitiveParam")){
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.PlaceParam")){
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.WearableParam")){
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.PDSymtom")){
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.BActivity")){
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.WorldInitialization")){
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.Crutch")){
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.EMedicine")){
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.Shoes")){
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.FOWashbasin")){
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.FOSink")){
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.Lift")){
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.WearableVar")){
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.Shirt")){
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.Shower")){
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.FWardrobe")){
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.ERemoteControl")){
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.ESleepers")){
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.Dishwasher")){
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.WashMachine")){
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.EatableItem")){
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.Walker")){
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.Cane")){
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.DComputer")){
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.DrinkItem")){
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.FOBath")){
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.SpatialVar")){
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.Shocks")){
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.Bridge")){
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.EMobileDevice")){
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.HumanVar")){
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.DTV")){
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.PrimitiveVar")){
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.SeatVar")){
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.FChair")){
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.Pyjamas")){
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.Staircase")){
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.Doorbell")){
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.Appliance")){
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.SFloor")){
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.Extractor")){
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.ObjectVar")){
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.SBuilding")){
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.Trousers")){
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.FOWater")){
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.EWaterBottle")){
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.FBed")){
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.FSofa")){
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.EmulatorPeer")){
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.EmulatorPeer")){
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.EmulatorPeer")){
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.ParamsSet")){
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.ParamsSet")){
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.ParamsSet")){
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.RunAndroidApp")){
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.RunAndroidApp")){
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.RunAndroidApp")){
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.InitialDeviceLocation")){
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.InitialDeviceLocation")){
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.InitialDeviceLocation")){
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.TIStartTime")){
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.TIStartTime")){
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.TIStartTime")){
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.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.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.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.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.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.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.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.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.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.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.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.relatedCondition")){
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.relatedCondition")){
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.relatedCondition")){
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_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.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.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.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.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.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.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.device")){
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.device")){
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.device")){
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.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.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.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();
}
});
}
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.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.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.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.goToBodySpeedVar")){
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.goToBodySpeedVar")){
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.goToBodySpeedVar")){
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.leaveObjVar")){
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.leaveObjVar")){
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.leaveObjVar")){
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.closeObjVar")){
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.closeObjVar")){
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.closeObjVar")){
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.pickUpObjVar")){
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.pickUpObjVar")){
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.pickUpObjVar")){
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.waitForHumanVar")){
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.waitForHumanVar")){
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.waitForHumanVar")){
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.durationVar")){
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.durationVar")){
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.durationVar")){
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.goToSpeedVar")){
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.goToSpeedVar")){
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.goToSpeedVar")){
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.messageVar")){
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.messageVar")){
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.messageVar")){
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.tapXVar")){
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.tapXVar")){
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.tapXVar")){
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.sitDownOnSeatVar")){
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.sitDownOnSeatVar")){
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.sitDownOnSeatVar")){
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.putOnWearableVar")){
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.putOnWearableVar")){
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.putOnWearableVar")){
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.goToPlaceVar")){
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.goToPlaceVar")){
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.goToPlaceVar")){
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.tapDeviceVar")){
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.tapDeviceVar")){
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.tapDeviceVar")){
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.openObjVar")){
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.openObjVar")){
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.openObjVar")){
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.animVar")){
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.animVar")){
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.animVar")){
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.useObjVar")){
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.useObjVar")){
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.useObjVar")){
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.goToBodyVar")){
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.goToBodyVar")){
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.goToBodyVar")){
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.leaveObjDestinyVar")){
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.leaveObjDestinyVar")){
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.leaveObjDestinyVar")){
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.tapYVar")){
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.tapYVar")){
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.tapYVar")){
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.switchRoomVar")){
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.switchRoomVar")){
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.switchRoomVar")){
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.putOffWearableVar")){
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.putOffWearableVar")){
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.putOffWearableVar")){
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.dropObjVar")){
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.dropObjVar")){
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.dropObjVar")){
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("SimulationDiagram", "PartOfBody")){
// Insert an object of type PartOfBody
AbstractAction aa=new AbstractAction("Insert PartOfBody") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "PartOfBody");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type PartOfBody is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new PartOfBody("").getHelpDesc()+"\n\n"+new PartOfBody("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "InitProgramPool")){
// Insert an object of type InitProgramPool
AbstractAction aa=new AbstractAction("Insert InitProgramPool") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "InitProgramPool");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type InitProgramPool is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new InitProgramPool("").getHelpDesc()+"\n\n"+new InitProgramPool("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "SymptomInitialization")){
// Insert an object of type SymptomInitialization
AbstractAction aa=new AbstractAction("Insert SymptomInitialization") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "SymptomInitialization");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type SymptomInitialization is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new SymptomInitialization("").getHelpDesc()+"\n\n"+new SymptomInitialization("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "AndroidApplication")){
// Insert an object of type AndroidApplication
AbstractAction aa=new AbstractAction("Insert AndroidApplication") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "AndroidApplication");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type AndroidApplication is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new AndroidApplication("").getHelpDesc()+"\n\n"+new AndroidApplication("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "SDate")){
// Insert an object of type SDate
AbstractAction aa=new AbstractAction("Insert SDate") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "SDate");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type SDate is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new SDate("").getHelpDesc()+"\n\n"+new SDate("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "AndroidEmulator")){
// Insert an object of type AndroidEmulator
AbstractAction aa=new AbstractAction("Insert AndroidEmulator") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "AndroidEmulator");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type AndroidEmulator is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new AndroidEmulator("").getHelpDesc()+"\n\n"+new AndroidEmulator("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "SBathroom")){
// Insert an object of type SBathroom
AbstractAction aa=new AbstractAction("Insert SBathroom") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "SBathroom");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type SBathroom is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new SBathroom("").getHelpDesc()+"\n\n"+new SBathroom("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "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("SimulationDiagram", "FlyCamInit")){
// Insert an object of type FlyCamInit
AbstractAction aa=new AbstractAction("Insert FlyCamInit") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "FlyCamInit");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type FlyCamInit is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new FlyCamInit("").getHelpDesc()+"\n\n"+new FlyCamInit("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "SKitchen")){
// Insert an object of type SKitchen
AbstractAction aa=new AbstractAction("Insert SKitchen") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "SKitchen");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type SKitchen is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new SKitchen("").getHelpDesc()+"\n\n"+new SKitchen("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "SLivingroom")){
// Insert an object of type SLivingroom
AbstractAction aa=new AbstractAction("Insert SLivingroom") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "SLivingroom");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type SLivingroom is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new SLivingroom("").getHelpDesc()+"\n\n"+new SLivingroom("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "SBedroom")){
// Insert an object of type SBedroom
AbstractAction aa=new AbstractAction("Insert SBedroom") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "SBedroom");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type SBedroom is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new SBedroom("").getHelpDesc()+"\n\n"+new SBedroom("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "FTable")){
// Insert an object of type FTable
AbstractAction aa=new AbstractAction("Insert FTable") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "FTable");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type FTable is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new FTable("").getHelpDesc()+"\n\n"+new FTable("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "CameraInit")){
// Insert an object of type CameraInit
AbstractAction aa=new AbstractAction("Insert CameraInit") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "CameraInit");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type CameraInit is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new CameraInit("").getHelpDesc()+"\n\n"+new CameraInit("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "SCorridor")){
// Insert an object of type SCorridor
AbstractAction aa=new AbstractAction("Insert SCorridor") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "SCorridor");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type SCorridor is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new SCorridor("").getHelpDesc()+"\n\n"+new SCorridor("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "SArea")){
// Insert an object of type SArea
AbstractAction aa=new AbstractAction("Insert SArea") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "SArea");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type SArea is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new SArea("").getHelpDesc()+"\n\n"+new SArea("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "ESmartPhone")){
// Insert an object of type ESmartPhone
AbstractAction aa=new AbstractAction("Insert ESmartPhone") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "ESmartPhone");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type ESmartPhone is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new ESmartPhone("").getHelpDesc()+"\n\n"+new ESmartPhone("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "InitialPreDefPos")){
// Insert an object of type InitialPreDefPos
AbstractAction aa=new AbstractAction("Insert InitialPreDefPos") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "InitialPreDefPos");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type InitialPreDefPos is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new InitialPreDefPos("").getHelpDesc()+"\n\n"+new InitialPreDefPos("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "HumanInitialization")){
// Insert an object of type HumanInitialization
AbstractAction aa=new AbstractAction("Insert HumanInitialization") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "HumanInitialization");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type HumanInitialization is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new HumanInitialization("").getHelpDesc()+"\n\n"+new HumanInitialization("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "DeviceParam")){
// Insert an object of type DeviceParam
AbstractAction aa=new AbstractAction("Insert DeviceParam") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "DeviceParam");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type DeviceParam is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new DeviceParam("").getHelpDesc()+"\n\n"+new DeviceParam("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "SeatParam")){
// Insert an object of type SeatParam
AbstractAction aa=new AbstractAction("Insert SeatParam") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "SeatParam");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type SeatParam is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new SeatParam("").getHelpDesc()+"\n\n"+new SeatParam("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "ObjectParam")){
// Insert an object of type ObjectParam
AbstractAction aa=new AbstractAction("Insert ObjectParam") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "ObjectParam");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type ObjectParam is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new ObjectParam("").getHelpDesc()+"\n\n"+new ObjectParam("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "HumanParam")){
// Insert an object of type HumanParam
AbstractAction aa=new AbstractAction("Insert HumanParam") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "HumanParam");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type HumanParam is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new HumanParam("").getHelpDesc()+"\n\n"+new HumanParam("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "PrimitiveParam")){
// Insert an object of type PrimitiveParam
AbstractAction aa=new AbstractAction("Insert PrimitiveParam") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "PrimitiveParam");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type PrimitiveParam is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new PrimitiveParam("").getHelpDesc()+"\n\n"+new PrimitiveParam("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "PlaceParam")){
// Insert an object of type PlaceParam
AbstractAction aa=new AbstractAction("Insert PlaceParam") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "PlaceParam");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type PlaceParam is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new PlaceParam("").getHelpDesc()+"\n\n"+new PlaceParam("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "WearableParam")){
// Insert an object of type WearableParam
AbstractAction aa=new AbstractAction("Insert WearableParam") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "WearableParam");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type WearableParam is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new WearableParam("").getHelpDesc()+"\n\n"+new WearableParam("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "PDSymtom")){
// Insert an object of type PDSymtom
AbstractAction aa=new AbstractAction("Insert PDSymtom") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "PDSymtom");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type PDSymtom is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new PDSymtom("").getHelpDesc()+"\n\n"+new PDSymtom("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "BActivity")){
// Insert an object of type BActivity
AbstractAction aa=new AbstractAction("Insert BActivity") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "BActivity");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type BActivity is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new BActivity("").getHelpDesc()+"\n\n"+new BActivity("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "WorldInitialization")){
// Insert an object of type WorldInitialization
AbstractAction aa=new AbstractAction("Insert WorldInitialization") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "WorldInitialization");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type WorldInitialization is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new WorldInitialization("").getHelpDesc()+"\n\n"+new WorldInitialization("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "Crutch")){
// Insert an object of type Crutch
AbstractAction aa=new AbstractAction("Insert Crutch") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "Crutch");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type Crutch is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new Crutch("").getHelpDesc()+"\n\n"+new Crutch("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "EMedicine")){
// Insert an object of type EMedicine
AbstractAction aa=new AbstractAction("Insert EMedicine") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "EMedicine");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type EMedicine is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new EMedicine("").getHelpDesc()+"\n\n"+new EMedicine("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "Shoes")){
// Insert an object of type Shoes
AbstractAction aa=new AbstractAction("Insert Shoes") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "Shoes");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type Shoes is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new Shoes("").getHelpDesc()+"\n\n"+new Shoes("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "FOWashbasin")){
// Insert an object of type FOWashbasin
AbstractAction aa=new AbstractAction("Insert FOWashbasin") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "FOWashbasin");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type FOWashbasin is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new FOWashbasin("").getHelpDesc()+"\n\n"+new FOWashbasin("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "FOSink")){
// Insert an object of type FOSink
AbstractAction aa=new AbstractAction("Insert FOSink") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "FOSink");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type FOSink is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new FOSink("").getHelpDesc()+"\n\n"+new FOSink("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "Lift")){
// Insert an object of type Lift
AbstractAction aa=new AbstractAction("Insert Lift") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "Lift");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type Lift is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new Lift("").getHelpDesc()+"\n\n"+new Lift("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "WearableVar")){
// Insert an object of type WearableVar
AbstractAction aa=new AbstractAction("Insert WearableVar") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "WearableVar");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type WearableVar is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new WearableVar("").getHelpDesc()+"\n\n"+new WearableVar("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "Shirt")){
// Insert an object of type Shirt
AbstractAction aa=new AbstractAction("Insert Shirt") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "Shirt");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type Shirt is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new Shirt("").getHelpDesc()+"\n\n"+new Shirt("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "Shower")){
// Insert an object of type Shower
AbstractAction aa=new AbstractAction("Insert Shower") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "Shower");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type Shower is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new Shower("").getHelpDesc()+"\n\n"+new Shower("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "FWardrobe")){
// Insert an object of type FWardrobe
AbstractAction aa=new AbstractAction("Insert FWardrobe") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "FWardrobe");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type FWardrobe is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new FWardrobe("").getHelpDesc()+"\n\n"+new FWardrobe("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "ERemoteControl")){
// Insert an object of type ERemoteControl
AbstractAction aa=new AbstractAction("Insert ERemoteControl") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "ERemoteControl");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type ERemoteControl is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new ERemoteControl("").getHelpDesc()+"\n\n"+new ERemoteControl("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "ESleepers")){
// Insert an object of type ESleepers
AbstractAction aa=new AbstractAction("Insert ESleepers") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "ESleepers");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type ESleepers is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new ESleepers("").getHelpDesc()+"\n\n"+new ESleepers("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "Dishwasher")){
// Insert an object of type Dishwasher
AbstractAction aa=new AbstractAction("Insert Dishwasher") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "Dishwasher");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type Dishwasher is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new Dishwasher("").getHelpDesc()+"\n\n"+new Dishwasher("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "WashMachine")){
// Insert an object of type WashMachine
AbstractAction aa=new AbstractAction("Insert WashMachine") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "WashMachine");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type WashMachine is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new WashMachine("").getHelpDesc()+"\n\n"+new WashMachine("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "EatableItem")){
// Insert an object of type EatableItem
AbstractAction aa=new AbstractAction("Insert EatableItem") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "EatableItem");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type EatableItem is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new EatableItem("").getHelpDesc()+"\n\n"+new EatableItem("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "Walker")){
// Insert an object of type Walker
AbstractAction aa=new AbstractAction("Insert Walker") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "Walker");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type Walker is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new Walker("").getHelpDesc()+"\n\n"+new Walker("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "Cane")){
// Insert an object of type Cane
AbstractAction aa=new AbstractAction("Insert Cane") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "Cane");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type Cane is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new Cane("").getHelpDesc()+"\n\n"+new Cane("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "DComputer")){
// Insert an object of type DComputer
AbstractAction aa=new AbstractAction("Insert DComputer") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "DComputer");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type DComputer is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new DComputer("").getHelpDesc()+"\n\n"+new DComputer("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "DrinkItem")){
// Insert an object of type DrinkItem
AbstractAction aa=new AbstractAction("Insert DrinkItem") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "DrinkItem");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type DrinkItem is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new DrinkItem("").getHelpDesc()+"\n\n"+new DrinkItem("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "FOBath")){
// Insert an object of type FOBath
AbstractAction aa=new AbstractAction("Insert FOBath") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "FOBath");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type FOBath is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new FOBath("").getHelpDesc()+"\n\n"+new FOBath("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "SpatialVar")){
// Insert an object of type SpatialVar
AbstractAction aa=new AbstractAction("Insert SpatialVar") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "SpatialVar");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type SpatialVar is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new SpatialVar("").getHelpDesc()+"\n\n"+new SpatialVar("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "Shocks")){
// Insert an object of type Shocks
AbstractAction aa=new AbstractAction("Insert Shocks") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "Shocks");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type Shocks is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new Shocks("").getHelpDesc()+"\n\n"+new Shocks("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "Bridge")){
// Insert an object of type Bridge
AbstractAction aa=new AbstractAction("Insert Bridge") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "Bridge");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type Bridge is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new Bridge("").getHelpDesc()+"\n\n"+new Bridge("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "EMobileDevice")){
// Insert an object of type EMobileDevice
AbstractAction aa=new AbstractAction("Insert EMobileDevice") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "EMobileDevice");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type EMobileDevice is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new EMobileDevice("").getHelpDesc()+"\n\n"+new EMobileDevice("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "HumanVar")){
// Insert an object of type HumanVar
AbstractAction aa=new AbstractAction("Insert HumanVar") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "HumanVar");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type HumanVar is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new HumanVar("").getHelpDesc()+"\n\n"+new HumanVar("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "DTV")){
// Insert an object of type DTV
AbstractAction aa=new AbstractAction("Insert DTV") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "DTV");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type DTV is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new DTV("").getHelpDesc()+"\n\n"+new DTV("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "PrimitiveVar")){
// Insert an object of type PrimitiveVar
AbstractAction aa=new AbstractAction("Insert PrimitiveVar") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "PrimitiveVar");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type PrimitiveVar is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new PrimitiveVar("").getHelpDesc()+"\n\n"+new PrimitiveVar("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "SeatVar")){
// Insert an object of type SeatVar
AbstractAction aa=new AbstractAction("Insert SeatVar") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "SeatVar");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type SeatVar is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new SeatVar("").getHelpDesc()+"\n\n"+new SeatVar("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "FChair")){
// Insert an object of type FChair
AbstractAction aa=new AbstractAction("Insert FChair") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "FChair");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type FChair is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new FChair("").getHelpDesc()+"\n\n"+new FChair("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "Pyjamas")){
// Insert an object of type Pyjamas
AbstractAction aa=new AbstractAction("Insert Pyjamas") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "Pyjamas");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type Pyjamas is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new Pyjamas("").getHelpDesc()+"\n\n"+new Pyjamas("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "Staircase")){
// Insert an object of type Staircase
AbstractAction aa=new AbstractAction("Insert Staircase") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "Staircase");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type Staircase is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new Staircase("").getHelpDesc()+"\n\n"+new Staircase("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "Doorbell")){
// Insert an object of type Doorbell
AbstractAction aa=new AbstractAction("Insert Doorbell") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "Doorbell");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type Doorbell is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new Doorbell("").getHelpDesc()+"\n\n"+new Doorbell("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "Appliance")){
// Insert an object of type Appliance
AbstractAction aa=new AbstractAction("Insert Appliance") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "Appliance");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type Appliance is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new Appliance("").getHelpDesc()+"\n\n"+new Appliance("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "SFloor")){
// Insert an object of type SFloor
AbstractAction aa=new AbstractAction("Insert SFloor") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "SFloor");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type SFloor is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new SFloor("").getHelpDesc()+"\n\n"+new SFloor("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "Extractor")){
// Insert an object of type Extractor
AbstractAction aa=new AbstractAction("Insert Extractor") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "Extractor");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type Extractor is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new Extractor("").getHelpDesc()+"\n\n"+new Extractor("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "ObjectVar")){
// Insert an object of type ObjectVar
AbstractAction aa=new AbstractAction("Insert ObjectVar") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "ObjectVar");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type ObjectVar is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new ObjectVar("").getHelpDesc()+"\n\n"+new ObjectVar("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "SBuilding")){
// Insert an object of type SBuilding
AbstractAction aa=new AbstractAction("Insert SBuilding") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "SBuilding");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type SBuilding is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new SBuilding("").getHelpDesc()+"\n\n"+new SBuilding("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "Trousers")){
// Insert an object of type Trousers
AbstractAction aa=new AbstractAction("Insert Trousers") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "Trousers");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type Trousers is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new Trousers("").getHelpDesc()+"\n\n"+new Trousers("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "FOWater")){
// Insert an object of type FOWater
AbstractAction aa=new AbstractAction("Insert FOWater") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "FOWater");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type FOWater is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new FOWater("").getHelpDesc()+"\n\n"+new FOWater("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "EWaterBottle")){
// Insert an object of type EWaterBottle
AbstractAction aa=new AbstractAction("Insert EWaterBottle") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "EWaterBottle");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type EWaterBottle is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new EWaterBottle("").getHelpDesc()+"\n\n"+new EWaterBottle("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "FBed")){
// Insert an object of type FBed
AbstractAction aa=new AbstractAction("Insert FBed") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "FBed");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type FBed is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new FBed("").getHelpDesc()+"\n\n"+new FBed("").getHelpRecom());
nobjects.add(aa);
}
if (this.getState().getDiagramFilter().isValidEntity("SimulationDiagram", "FSofa")){
// Insert an object of type FSofa
AbstractAction aa=new AbstractAction("Insert FSofa") {
public void actionPerformed(ActionEvent ev) {
try {
graph.insert(pt, "FSofa");
} catch (InvalidEntity e) {
e.printStackTrace();
JOptionPane.showMessageDialog(graph, "Object type FSofa is not allowed in this diagram",
"Warning", JOptionPane.WARNING_MESSAGE);
}
}
};
aa.putValue("tooltip", new FSofa("").getHelpDesc()+"\n\n"+new FSofa("").getHelpRecom());
nobjects.add(aa);
}
return nobjects;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy