|
|
@ -27,13 +27,10 @@ public final class ServerTableDataWrapper extends AbstractTableDataWrapper { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Icon getIcon() { |
|
|
|
public Icon getIcon() { |
|
|
|
if (tabledata instanceof DBTableData) { |
|
|
|
if (tabledata instanceof DBTableData) { |
|
|
|
if (StringUtils.isBlank(((DBTableData) tabledata).getQuery())) { |
|
|
|
return getDBTableDataIcon(); |
|
|
|
return new LazyIcon("server_database_warning"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
|
|
|
|
return new LazyIcon("server_database"); |
|
|
|
if (tabledata instanceof ClassTableData) { |
|
|
|
} |
|
|
|
|
|
|
|
} else if (tabledata instanceof ClassTableData) { |
|
|
|
|
|
|
|
return new LazyIcon("class_table_data"); |
|
|
|
return new LazyIcon("class_table_data"); |
|
|
|
} else if (tabledata instanceof EmbeddedTableData) { |
|
|
|
} else if (tabledata instanceof EmbeddedTableData) { |
|
|
|
return new LazyIcon("data_table"); |
|
|
|
return new LazyIcon("data_table"); |
|
|
@ -49,6 +46,15 @@ public final class ServerTableDataWrapper extends AbstractTableDataWrapper { |
|
|
|
return new LazyIcon("server_database"); |
|
|
|
return new LazyIcon("server_database"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private Icon getDBTableDataIcon() { |
|
|
|
|
|
|
|
if (StringUtils.isBlank(((DBTableData) tabledata).getQuery())) { |
|
|
|
|
|
|
|
return new LazyIcon("server_database_warning"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
return new LazyIcon("server_database"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 是否异常 |
|
|
|
* 是否异常 |
|
|
|
* @return |
|
|
|
* @return |
|
|
|