@Override
	public String getMenuDisplay(long value, int size, boolean isSigned, Program program) {
		Scalar scalar = new Scalar(size * 8, value);
		if (isSigned) {
			long v = scalar.getSignedValue();
			String valueStr = Long.toString(v, 8);
			if (v < 0) {
				// use of substring removes '-' prefix for negative value
				return "-0" + valueStr.substring(1);
			}
			return "0" + valueStr;
		}
		String valueStr = Long.toOctalString(scalar.getUnsignedValue());
		return "0" + valueStr;
	}
Convert a selected constant in the decompiler to an octal representation.
Ghidra/Features/Decompiler/src/main/java/ghidra/app/plugin/core/decompile/actions/ConvertOctAction.java