Search in sources :

Example 1 with EmptyPlugin

use of com.ramussoft.gui.common.EmptyPlugin in project ramus by Vitaliy-Yakovchuk.

the class MovingArea method editActive.

/**
 * Якщо виділений якийсь об’єкт, тоді з’являється діалогове вікно для роботи
 * з його властивостями.
 */
@SuppressWarnings("unused")
public void editActive() {
    if ((Metadata.EDUCATIONAL) && (Math.random() < 0.2d)) {
        AttributePlugin plugin = panel.getFramework().findAttributePlugin(new AttributeType("Core", "Table", false));
        if (!(plugin instanceof EmptyPlugin)) {
            System.exit(233);
        }
    }
    if ((activeObject instanceof MovingFunction) || (activeObject instanceof DFDFunction)) {
        final IDEF0Object movingFunction = (IDEF0Object) activeObject;
        // String text = movingFunction.getFunction().getName();
        panel.getFunctionOptions().showModal(movingFunction);
    /*
			 * if(!text.equals(movingFunction.getFunction().getName()))
			 * movingFunction.resetBounds();
			 */
    } else if (activeObject instanceof DFDSRole) {
        panel.getDFDSRoleOptionsDialog().showModal((DFDSRole) activeObject);
    } else if (activeObject instanceof DFDObject) {
        panel.getDFDObjectOptionsDialog().showModal((DFDObject) activeObject);
    } else if (activeObject instanceof MovingText)
        panel.getTextOptionsDialog().showModal((MovingText) activeObject);
    else if (activeObject instanceof PaintSector.Pin) {
        panel.getArrowOptionsDialog().showModal(((PaintSector.Pin) activeObject).getSector(), this);
    // setPanels();
    }
    repaintAsync();
}
Also used : EmptyPlugin(com.ramussoft.gui.common.EmptyPlugin) DFDFunction(com.ramussoft.pb.dfd.visual.DFDFunction) DFDSRole(com.ramussoft.pb.dfds.visual.DFDSRole) AttributePlugin(com.ramussoft.gui.common.AttributePlugin) Pin(com.ramussoft.pb.idef.elements.PaintSector.Pin) PaintSector(com.ramussoft.pb.idef.elements.PaintSector) AttributeType(com.ramussoft.common.AttributeType) DFDObject(com.ramussoft.pb.dfd.visual.DFDObject)

Aggregations

AttributeType (com.ramussoft.common.AttributeType)1 AttributePlugin (com.ramussoft.gui.common.AttributePlugin)1 EmptyPlugin (com.ramussoft.gui.common.EmptyPlugin)1 DFDFunction (com.ramussoft.pb.dfd.visual.DFDFunction)1 DFDObject (com.ramussoft.pb.dfd.visual.DFDObject)1 DFDSRole (com.ramussoft.pb.dfds.visual.DFDSRole)1 PaintSector (com.ramussoft.pb.idef.elements.PaintSector)1 Pin (com.ramussoft.pb.idef.elements.PaintSector.Pin)1