Skip to content

Commit

Permalink
tweaks some versioning history settings.
Browse files Browse the repository at this point in the history
 - git -> show history will start with 50 entries loaded by default
 - file history will show the full history by default
 - search button will only show up if the advanced options are
   expanded (since everything else searches at realtime)
  • Loading branch information
mbien committed Nov 9, 2022
1 parent be075e2 commit 0f167f9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class SearchExecutor extends GitProgressSupport {
private final String toRevision;
private final Date from;
private final Date to;
static final int DEFAULT_LIMIT = 10;
static final int DEFAULT_LIMIT = 50;
static final int UNLIMITTED = -1;
private final SearchCriteria sc;
private final Mode mode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@
</Container>
<Container class="javax.swing.JToolBar" name="jToolBar1">
<Properties>
<Property name="floatable" type="boolean" value="false"/>
<Property name="rollover" type="boolean" value="true"/>
</Properties>
<AuxValues>
Expand Down Expand Up @@ -192,7 +191,6 @@
<ResourceString bundle="org/netbeans/modules/git/ui/history/Bundle.properties" key="LBL_TT_SearchHistoryPanel_AllInfo" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property>
<Property name="horizontalTextPosition" type="int" value="4"/>
<Property name="opaque" type="boolean" value="false"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="fileInfoCheckBoxActionPerformed"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ final void refreshComponents(boolean refreshResults) {
fileInfoCheckBox.setEnabled(tbSummary.isSelected());

searchCriteriaPanel.setVisible(criteriaVisible);
bSearch.setVisible(criteriaVisible);
expandCriteriaButton.setIcon(criteriaVisible ? ICON_EXPANDED : ICON_COLLAPSED);
if (criteria.getLimit() <= 0) {
criteria.setLimit(SearchExecutor.UNLIMITTED);
Expand Down Expand Up @@ -600,9 +601,10 @@ private void fileInfoCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//
}//GEN-LAST:event_fileInfoCheckBoxActionPerformed

private void expandCriteriaButtonActionPerformed (java.awt.event.ActionEvent evt) {//GEN-FIRST:event_expandCriteriaButtonActionPerformed
searchCriteriaPanel.setVisible(!searchCriteriaPanel.isVisible());
expandCriteriaButton.setIcon(searchCriteriaPanel.isVisible() ? ICON_EXPANDED : ICON_COLLAPSED);
criteriaVisible = searchCriteriaPanel.isVisible();
criteriaVisible = !searchCriteriaPanel.isVisible();
searchCriteriaPanel.setVisible(criteriaVisible);
bSearch.setVisible(criteriaVisible);
expandCriteriaButton.setIcon(criteriaVisible ? ICON_EXPANDED : ICON_COLLAPSED);
}//GEN-LAST:event_expandCriteriaButtonActionPerformed

private void cmbFilterKindActionPerformed (java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmbFilterKindActionPerformed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void setKeepForever(boolean forever) {
}

public boolean getLoadAll() {
return getPreferences().getBoolean(PROP_LOAD_ALL, false);
return getPreferences().getBoolean(PROP_LOAD_ALL, true);
}

public void setLoadAll(boolean loadAll) {
Expand Down

0 comments on commit 0f167f9

Please sign in to comment.