mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
Merge pull request #5826 from gdicristofaro/6283-deprecationWarnings
6283 open ide loaded paths should not have leading slash
This commit is contained in:
commit
c69d1bec76
@ -48,7 +48,8 @@ final class AccountDeviceInstanceNode extends AbstractNode {
|
|||||||
this.account = accountDeviceInstanceKey.getAccountDeviceInstance().getAccount();
|
this.account = accountDeviceInstanceKey.getAccountDeviceInstance().getAccount();
|
||||||
setName(account.getTypeSpecificID());
|
setName(account.getTypeSpecificID());
|
||||||
setDisplayName(getName());
|
setDisplayName(getName());
|
||||||
setIconBaseWithExtension(Utils.getIconFilePath(account.getAccountType()));
|
String iconPath = Utils.getIconFilePath(account.getAccountType());
|
||||||
|
this.setIconBaseWithExtension(iconPath != null && iconPath.charAt(0) == '/' ? iconPath.substring(1) : iconPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
AccountDeviceInstance getAccountDeviceInstance() {
|
AccountDeviceInstance getAccountDeviceInstance() {
|
||||||
|
@ -32,7 +32,7 @@ import org.openide.util.NbBundle;
|
|||||||
final class PinAccountsAction extends AbstractCVTAction {
|
final class PinAccountsAction extends AbstractCVTAction {
|
||||||
|
|
||||||
static private final ImageIcon ICON = ImageUtilities.loadImageIcon(
|
static private final ImageIcon ICON = ImageUtilities.loadImageIcon(
|
||||||
"/org/sleuthkit/autopsy/communications/images/marker--plus.png", false);
|
"org/sleuthkit/autopsy/communications/images/marker--plus.png", false);
|
||||||
private static final String SINGULAR_TEXT = Bundle.PinAccountsAction_singularText();
|
private static final String SINGULAR_TEXT = Bundle.PinAccountsAction_singularText();
|
||||||
private static final String PLURAL_TEXT = Bundle.PinAccountsAction_pluralText();
|
private static final String PLURAL_TEXT = Bundle.PinAccountsAction_pluralText();
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ import org.openide.util.NbBundle;
|
|||||||
final class ResetAndPinAccountsAction extends AbstractCVTAction {
|
final class ResetAndPinAccountsAction extends AbstractCVTAction {
|
||||||
|
|
||||||
private static final ImageIcon ICON = ImageUtilities.loadImageIcon(
|
private static final ImageIcon ICON = ImageUtilities.loadImageIcon(
|
||||||
"/org/sleuthkit/autopsy/communications/images/marker--pin.png", false);
|
"org/sleuthkit/autopsy/communications/images/marker--pin.png", false);
|
||||||
private static final String SINGULAR_TEXT = Bundle.ResetAndPinAccountsAction_singularText();
|
private static final String SINGULAR_TEXT = Bundle.ResetAndPinAccountsAction_singularText();
|
||||||
private static final String PLURAL_TEXT = Bundle.ResetAndPinAccountsAction_pluralText();
|
private static final String PLURAL_TEXT = Bundle.ResetAndPinAccountsAction_pluralText();
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ import org.openide.util.NbBundle;
|
|||||||
final class UnpinAccountsAction extends AbstractCVTAction {
|
final class UnpinAccountsAction extends AbstractCVTAction {
|
||||||
|
|
||||||
static final private ImageIcon ICON = ImageUtilities.loadImageIcon(
|
static final private ImageIcon ICON = ImageUtilities.loadImageIcon(
|
||||||
"/org/sleuthkit/autopsy/communications/images/marker--minus.png", false);
|
"org/sleuthkit/autopsy/communications/images/marker--minus.png", false);
|
||||||
private static final String SINGULAR_TEXT = Bundle.UnpinAccountsAction_singularText();
|
private static final String SINGULAR_TEXT = Bundle.UnpinAccountsAction_singularText();
|
||||||
private static final String PLURAL_TEXT = Bundle.UnpinAccountsAction_pluralText();
|
private static final String PLURAL_TEXT = Bundle.UnpinAccountsAction_pluralText();
|
||||||
|
|
||||||
|
@ -260,7 +260,7 @@ public class BlackboardArtifactNode extends AbstractContentNode<BlackboardArtifa
|
|||||||
String displayName = srcContent.getName();
|
String displayName = srcContent.getName();
|
||||||
setDisplayName(displayName);
|
setDisplayName(displayName);
|
||||||
setShortDescription(displayName);
|
setShortDescription(displayName);
|
||||||
setIconBaseWithExtension(iconPath);
|
setIconBaseWithExtension(iconPath != null && iconPath.charAt(0) == '/' ? iconPath.substring(1) : iconPath);
|
||||||
Case.addEventTypeSubscriber(CASE_EVENTS_OF_INTEREST, weakListener);
|
Case.addEventTypeSubscriber(CASE_EVENTS_OF_INTEREST, weakListener);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -290,7 +290,8 @@ public class ExtractedContent implements AutopsyVisitableItem {
|
|||||||
super(Children.create(new ArtifactFactory(type), true), Lookups.singleton(type.getDisplayName()));
|
super(Children.create(new ArtifactFactory(type), true), Lookups.singleton(type.getDisplayName()));
|
||||||
super.setName(type.getTypeName());
|
super.setName(type.getTypeName());
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this.setIconBaseWithExtension(IconsUtil.getIconFilePath(type.getTypeID())); //NON-NLS
|
String iconPath = IconsUtil.getIconFilePath(type.getTypeID());
|
||||||
|
setIconBaseWithExtension(iconPath != null && iconPath.charAt(0) == '/' ? iconPath.substring(1) : iconPath);
|
||||||
updateDisplayName();
|
updateDisplayName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -513,7 +513,8 @@ final public class Accounts implements AutopsyVisitableItem {
|
|||||||
private DefaultAccountTypeNode(Account.Type accountType) {
|
private DefaultAccountTypeNode(Account.Type accountType) {
|
||||||
super(Children.create(new DefaultAccountFactory(accountType), true), Lookups.singleton(accountType));
|
super(Children.create(new DefaultAccountFactory(accountType), true), Lookups.singleton(accountType));
|
||||||
setName(accountType.getDisplayName());
|
setName(accountType.getDisplayName());
|
||||||
this.setIconBaseWithExtension(getIconFilePath(accountType)); //NON-NLS
|
String iconPath = getIconFilePath(accountType);
|
||||||
|
this.setIconBaseWithExtension(iconPath != null && iconPath.charAt(0) == '/' ? iconPath.substring(1) : iconPath); //NON-NLS
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -34,8 +34,8 @@ final class DiscoveryUiUtils {
|
|||||||
private static final int ICON_SIZE = 16;
|
private static final int ICON_SIZE = 16;
|
||||||
private static final String RED_CIRCLE_ICON_PATH = "org/sleuthkit/autopsy/images/red-circle-exclamation.png";
|
private static final String RED_CIRCLE_ICON_PATH = "org/sleuthkit/autopsy/images/red-circle-exclamation.png";
|
||||||
private static final String YELLOW_CIRCLE_ICON_PATH = "org/sleuthkit/autopsy/images/yellow-circle-yield.png";
|
private static final String YELLOW_CIRCLE_ICON_PATH = "org/sleuthkit/autopsy/images/yellow-circle-yield.png";
|
||||||
private static final String DELETE_ICON_PATH = "/org/sleuthkit/autopsy/images/file-icon-deleted.png";
|
private static final String DELETE_ICON_PATH = "org/sleuthkit/autopsy/images/file-icon-deleted.png";
|
||||||
private static final String UNSUPPORTED_DOC_PATH = "/org/sleuthkit/autopsy/images/image-extraction-not-supported.png";
|
private static final String UNSUPPORTED_DOC_PATH = "org/sleuthkit/autopsy/images/image-extraction-not-supported.png";
|
||||||
private static final ImageIcon INTERESTING_SCORE_ICON = new ImageIcon(ImageUtilities.loadImage(YELLOW_CIRCLE_ICON_PATH, false));
|
private static final ImageIcon INTERESTING_SCORE_ICON = new ImageIcon(ImageUtilities.loadImage(YELLOW_CIRCLE_ICON_PATH, false));
|
||||||
private static final ImageIcon NOTABLE_SCORE_ICON = new ImageIcon(ImageUtilities.loadImage(RED_CIRCLE_ICON_PATH, false));
|
private static final ImageIcon NOTABLE_SCORE_ICON = new ImageIcon(ImageUtilities.loadImage(RED_CIRCLE_ICON_PATH, false));
|
||||||
private static final ImageIcon DELETED_ICON = new ImageIcon(ImageUtilities.loadImage(DELETE_ICON_PATH, false));
|
private static final ImageIcon DELETED_ICON = new ImageIcon(ImageUtilities.loadImage(DELETE_ICON_PATH, false));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user