140
140
private void initColoredTimedGuard() {
142
142
if (!transportArc) {
143
ct = ((LocalColoredPlace)objectToBeEditedInput.underlyingTimedInputArc().source()).getColorType();
144
colorIntervalPanel = new ColorIntervalAndInvariantEditPanel(context, ct, true, objectToBeEditedInput);
143
if(objectToBeEditedInput.underlyingTimedInputArc().source() instanceof SharedColoredPlace) {
144
ct = ((SharedColoredPlace)objectToBeEditedInput.underlyingTimedInputArc().source()).getColorType();
145
colorIntervalPanel = new ColorIntervalAndInvariantEditPanel(context, ct, true, objectToBeEditedInput);
147
ct = ((LocalColoredPlace) objectToBeEditedInput.underlyingTimedInputArc().source()).getColorType();
148
colorIntervalPanel = new ColorIntervalAndInvariantEditPanel(context, ct, true, objectToBeEditedInput);
147
ct = ((LocalColoredPlace)objectToBeEditedTransport.underlyingTransportArc().source()).getColorType();
148
colorIntervalPanel = new ColorIntervalAndInvariantEditPanel(context, ct, true, objectToBeEditedTransport);
152
if(objectToBeEditedTransport.underlyingTransportArc().source() instanceof SharedColoredPlace) {
153
ct = (((SharedColoredPlace) objectToBeEditedTransport.underlyingTransportArc().source()).getColorType());
154
colorIntervalPanel = new ColorIntervalAndInvariantEditPanel(context, ct, true, objectToBeEditedInput);
156
ct = ((LocalColoredPlace) objectToBeEditedTransport.underlyingTransportArc().source()).getColorType();
157
colorIntervalPanel = new ColorIntervalAndInvariantEditPanel(context, ct, true, objectToBeEditedTransport);
151
161
GridBagConstraints gbc = new GridBagConstraints();