Skip to content

Commit

Permalink
Merge pull request #1493 from riksoft/patch-1
Browse files Browse the repository at this point in the history
[NETBEANS-2722] Upload button text and def. window size
  • Loading branch information
junichi11 committed Sep 11, 2019
2 parents 654b5f0 + 0854911 commit 411fc7b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public final class DiffPanel extends JPanel {
static final Logger LOGGER = Logger.getLogger(DiffPanel.class.getName());

private static final RequestProcessor RP = new RequestProcessor(DiffPanel.class);
// @GuardedBy(AWT)
private static Dimension PREFERRED_SIZE = new Dimension(1024, 768);

final SyncItem syncItem;
final RemoteClient remoteClient;
Expand All @@ -84,13 +86,13 @@ public DiffPanel(RemoteClient remoteClient, SyncItem syncItem, String charsetNam
this.charsetName = charsetName;

initComponents();
setPreferredSize(new Dimension(600, 450));
setPreferredSize(PREFERRED_SIZE);
}

@NbBundle.Messages({
"# {0} - file path",
"DiffPanel.title=Remote Diff for {0}",
"DiffPanel.button.titleWithMnemonics=&Take Over Local Changes"
"DiffPanel.button.titleWithMnemonics=&Upload Local Changes"
})
public boolean open() throws IOException {
assert SwingUtilities.isEventDispatchThread();
Expand All @@ -112,6 +114,7 @@ public boolean open() throws IOException {
try {
dialog.setVisible(true);
} finally {
PREFERRED_SIZE = getSize();
dialog.dispose();
DiffFileEncodingQueryImpl.clear();
}
Expand Down

0 comments on commit 411fc7b

Please sign in to comment.