return _releaseVersionWillChange;
}
private void initPopup() {
final JPopupMenu popup = new JPopupMenu(i18n.INSTALL_OPTIONS_LABEL);
JMenuItem pluginItem = new JMenuItem(i18n.ALL_PLUGINS_LABEL);
pluginItem.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
for (ArtifactStatus status : _artifacts) {
if (status.isPluginArtifact()) {
status.setArtifactAction(ArtifactAction.INSTALL);
}
}
_model.fireTableDataChanged();
}
});
JMenuItem translationItem = new JMenuItem(i18n.ALL_TRANSLATIONS_LABEL);
translationItem.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
for (ArtifactStatus status : _artifacts) {
if (status.isTranslationArtifact()) {
status.setArtifactAction(ArtifactAction.INSTALL);
}
}
_model.fireTableDataChanged();
}
});
popup.add(pluginItem);
popup.add(translationItem);
addMouseListener(new MouseAdapter() {
public void mousePressed(MouseEvent event){
if(popup.isPopupTrigger(event)){
popup.show(event.getComponent(), event.getX(),event.getY());
}
}
public void mouseReleased(MouseEvent event){
if(popup.isPopupTrigger(event)){
popup.show(event.getComponent(), event.getX(),event.getY());
}
}
});
}