Skip to content

Commit

Permalink
sonarqube fixes for issue #2018
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Sep 25, 2023
1 parent cd5b3dc commit 2e603a9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -777,15 +777,13 @@ public int getCalloutWidth() {

@Override
public Dimension getMaximumSize() {
//return this.calloutPanelComponent1.getPreferredSize(); //To change body of generated methods, choose Tools | Templates.
Dimension calloutPreferred= this.calloutPanelComponent1.getPreferredSize(); //To change body of generated methods, choose Tools | Templates.
calloutPreferred.setSize(calloutPreferred.getWidth(), calloutPreferred.getHeight() + 8 + 18 + this.lblCaseContext.getPreferredSize().getHeight());
return calloutPreferred;
}

@Override
public Dimension getPreferredSize() {
//return this.calloutPanelComponent1.getPreferredSize();
Dimension calloutPreferred= this.calloutPanelComponent1.getPreferredSize(); //To change body of generated methods, choose Tools | Templates.
calloutPreferred.setSize(calloutPreferred.getWidth(), calloutPreferred.getHeight() + 8 + 18 + this.lblCaseContext.getPreferredSize().getHeight());
return calloutPreferred;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,6 @@ private void lstHashtagsValueChanged(javax.swing.event.ListSelectionEvent evt) {
JScrollPane sp=(JScrollPane)this.tabsPane.getComponentAt(i);
((JPanel)sp.getViewport().getComponent(0)).removeAll();
}
//this.pnlMessages.removeAll();
List<String> selectedHashtags = this.lstHashtags.getSelectedValuesList();
for (InstantMessage msg : this.currentMessageList) {
if (selectedHashtags.isEmpty()) {
Expand All @@ -1047,10 +1046,6 @@ private void lstHashtagsValueChanged(javax.swing.event.ListSelectionEvent evt) {
selPane.getComponent(0).repaint();
selPane.doLayout();
selPane.revalidate();

// pnlMessages.repaint();
// this.jScrollPane3.doLayout();
// this.jScrollPane3.revalidate();

}//GEN-LAST:event_lstHashtagsValueChanged

Expand Down Expand Up @@ -1117,7 +1112,6 @@ private void addToTabIfRequired(InstantMessage msg) {
return;
}

boolean hasTab = false;
int existingTab = -1;
for (int i = 0; i < this.tabsPane.getTabCount(); i++) {
if (tabsPane.getTitleAt(i).equals(msg.getCaseContext().getFileNumber())) {
Expand Down Expand Up @@ -1184,12 +1178,7 @@ public void newMessageForSubmission(InstantMessage msg) {
} catch (Exception ex) {
log.error("Could not submit instant message to server", ex);
JOptionPane.showMessageDialog(EditorsRegistry.getInstance().getMainWindow(), "Nachricht konnte nicht gesendet werden: " + ex.getMessage(), com.jdimension.jlawyer.client.utils.DesktopUtils.POPUP_TITLE_ERROR, JOptionPane.ERROR_MESSAGE);
return;
}

// this.currentMessageList.add(msg);
//
// this.addMessageToView(msg);
}

@Override
Expand Down

0 comments on commit 2e603a9

Please sign in to comment.