Changeset 2176
- Timestamp:
- 05/22/08 13:57:05
(6 months ago)
- Author:
- apatel
- Message:
IPSEC shape was not displaying IP address in the property sheet. As shape wizard was initializing a dummy sysresource was added that needed to be removed upon finish.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2173 |
r2176 |
|
| 44 | 44 | import com.tresys.framework.plugin.builder.SELinuxSystem; |
|---|
| 45 | 45 | import com.tresys.framework.plugin.editor.policy.graphic.IShapeVisitor; |
|---|
| | 46 | import com.tresys.framework.plugin.editor.policy.graphic.model.Shape.NameValidator; |
|---|
| 46 | 47 | import com.tresys.framework.plugin.wizards.shape.NetworkResourceShapePropertyWizard; |
|---|
| 47 | 48 | |
|---|
| … | … | |
| 409 | 410 | |
|---|
| 410 | 411 | NetworkResource resource = (NetworkResource) getComponent (); |
|---|
| 411 | | List systemResources = resource.GetSystemResources(m_rdef); |
|---|
| 412 | | SystemResource sysResource = (SystemResource) systemResources.get (0); |
|---|
| | 412 | SystemResource sysResource = resource.getSystemResource (m_rdef); |
|---|
| 413 | 413 | |
|---|
| 414 | 414 | if (NETWORK_PROTOCOL_INDEX.equals (propertyId)) |
|---|
| … | … | |
| 606 | 606 | else if (NETWORK_REMOTE_IP_PORTS.equals (propertyId)) |
|---|
| 607 | 607 | remoteInfo.setPorts (ParsePortsString((String) value)); |
|---|
| | 608 | else if (NAME_PROP.equals(propertyId)) |
|---|
| | 609 | { |
|---|
| | 610 | String errorMess = new NameValidator().isValid(value); |
|---|
| | 611 | if (errorMess == null) |
|---|
| | 612 | { |
|---|
| | 613 | setName((String)value); |
|---|
| | 614 | |
|---|
| | 615 | } |
|---|
| | 616 | } |
|---|
| 608 | 617 | else |
|---|
| 609 | 618 | super.setPropertyValue (propertyId, value); |
|---|
| r2172 |
r2176 |
|
| 86 | 86 | NetworkInfo info = new NetworkInfo (null, m_page1.localIPAddress, null, ports); |
|---|
| 87 | 87 | LabeledNetworkResource ip_lab = new LabeledNetworkResource (info, rdef); |
|---|
| | 88 | component.ClearSystemResources (rdef); |
|---|
| 88 | 89 | component.AddSystemResource (rdef, ip_lab); |
|---|
| 89 | 90 | |
|---|
Download in other formats:
* Generating other formats may take time.