import org.tizen.dynamicanalyzer.ui.network.data.type.NetworkSeriesType;
import org.tizen.dynamicanalyzer.ui.timeline.common.TimelineConstants;
import org.tizen.dynamicanalyzer.ui.toolbar.Toolbar;
+import org.tizen.dynamicanalyzer.ui.toolbar.setting.data.SettingConstants;
+import org.tizen.dynamicanalyzer.util.Logger;
import org.tizen.dynamicanalyzer.widgets.chart.DAChart;
import org.tizen.dynamicanalyzer.widgets.chart.DAChartPlot;
import org.tizen.dynamicanalyzer.widgets.chart.DAChartPlot.AutoRangeType;
private void addParentChartItemList(String destinationAddress, String fd) {
parentChartIndex++;
lastChildChartIndexOfEachParent.put(parentChartIndex, 1);
- StringBuffer chartName = new StringBuffer(destinationAddress);
- if (chartName.length() > 10) {
- chartName.replace(10, chartName.length(), CommonConstants.EMPTY);
- chartName.insert(chartName.length(), "...");//$NON-NLS-1$
+
+ String addr[] = destinationAddress.split(":");
+ StringBuffer chartName = new StringBuffer();
+ if (addr.length > 1) {
+ chartName.append(addr[0]);
+ chartName.append("\n:");//$NON-NLS-1$
+ chartName.append(addr[addr.length-1]);
+ chartName.append("\n");//$NON-NLS-1$
+ }else{
+ chartName = new StringBuffer(destinationAddress);
+ if (chartName.length() > 10) {
+ chartName.replace(10, chartName.length(), CommonConstants.EMPTY);
+ chartName.insert(chartName.length(), "...");//$NON-NLS-1$
+ }
+ Logger.warning("Destination port number does not exist");
}
+
DAChartBoardItem parentItem = new DAChartBoardItem(this, chartName.toString());
parentItem.setData(new NetworkSelectionType(destinationAddress, fd, true));
DAChart parentDAChart = parentItem.getChart();