_titleViewer.setInput(getViewSite());
fillData();
_parent.pack();
playlistTable.addControlListener(new ControlAdapter() {
public void controlResized(ControlEvent e) {
int width = playlistTable.getClientArea().width - playlistTable.getVerticalBar().getSize().x;
playlistColumnName.setWidth((int) (width * 0.6));
playlistColumnCount.setWidth((int) (width * 0.2));
playlistColumnPercent.setWidth((int) (width * 0.2));
}
});
genreTable.addControlListener(new ControlAdapter() {
public void controlResized(ControlEvent e) {
int width = genreTable.getClientArea().width - genreTable.getVerticalBar().getSize().x;
genreColumnName.setWidth((int) (width * 0.6));
genreColumnCount.setWidth((int) (width * 0.2));
genreColumnPercent.setWidth((int) (width * 0.2));
}
});
artistTable.addControlListener(new ControlAdapter() {
public void controlResized(ControlEvent e) {
int width = artistTable.getClientArea().width - artistTable.getVerticalBar().getSize().x;
artistColumnName.setWidth((int) (width * 0.6));
artistColumnCount.setWidth((int) (width * 0.2));
artistColumnPercent.setWidth((int) (width * 0.2));
}
});
albumTable.addControlListener(new ControlAdapter() {
public void controlResized(ControlEvent e) {
int width = albumTable.getClientArea().width - albumTable.getVerticalBar().getSize().x;
albumColumnName.setWidth((int) (width * 0.5));
albumColumnAdditional.setWidth((int) (width * 0.2));
albumColumnCount.setWidth((int) (width * 0.15));
albumColumnPercent.setWidth((int) (width * 0.15));
}
});
titleTable.addControlListener(new ControlAdapter() {
public void controlResized(ControlEvent e) {
int width = titleTable.getClientArea().width - titleTable.getVerticalBar().getSize().x;
titleColumnName.setWidth((int) (width * 0.5));
titleColumnAdditional.setWidth((int) (width * 0.2));
titleColumnCount.setWidth((int) (width * 0.15));