mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-08 22:29:33 +00:00
removed deprecated method in strings content viweer
This commit is contained in:
parent
a5de0c23b8
commit
2fcce87869
@ -1,7 +1,6 @@
|
|||||||
Changes to make to API when we are ready to make backward incompatible changes:
|
Changes to make to API when we are ready to make backward incompatible changes:
|
||||||
|
|
||||||
- HTMLReport has special API for more context on columns and special handling in REportGenerator. Change all reports to the new API.
|
- HTMLReport has special API for more context on columns and special handling in REportGenerator. Change all reports to the new API.
|
||||||
- DataContentViewerHex and Strings can have the public setDataView methods removed in favor of the new private ones
|
|
||||||
- Content.getUniquePath() should not thrown TskException. We should deal with it in the method.
|
- Content.getUniquePath() should not thrown TskException. We should deal with it in the method.
|
||||||
- Make the list of events that Case fires off to be part of an enum to group them together (like IngestManager does).
|
- Make the list of events that Case fires off to be part of an enum to group them together (like IngestManager does).
|
||||||
- Sub-modules in RecentActivity have a bunch of public/protected variables that do not need to be. (i.e. ExtractRegistry.rrFullFound).
|
- Sub-modules in RecentActivity have a bunch of public/protected variables that do not need to be. (i.e. ExtractRegistry.rrFullFound).
|
||||||
|
@ -322,14 +322,6 @@ public class DataContentViewerString extends javax.swing.JPanel implements DataC
|
|||||||
private javax.swing.JLabel totalPageLabel;
|
private javax.swing.JLabel totalPageLabel;
|
||||||
// End of variables declaration//GEN-END:variables
|
// End of variables declaration//GEN-END:variables
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
public void setDataView(Content dataSource, long offset, boolean reset) {
|
|
||||||
if (reset) {
|
|
||||||
resetComponent();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
setDataView(dataSource, offset);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the DataView (The tabbed panel)
|
* Sets the DataView (The tabbed panel)
|
||||||
@ -400,6 +392,30 @@ public class DataContentViewerString extends javax.swing.JPanel implements DataC
|
|||||||
this.setCursor(null);
|
this.setCursor(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void setDataView(StringContent dataSource) {
|
||||||
|
this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
|
||||||
|
try {
|
||||||
|
this.dataSource = null;
|
||||||
|
|
||||||
|
// set the data on the bottom and show it
|
||||||
|
String text = dataSource.getString();
|
||||||
|
|
||||||
|
nextPageButton.setEnabled(false);
|
||||||
|
|
||||||
|
prevPageButton.setEnabled(false);
|
||||||
|
currentPage = 1;
|
||||||
|
|
||||||
|
int totalPage = 1;
|
||||||
|
totalPageLabel.setText(Integer.toString(totalPage));
|
||||||
|
currentPageLabel.setText(Integer.toString(currentPage));
|
||||||
|
outputViewPane.setText(text); // set the output view
|
||||||
|
setComponentsVisibility(true); // shows the components that not needed
|
||||||
|
outputViewPane.moveCaretPosition(0);
|
||||||
|
} finally {
|
||||||
|
this.setCursor(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* To set the visibility of specific components in this class.
|
* To set the visibility of specific components in this class.
|
||||||
*
|
*
|
||||||
@ -493,29 +509,6 @@ public class DataContentViewerString extends javax.swing.JPanel implements DataC
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setDataView(StringContent dataSource) {
|
|
||||||
this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
|
|
||||||
try {
|
|
||||||
this.dataSource = null;
|
|
||||||
|
|
||||||
// set the data on the bottom and show it
|
|
||||||
String text = dataSource.getString();
|
|
||||||
|
|
||||||
nextPageButton.setEnabled(false);
|
|
||||||
|
|
||||||
prevPageButton.setEnabled(false);
|
|
||||||
currentPage = 1;
|
|
||||||
|
|
||||||
int totalPage = 1;
|
|
||||||
totalPageLabel.setText(Integer.toString(totalPage));
|
|
||||||
currentPageLabel.setText(Integer.toString(currentPage));
|
|
||||||
outputViewPane.setText(text); // set the output view
|
|
||||||
setComponentsVisibility(true); // shows the components that not needed
|
|
||||||
outputViewPane.moveCaretPosition(0);
|
|
||||||
} finally {
|
|
||||||
this.setCursor(null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Show the right click menu only if evt is the correct mouse event */
|
/* Show the right click menu only if evt is the correct mouse event */
|
||||||
private void maybeShowPopup(java.awt.event.MouseEvent evt) {
|
private void maybeShowPopup(java.awt.event.MouseEvent evt) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user